Last active
July 13, 2018 17:49
-
-
Save juanvallejo/e0ce6fb2b0fd17d1d6b2170fd2f4a264 to your computer and use it in GitHub Desktop.
oc process - before and after for yaml output modes between oc3.11 and https://github.com/openshift/origin/pull/20282
This file contains 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
## Command | |
## ./oc3_11_master process -f test/templates/testdata/guestbook.json --local -l app=guestbook -o yaml | |
apiVersion: v1 | |
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: JDl7bxFB | |
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: adminDYU | |
- name: ADMIN_PASSWORD | |
value: 3FUbgHTa | |
- name: REDIS_PASSWORD | |
value: JDl7bxFB | |
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: JDl7bxFB | |
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 | |
kind: List | |
metadata: {} |
This file contains 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
## Command | |
## ./oc3_11_updated process -f test/templates/testdata/guestbook.json --local -l app=guestbook -o yaml | |
apiVersion: v1 | |
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: DareOOnM | |
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: adminTLH | |
- name: ADMIN_PASSWORD | |
value: cE3dxwJi | |
- name: REDIS_PASSWORD | |
value: DareOOnM | |
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: DareOOnM | |
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 | |
kind: List | |
metadata: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment