From 1c041351324db442ada48edad0d67b5032ea3907 Mon Sep 17 00:00:00 2001 From: Andrey Ryoo Date: Fri, 17 Nov 2023 14:46:06 +0600 Subject: [PATCH] Removes aws access key and secret key when using STS --- charts/allure-testops/templates/infra/vault.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/allure-testops/templates/infra/vault.yaml b/charts/allure-testops/templates/infra/vault.yaml index a30914d..7713b88 100644 --- a/charts/allure-testops/templates/infra/vault.yaml +++ b/charts/allure-testops/templates/infra/vault.yaml @@ -38,10 +38,12 @@ spec: key: "rabbitUser" - objectName: "rabbitPass" key: "rabbitPass" +{{- if not .Values.aws.enabled }} - objectName: "s3AccessKey" key: "s3AccessKey" - objectName: "s3SecretKey" key: "s3SecretKey" +{{- end }} - objectName: "smtpUsername" key: "smtpUsername" - objectName: "smtpPassword" @@ -108,6 +110,7 @@ spec: secretPath: "{{ .Values.vault.secretPath }}" secretKey: "rabbit_pass" +{{- if not .Values.aws.enabled }} - objectName: "s3AccessKey" secretPath: "{{ .Values.vault.secretPath }}" secretKey: "s3_access_key" @@ -115,6 +118,7 @@ spec: - objectName: "s3SecretKey" secretPath: "{{ .Values.vault.secretPath }}" secretKey: "s3_secret_key" +{{- end }} - objectName: "smtpUsername" secretPath: "{{ .Values.vault.smtpPath }}"