Added new command last-applied
, which creates a difference report using a Kubernetes YAML and the previous configuration of that YAML that is stored in the special metadata field kubectl.kubernetes.io/last-applied-configuration
.
Example:
$ kubectl --namespace foobar get configmap foo-settings --output yaml | dyff last-applied -
_ __ __
_| |_ _ / _|/ _| between /metadata/annotations/kubectl.kubernetes.io/last-applied-configuration
/ _' | | | | |_| |_ and <STDIN>
| (_| | |_| | _| _|
\__,_|\__, |_| |_| returned one difference
|___/
data.foo
± value change
- bat
+ bar