-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add ExternalSecret for Ansible AWX Credentials and URL (#285)
- Loading branch information
1 parent
289472f
commit fa4a841
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
deploy-templates/templates/external-secrets/externalsecret-ci-awx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |