Skip to content

Commit f673491

Browse files
committed
Only do the acm hub ca policy when vault is the backend
The acm hub ca is needed for ESO on spokes to connect to the vault on the hub, there is no need for this when vault is not used, so let's drop it in that case
1 parent e23fea0 commit f673491

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

acm/templates/policies/acm-hub-ca-policy.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This pushes out the HUB's Certificate Authorities on to the imported clusters
2-
{{ if .Values.clusterGroup.isHubCluster }}
2+
{{- if .Values.clusterGroup.isHubCluster }}
3+
{{- if (eq (((.Values.global).secretStore).backend) "vault") }}
34
---
45
apiVersion: policy.open-cluster-management.io/v1
56
kind: Policy
@@ -67,5 +68,5 @@ spec:
6768
operator: NotIn
6869
values:
6970
- 'true'
70-
{{ end }}
71-
71+
{{- end }}
72+
{{- end }}

acm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ global:
99
targetRevision: main
1010
options:
1111
applicationRetryLimit: 20
12+
secretStore:
13+
backend: "vault"
1214

1315
clusterGroup:
1416
subscriptions:

0 commit comments

Comments
 (0)