Created
July 13, 2018 17:50
-
-
Save juanvallejo/131b9edc22337736c462672b263ca95e to your computer and use it in GitHub Desktop.
oc process - before and after for json output modes between oc3.11 and https://github.com/openshift/origin/pull/20282
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
| { | |
| "kind": "List", | |
| "apiVersion": "v1", | |
| "metadata": {}, | |
| "items": [ | |
| { | |
| "apiVersion": "route.openshift.io/v1", | |
| "kind": "Route", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "frontend-route" | |
| }, | |
| "spec": { | |
| "host": "guestbook.example.com", | |
| "to": { | |
| "kind": "Service", | |
| "name": "frontend-service" | |
| } | |
| }, | |
| "status": {} | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Service", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "frontend-service" | |
| }, | |
| "spec": { | |
| "ports": [ | |
| { | |
| "nodePort": 0, | |
| "port": 5432, | |
| "protocol": "TCP", | |
| "targetPort": 5432 | |
| } | |
| ], | |
| "selector": { | |
| "name": "frontend-service" | |
| }, | |
| "sessionAffinity": "None", | |
| "type": "ClusterIP" | |
| }, | |
| "status": { | |
| "loadBalancer": {} | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Service", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "redis-master" | |
| }, | |
| "spec": { | |
| "ports": [ | |
| { | |
| "nodePort": 0, | |
| "port": 10000, | |
| "protocol": "TCP", | |
| "targetPort": 10000 | |
| } | |
| ], | |
| "selector": { | |
| "name": "redis-master" | |
| }, | |
| "sessionAffinity": "None", | |
| "type": "ClusterIP" | |
| }, | |
| "status": { | |
| "loadBalancer": {} | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Service", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "redis-slave" | |
| }, | |
| "spec": { | |
| "ports": [ | |
| { | |
| "nodePort": 0, | |
| "port": 10001, | |
| "protocol": "TCP", | |
| "targetPort": 10001 | |
| } | |
| ], | |
| "selector": { | |
| "name": "redis-slave" | |
| }, | |
| "sessionAffinity": "None", | |
| "type": "ClusterIP" | |
| }, | |
| "status": { | |
| "loadBalancer": {} | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Pod", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook", | |
| "name": "redis-master" | |
| }, | |
| "name": "redis-master" | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "capabilities": {}, | |
| "env": [ | |
| { | |
| "name": "REDIS_PASSWORD", | |
| "value": "u6p1WvRV" | |
| } | |
| ], | |
| "image": "dockerfile/redis", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "master", | |
| "ports": [ | |
| { | |
| "containerPort": 6379, | |
| "protocol": "TCP" | |
| } | |
| ], | |
| "resources": {}, | |
| "securityContext": { | |
| "capabilities": {}, | |
| "privileged": false | |
| }, | |
| "terminationMessagePath": "/dev/termination-log" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "restartPolicy": "Always", | |
| "serviceAccount": "" | |
| }, | |
| "status": {} | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "ReplicationController", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook", | |
| "name": "frontend-service" | |
| }, | |
| "name": "guestbook" | |
| }, | |
| "spec": { | |
| "replicas": 3, | |
| "selector": { | |
| "name": "frontend-service" | |
| }, | |
| "template": { | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "name": "frontend-service" | |
| } | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "capabilities": {}, | |
| "env": [ | |
| { | |
| "name": "ADMIN_USERNAME", | |
| "value": "admin43E" | |
| }, | |
| { | |
| "name": "ADMIN_PASSWORD", | |
| "value": "HT7Gg1Vd" | |
| }, | |
| { | |
| "name": "REDIS_PASSWORD", | |
| "value": "u6p1WvRV" | |
| } | |
| ], | |
| "image": "brendanburns/php-redis", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "php-redis", | |
| "ports": [ | |
| { | |
| "containerPort": 80, | |
| "hostPort": 8000, | |
| "protocol": "TCP" | |
| } | |
| ], | |
| "resources": {}, | |
| "securityContext": { | |
| "capabilities": {}, | |
| "privileged": false | |
| }, | |
| "terminationMessagePath": "/dev/termination-log" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "restartPolicy": "Always", | |
| "serviceAccount": "" | |
| } | |
| } | |
| }, | |
| "status": { | |
| "replicas": 0 | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "ReplicationController", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook", | |
| "name": "redis-slave" | |
| }, | |
| "name": "redis-slave" | |
| }, | |
| "spec": { | |
| "replicas": 2, | |
| "selector": { | |
| "name": "redis-slave" | |
| }, | |
| "template": { | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "name": "redis-slave" | |
| } | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "capabilities": {}, | |
| "env": [ | |
| { | |
| "name": "REDIS_PASSWORD", | |
| "value": "u6p1WvRV" | |
| } | |
| ], | |
| "image": "brendanburns/redis-slave", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "slave", | |
| "ports": [ | |
| { | |
| "containerPort": 6379, | |
| "hostPort": 6380, | |
| "protocol": "TCP" | |
| } | |
| ], | |
| "resources": {}, | |
| "securityContext": { | |
| "capabilities": {}, | |
| "privileged": false | |
| }, | |
| "terminationMessagePath": "/dev/termination-log" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "restartPolicy": "Always", | |
| "serviceAccount": "" | |
| } | |
| } | |
| }, | |
| "status": { | |
| "replicas": 0 | |
| } | |
| } | |
| ] | |
| } |
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
| { | |
| "kind": "List", | |
| "apiVersion": "v1", | |
| "metadata": {}, | |
| "items": [ | |
| { | |
| "apiVersion": "route.openshift.io/v1", | |
| "kind": "Route", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "frontend-route" | |
| }, | |
| "spec": { | |
| "host": "guestbook.example.com", | |
| "to": { | |
| "kind": "Service", | |
| "name": "frontend-service" | |
| } | |
| }, | |
| "status": {} | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Service", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "frontend-service" | |
| }, | |
| "spec": { | |
| "ports": [ | |
| { | |
| "nodePort": 0, | |
| "port": 5432, | |
| "protocol": "TCP", | |
| "targetPort": 5432 | |
| } | |
| ], | |
| "selector": { | |
| "name": "frontend-service" | |
| }, | |
| "sessionAffinity": "None", | |
| "type": "ClusterIP" | |
| }, | |
| "status": { | |
| "loadBalancer": {} | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Service", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "redis-master" | |
| }, | |
| "spec": { | |
| "ports": [ | |
| { | |
| "nodePort": 0, | |
| "port": 10000, | |
| "protocol": "TCP", | |
| "targetPort": 10000 | |
| } | |
| ], | |
| "selector": { | |
| "name": "redis-master" | |
| }, | |
| "sessionAffinity": "None", | |
| "type": "ClusterIP" | |
| }, | |
| "status": { | |
| "loadBalancer": {} | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Service", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook" | |
| }, | |
| "name": "redis-slave" | |
| }, | |
| "spec": { | |
| "ports": [ | |
| { | |
| "nodePort": 0, | |
| "port": 10001, | |
| "protocol": "TCP", | |
| "targetPort": 10001 | |
| } | |
| ], | |
| "selector": { | |
| "name": "redis-slave" | |
| }, | |
| "sessionAffinity": "None", | |
| "type": "ClusterIP" | |
| }, | |
| "status": { | |
| "loadBalancer": {} | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Pod", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook", | |
| "name": "redis-master" | |
| }, | |
| "name": "redis-master" | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "capabilities": {}, | |
| "env": [ | |
| { | |
| "name": "REDIS_PASSWORD", | |
| "value": "Y7qt0vWO" | |
| } | |
| ], | |
| "image": "dockerfile/redis", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "master", | |
| "ports": [ | |
| { | |
| "containerPort": 6379, | |
| "protocol": "TCP" | |
| } | |
| ], | |
| "resources": {}, | |
| "securityContext": { | |
| "capabilities": {}, | |
| "privileged": false | |
| }, | |
| "terminationMessagePath": "/dev/termination-log" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "restartPolicy": "Always", | |
| "serviceAccount": "" | |
| }, | |
| "status": {} | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "ReplicationController", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook", | |
| "name": "frontend-service" | |
| }, | |
| "name": "guestbook" | |
| }, | |
| "spec": { | |
| "replicas": 3, | |
| "selector": { | |
| "name": "frontend-service" | |
| }, | |
| "template": { | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "name": "frontend-service" | |
| } | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "capabilities": {}, | |
| "env": [ | |
| { | |
| "name": "ADMIN_USERNAME", | |
| "value": "adminX8G" | |
| }, | |
| { | |
| "name": "ADMIN_PASSWORD", | |
| "value": "tTXswtnI" | |
| }, | |
| { | |
| "name": "REDIS_PASSWORD", | |
| "value": "Y7qt0vWO" | |
| } | |
| ], | |
| "image": "brendanburns/php-redis", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "php-redis", | |
| "ports": [ | |
| { | |
| "containerPort": 80, | |
| "hostPort": 8000, | |
| "protocol": "TCP" | |
| } | |
| ], | |
| "resources": {}, | |
| "securityContext": { | |
| "capabilities": {}, | |
| "privileged": false | |
| }, | |
| "terminationMessagePath": "/dev/termination-log" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "restartPolicy": "Always", | |
| "serviceAccount": "" | |
| } | |
| } | |
| }, | |
| "status": { | |
| "replicas": 0 | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "ReplicationController", | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "app": "guestbook", | |
| "name": "redis-slave" | |
| }, | |
| "name": "redis-slave" | |
| }, | |
| "spec": { | |
| "replicas": 2, | |
| "selector": { | |
| "name": "redis-slave" | |
| }, | |
| "template": { | |
| "metadata": { | |
| "creationTimestamp": null, | |
| "labels": { | |
| "name": "redis-slave" | |
| } | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "capabilities": {}, | |
| "env": [ | |
| { | |
| "name": "REDIS_PASSWORD", | |
| "value": "Y7qt0vWO" | |
| } | |
| ], | |
| "image": "brendanburns/redis-slave", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "slave", | |
| "ports": [ | |
| { | |
| "containerPort": 6379, | |
| "hostPort": 6380, | |
| "protocol": "TCP" | |
| } | |
| ], | |
| "resources": {}, | |
| "securityContext": { | |
| "capabilities": {}, | |
| "privileged": false | |
| }, | |
| "terminationMessagePath": "/dev/termination-log" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "restartPolicy": "Always", | |
| "serviceAccount": "" | |
| } | |
| } | |
| }, | |
| "status": { | |
| "replicas": 0 | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment