k8s-rollingupdate

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

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

Go to latest
Published: Feb 4, 2018 License: MIT Imports: 12 Imported by: 0

README

Kubernetes rollingupdate trigger for Deployments, Daemonsets and Statefulsets

This tool triggers a rolling update for Deployments, Daemonsets and Statefulsets with possiblity to filter by annotation.

Usage

Usage:
  k8s-rollingupdate [OPTIONS]

Application Options:
      --kubeconfig=             Path to .kube/config [$KUBECONFIG]
      --kubecontext=            Context of .kube/config [$KUBECONTEXT]
  -n, --namespace=              Namespace to process [$K8S_ROLLINGUPDATE_NAMESPACE]
      --annotation=             Filter Kubernetes object by annotation
                                [$K8S_ROLLINGUPDATE_ANNOTATION]
      --annotation-value=       Filter Kubernetes object by annotation value (needs --annotation)
                                [$K8S_ROLLINGUPDATE_ANNOTATION_VALUE]
      --annotation-autorollout= Annotation which will be added to trigger rolling update (default:
                                rolllingupdate.webdevops.io/trigger)
                                [$K8S_ROLLINGUPDATE_ANNOTATION_TRIGGER]

Help Options:
  -h, --help                    Show this help message
# Trigger rolling update for everything in namespace
k8s-rollingupdate -n your-namespace

# Trigger rolling update for everything multiple namespaces
k8s-rollingupdate -n your-namespace -n other-namespace

# Trigger rolling update for everything with annotation foobar/barfoo
k8s-rollingupdate -n your-namespace --annotation foobar/barfoo

# Trigger rolling update for everything with annotation foobar/barfoo=value
k8s-rollingupdate -n your-namespace --annotation foobar/barfoo --annotation-value value

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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