Skip to content

Commit fa4a841

Browse files
chore: Add ExternalSecret for Ansible AWX Credentials and URL (#285)
1 parent 289472f commit fa4a841

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{- if and .Values.externalSecrets.enabled .Values.externalSecrets.manageEDPInstallSecrets }}
2+
{{- $secretStore := include "edp-install.secretStoreName" . }}
3+
{{- $awsSecretName := .Values.externalSecrets.manageEDPInstallSecretsName }}
4+
apiVersion: external-secrets.io/v1beta1
5+
kind: ExternalSecret
6+
metadata:
7+
name: ci-awx
8+
spec:
9+
target:
10+
template:
11+
metadata:
12+
labels:
13+
app.edp.epam.com/secret-type: awx
14+
refreshInterval: 1h
15+
secretStoreRef:
16+
kind: SecretStore
17+
name: {{ $secretStore }}
18+
data:
19+
- secretKey: username
20+
remoteRef:
21+
key: {{ $awsSecretName }}
22+
property: ci-awx.username
23+
- secretKey: password
24+
remoteRef:
25+
key: {{ $awsSecretName }}
26+
property: ci-awx.password
27+
- secretKey: url
28+
remoteRef:
29+
key: {{ $awsSecretName }}
30+
property: ci-awx.url
31+
{{- end }}

0 commit comments

Comments
 (0)