Take snapshots of your K8s cluster yaml and compare them later on
To dump & compare all resources in the cluster:
./kubecompare dump -f 17-feb-2023-dump-all
./kubecompare compare -f 17-feb-2023-dump-allTo dump & compare specific types of resources:
./kubecompare dump -f 17-feb-2023-dump-pods-ss-ds -r "pods statefulset daemonset"
./kubecompare compare -f 17-feb-2023-dump-pods-ss-dsFor nicer output, dyff can be used.
Once dyff is installed run the following command to use it instead of the default kubectl diff:
export KUBECTL_EXTERNAL_DIFF="dyff between --omit-header --set-exit-code"Shell script generated using Bashly yaml file contained in the src folder.
Run bashly generate to update the shell scripts when the bashly.yml file is updated.
