Sfoglia il codice sorgente

Remove legacy env variables from the registry deploymentconfig if present

Signed-off-by: Gladkov Alexey <agladkov@redhat.com>
Gladkov Alexey 7 anni fa
parent
commit
5655ce236a

+ 16 - 0
roles/openshift_hosted/tasks/remove_legacy_env_variables.yml

@@ -0,0 +1,16 @@
+---
+- name: remove legacy environment variables from registry dc
+  oc_env:
+    kind: dc
+    name: "{{ openshift_hosted_registry_name }}"
+    namespace: "{{ openshift_hosted_registry_namespace }}"
+    state: absent
+    env_vars:
+      BEARER_TOKEN:
+      BEARER_TOKEN_FILE:
+      KUBERNETES_MASTER:
+      OPENSHIFT_CA_FILE:
+      OPENSHIFT_CERT_FILE:
+      OPENSHIFT_INSECURE:
+      OPENSHIFT_KEY_FILE:
+      OPENSHIFT_MASTER: