kubectl-schemaop

command
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 5 Imported by: 0

README

kubectl-schemaop

A kubectl plugin to manage schema rollouts.
This is greatly influenced by the rollout kubectl sub command.

sample runs

Current schema rollout status:

$ kubectl schemaop status --namespace default --name master-test-template              
  NAMESPACE  NAME                    REVISION  EXECUTED  FAILED  RUNNING  SUCCEEDED  
  default    master-test-template-1  1         true      0       0        1          

to list the schema changes history use:

$ kubectl schemaop history --namespace default --name master-test-template
  NAMESPACE  NAME                    REVISION  
  default    master-test-template-0  0         
  default    master-test-template-1  1         

To see specific revision details add the --revision=<num> flag:

$ kubectl schemaop history --namespace default --name master-test-template --revision=1
  NAMESPACE  NAME                    REVISION  EXECUTED  FAILED  RUNNING  SUCCEEDED  
  default    master-test-template-1  1         true      0       0        1          

Development

Build the plugin with make kubectl-schemaop , the resulting binary will be generated in the bin folder.
(add PATH=$PATH:./bin to test as the plugin needs to be in $PATH )

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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