Last active
April 10, 2018 12:18
-
-
Save shudipta/47e8342e49752218f3ec0fd404c1bdd3 to your computer and use it in GitHub Desktop.
gist for patch issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj: | |
{"metadata":{"name":"labels-567ffd7c48","namespace":"kube-system","creationTimestamp":null,"labels":{"app":"label_extractor","pod-template-hash":"1239983704"},"annotations":{"deployment.kubernetes.io/desired-replicas":"1","deployment.kubernetes.io/max-replicas":"2","deployment.kubernetes.io/revision":"1","docker.com/labels-git-commit":"unkown","hi":"hello"},"ownerReferences":[{"apiVersion":"extensions/v1beta1","kind":"Deployment","name":"labels","uid":"ff0c41a7-3cb6-11e8-b788-080027b151f8","controller":true,"blockOwnerDeletion":true}]},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"label_extractor","pod-template-hash":"1239983704"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"label_extractor","pod-template-hash":"1239983704"}},"spec":{"containers":[{"name":"labels","image":"shudipta/labels","ports":[{"containerPort":80,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{},"imagePullSecrets":[{"name":"labels-secret"}],"schedulerName":"default-scheduler"}}},"status":{"replicas":0}} | |
patch | |
[{"op":"add","path":"/kind","value":"Deployment"},{"op":"add","path":"/apiVersion","value":"apps/v1"},{"op":"replace","path":"/metadata/labels/app","value":"new"},{"op":"add","path":"/metadata/annotations/docker.com~1labels-git-commit","value":"unkown"},{"op":"remove","path":"/metadata/annotations/hi","value":null}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment