From 76d1a1f00687c31072c7dbcc58925092cc3ea744 Mon Sep 17 00:00:00 2001 From: Daniil Nedostup Date: Tue, 27 Aug 2024 23:02:05 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20Add=20ExternalSecret=20for=20Ansible?= =?UTF-8?q?=20AWX=20=D1=81redentials=20and=20URL=20(#285)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../externalsecret-ci-awx.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 deploy-templates/templates/external-secrets/externalsecret-ci-awx.yaml diff --git a/deploy-templates/templates/external-secrets/externalsecret-ci-awx.yaml b/deploy-templates/templates/external-secrets/externalsecret-ci-awx.yaml new file mode 100644 index 000000000..60f13d1fc --- /dev/null +++ b/deploy-templates/templates/external-secrets/externalsecret-ci-awx.yaml @@ -0,0 +1,31 @@ +{{- if and .Values.externalSecrets.enabled .Values.externalSecrets.manageEDPInstallSecrets }} +{{- $secretStore := include "edp-install.secretStoreName" . }} +{{- $awsSecretName := .Values.externalSecrets.manageEDPInstallSecretsName }} +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ci-awx +spec: + target: + template: + metadata: + labels: + app.edp.epam.com/secret-type: awx + refreshInterval: 1h + secretStoreRef: + kind: SecretStore + name: {{ $secretStore }} + data: + - secretKey: username + remoteRef: + key: {{ $awsSecretName }} + property: ci-awx.username + - secretKey: password + remoteRef: + key: {{ $awsSecretName }} + property: ci-awx.password + - secretKey: url + remoteRef: + key: {{ $awsSecretName }} + property: ci-awx.url +{{- end }}