kubectl-compare

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

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

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