Skip to content

Simple tool to compare two Kubernetes objects and output them as a diff

License

Notifications You must be signed in to change notification settings

witalisoft/kubectl-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-compare

Simple tool to compare two Kubernetes objects and output them as a diff. It's using a more readable Kubernetes object manifest by passing it through kubectl-neat.

Usage

$ kubectl-compare compare [k8s_object] [object1] [object2]

Example

$ kubectl-compare compare pods --namespace test pod1 pod2
  apiVersion: "v1"
  kind: "Pod"
  metadata:
    annotations:
      kubernetes.io/psp: "eks.privileged"
    labels:
      app: "test"
-   name: "pod1"
+   name: "pod2"
...

TODO

  • expose it as a kubectl plugin
  • add Windows support

About

Simple tool to compare two Kubernetes objects and output them as a diff

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages