From 3befba637c4d24329ff9fa0efb9384d00500bd2f Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Thu, 1 Jul 2021 16:09:22 -0700 Subject: [PATCH 1/2] Set secret name Signed-off-by: Haytham Abuelfutuh --- helm/templates/admin/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/templates/admin/deployment.yaml b/helm/templates/admin/deployment.yaml index f39469c3b1..729c5ebe26 100755 --- a/helm/templates/admin/deployment.yaml +++ b/helm/templates/admin/deployment.yaml @@ -77,7 +77,7 @@ spec: command: ["/bin/sh", "-c"] args: [ - "flyteadmin --config={{ .Values.flyteadmin.configPath }} secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --fromPath /etc/secrets/auth", + "flyteadmin --config={{ .Values.flyteadmin.configPath }} secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --name flyte-admin-secrets --fromPath /etc/secrets/auth", ] volumeMounts: - name: config-volume From f4af7dfe0187d5b28e764e535057f06ad21353fb Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Thu, 1 Jul 2021 16:39:20 -0700 Subject: [PATCH 2/2] Use correct secret name Signed-off-by: Haytham Abuelfutuh --- deployment/eks/flyte_helm_generated.yaml | 2 +- deployment/gcp/flyte_helm_generated.yaml | 2 +- deployment/sandbox/flyte_helm_generated.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/eks/flyte_helm_generated.yaml b/deployment/eks/flyte_helm_generated.yaml index 9013438196..a23e5472f0 100644 --- a/deployment/eks/flyte_helm_generated.yaml +++ b/deployment/eks/flyte_helm_generated.yaml @@ -1387,7 +1387,7 @@ spec: command: ["/bin/sh", "-c"] args: [ - "flyteadmin --config=/etc/flyte/config/*.yaml secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --fromPath /etc/secrets/auth", + "flyteadmin --config=/etc/flyte/config/*.yaml secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --name flyte-admin-secrets --fromPath /etc/secrets/auth", ] volumeMounts: - name: config-volume diff --git a/deployment/gcp/flyte_helm_generated.yaml b/deployment/gcp/flyte_helm_generated.yaml index 7fd82928e4..fc12c04356 100644 --- a/deployment/gcp/flyte_helm_generated.yaml +++ b/deployment/gcp/flyte_helm_generated.yaml @@ -3188,7 +3188,7 @@ spec: command: ["/bin/sh", "-c"] args: [ - "flyteadmin --config=/etc/flyte/config/*.yaml secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --fromPath /etc/secrets/auth", + "flyteadmin --config=/etc/flyte/config/*.yaml secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --name flyte-admin-secrets --fromPath /etc/secrets/auth", ] volumeMounts: - name: config-volume diff --git a/deployment/sandbox/flyte_helm_generated.yaml b/deployment/sandbox/flyte_helm_generated.yaml index 10a5c5c5d6..65b8904924 100644 --- a/deployment/sandbox/flyte_helm_generated.yaml +++ b/deployment/sandbox/flyte_helm_generated.yaml @@ -3353,7 +3353,7 @@ spec: command: ["/bin/sh", "-c"] args: [ - "flyteadmin --config=/etc/flyte/config/*.yaml secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --fromPath /etc/secrets/auth", + "flyteadmin --config=/etc/flyte/config/*.yaml secrets init --localPath /etc/secrets/auth && flyteadmin --config=/etc/flyte/config/*.yaml secrets create --name flyte-admin-secrets --fromPath /etc/secrets/auth", ] volumeMounts: - name: config-volume