Skip to content

Commit 05c10f0

Browse files
author
Martin Jackson
committed
Add support for custom ee pull secret if desired
1 parent 9847d49 commit 05c10f0

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ description: A Helm chart to install an ansible-automation-platform instance
33
keywords:
44
- pattern
55
name: ansible-automation-platform-instance
6-
version: 0.1.0
6+
version: 0.1.1
77
dependencies:

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ansible-automation-platform-instance
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square)
44

55
A Helm chart to install an ansible-automation-platform instance
66

@@ -13,7 +13,11 @@ This chart is used to set up the Ansible Automation Platform Operator version 2.
1313
| aap.eda_disabled | bool | `false` | |
1414
| aap.hub_disabled | bool | `true` | |
1515
| aap.lightspeed_disabled | bool | `true` | |
16+
| eePullSecret.key | string | `"secret/data/hub/ee-pull-secret"` | |
17+
| eePullSecret.manage | bool | `false` | |
1618
| global.hubClusterDomain | string | `"example.com"` | |
19+
| secretStore.kind | string | `"ClusterSecretStore"` | |
20+
| secretStore.name | string | `"vault-backend"` | |
1721

1822
----------------------------------------------
1923
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

templates/aap.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
namespace: ansible-automation-platform
77
spec:
88
controller:
9+
{{- if .Values.eePullSecret.manage }}
10+
ee_pull_credentials_secret: ee-pull-secret
11+
{{- end }}
912
disabled: false
1013
eda:
1114
disabled: {{ coalesce .Values.aap.eda_disabled "false" }}

templates/ee-pull-secret.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- if .Values.eePullSecret.manage }}
2+
---
3+
apiVersion: "external-secrets.io/v1beta1"
4+
kind: ExternalSecret
5+
metadata:
6+
name: ee-pull-secret
7+
spec:
8+
refreshInterval: 15s
9+
secretStoreRef:
10+
name: {{ .Values.secretStore.name }}
11+
kind: {{ .Values.secretStore.kind }}
12+
target:
13+
name: ee-pull-secret
14+
dataFrom:
15+
- extract:
16+
key: {{ .Values.eePullSecret.key }}
17+
{{- end }}

values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
global:
33
hubClusterDomain: example.com
44

5+
eePullSecret:
6+
manage: false
7+
key: secret/data/hub/ee-pull-secret
8+
59
aap:
610
eda_disabled: false
711
hub_disabled: true
812
lightspeed_disabled: true
13+
14+
secretStore:
15+
name: vault-backend
16+
kind: ClusterSecretStore

0 commit comments

Comments
 (0)