deployment-watcher

command module
v0.0.0-...-af62b61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 11 Imported by: 0

README

Helm resource watcher Quick start

This is a toy controller built by kubebuilder that watches a k8s resource managed by Helm. The controller will keep track of the helm application version after it locates the resource.

It only supports deployment type of resource for now.

Download the github repo

git clone git@github.com:ryanzhang-oss/deployment-watcher.git

Usage example

  1. Install deployment based workloadDefinition
make install
make run
  1. Create a Ryan object, here is an example
apiVersion: practice.shipa.io/v1alpha1
kind: Ryan
metadata:
  name: helm-watcher
spec:
  ResourceName: ryan-test
  1. Install an application through helm
helm repo add podinfo https://stefanprodan.github.io/podinfo
helm repo update
helm upgrade --install helmapp podinfo/podinfo --version 5.0.0 --wait
  1. Apply the watcher object
kubectl apply -f doc/examples/podinfo.yaml
  1. Watch the watcher object
 kubectl get Ryan --watch
 
 NAME           APPVERSION
helm-watcher   5.0.0
helm-watcher   5.0.3
helm-watcher   5.1.1
  1. Upgrade an application through helm
helm upgrade --install helmapp podinfo/podinfo --version 5.0.3 --wait
helm upgrade --install helmapp podinfo/podinfo --version 5.1.1 --wait

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the practice v1alpha1 API group +kubebuilder:object:generate=true +groupName=practice.shipa.io
Package v1alpha1 contains API Schema definitions for the practice v1alpha1 API group +kubebuilder:object:generate=true +groupName=practice.shipa.io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL