Difference between revisions of "Yq"
Jump to navigation
Jump to search
(Created page with "kubectl get configMap zabbix-server -oyaml | yq eval 'del(.metadata.resourceVersion, .metadata.uid, .metadata.annotations, .metadata.creationTimestamp, .metadata.selfLink, .me...") |
|||
Line 1: | Line 1: | ||
+ | ``` | ||
kubectl get configMap zabbix-server -oyaml | yq eval 'del(.metadata.resourceVersion, .metadata.uid, .metadata.annotations, .metadata.creationTimestamp, .metadata.selfLink, .metadata.managedFields)' - | kubectl get configMap zabbix-server -oyaml | yq eval 'del(.metadata.resourceVersion, .metadata.uid, .metadata.annotations, .metadata.creationTimestamp, .metadata.selfLink, .metadata.managedFields)' - | ||
+ | ``` | ||
+ | https://github.com/mikefarah/yq | ||
Ref: | Ref: | ||
- https://stackoverflow.com/questions/61392206/kubectl-export-is-deprecated-any-alternative | - https://stackoverflow.com/questions/61392206/kubectl-export-is-deprecated-any-alternative |
Revision as of 17:55, 4 October 2021
kubectl get configMap zabbix-server -oyaml | yq eval 'del(.metadata.resourceVersion, .metadata.uid, .metadata.annotations, .metadata.creationTimestamp, .metadata.selfLink, .metadata.managedFields)' -
https://github.com/mikefarah/yq
Ref: