|
| 1 | +--- |
| 2 | +- name: Disable OpenShift Console |
| 3 | + kubernetes.core.k8s: |
| 4 | + kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
| 5 | + api_key: "{{ cifmw_openshift_token | default(omit) }}" |
| 6 | + context: "{{ cifmw_openshift_context | default(omit) }}" |
| 7 | + definition: |
| 8 | + apiVersion: operator.openshift.io/v1 |
| 9 | + kind: Console |
| 10 | + metadata: |
| 11 | + name: cluster |
| 12 | + spec: |
| 13 | + managementState: Removed |
| 14 | + state: present |
| 15 | + |
| 16 | +- name: Scale down console-operator |
| 17 | + kubernetes.core.k8s_scale: |
| 18 | + kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
| 19 | + api_key: "{{ cifmw_openshift_token | default(omit) }}" |
| 20 | + context: "{{ cifmw_openshift_context | default(omit) }}" |
| 21 | + api_version: apps/v1 |
| 22 | + kind: Deployment |
| 23 | + name: console-operator |
| 24 | + namespace: openshift-console-operator |
| 25 | + replicas: 0 |
| 26 | + |
| 27 | +- name: Scale down console deployment |
| 28 | + kubernetes.core.k8s_scale: |
| 29 | + kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
| 30 | + api_key: "{{ cifmw_openshift_token | default(omit) }}" |
| 31 | + context: "{{ cifmw_openshift_context | default(omit) }}" |
| 32 | + api_version: apps/v1 |
| 33 | + kind: Deployment |
| 34 | + name: console |
| 35 | + namespace: openshift-console |
| 36 | + replicas: 0 |
| 37 | + |
| 38 | +- name: Scale down downloads deployment |
| 39 | + kubernetes.core.k8s_scale: |
| 40 | + kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
| 41 | + api_key: "{{ cifmw_openshift_token | default(omit) }}" |
| 42 | + context: "{{ cifmw_openshift_context | default(omit) }}" |
| 43 | + api_version: apps/v1 |
| 44 | + kind: Deployment |
| 45 | + name: downloads |
| 46 | + namespace: openshift-console |
| 47 | + replicas: 0 |
| 48 | + |
| 49 | +- name: Delete console route |
| 50 | + kubernetes.core.k8s: |
| 51 | + kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
| 52 | + api_key: "{{ cifmw_openshift_token | default(omit) }}" |
| 53 | + context: "{{ cifmw_openshift_context | default(omit) }}" |
| 54 | + state: absent |
| 55 | + api_version: route.openshift.io/v1 |
| 56 | + kind: Route |
| 57 | + name: console |
| 58 | + namespace: openshift-console |
| 59 | + |
| 60 | +- name: Delete downloads route |
| 61 | + kubernetes.core.k8s: |
| 62 | + kubeconfig: "{{ cifmw_openshift_kubeconfig }}" |
| 63 | + api_key: "{{ cifmw_openshift_token | default(omit) }}" |
| 64 | + context: "{{ cifmw_openshift_context | default(omit) }}" |
| 65 | + state: absent |
| 66 | + api_version: route.openshift.io/v1 |
| 67 | + kind: Route |
| 68 | + name: downloads |
| 69 | + namespace: openshift-console |
0 commit comments