Skip to content

Commit

Permalink
Add conditions to the chart
Browse files Browse the repository at this point in the history
  • Loading branch information
kovayur committed May 10, 2024
1 parent 811c818 commit b4fd1c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
name: fleetshard-sync
creationPolicy: Owner
data:
{{- if eq "RHSSO" .Values.fleetshardSync.authType }}
- secretKey: rhsso-service-account-client-id # pragma: allowlist secret
remoteRef:
key: "fleetshard-sync"
Expand All @@ -19,6 +20,7 @@ spec:
remoteRef:
key: "fleetshard-sync"
property: "rhsso_service_account_client_secret"
{{- end }}
- secretKey: telemetry-storage-key # pragma: allowlist secret
remoteRef:
key: "fleetshard-sync"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
value: {{ .Values.fleetshardSync.egressProxy.image | quote }}
- name: SECURE_TENANT_NETWORK
value: {{ .Values.fleetshardSync.secureTenantNetwork | quote }}
{{- if eq "RHSSO" .Values.fleetshardSync.authType }}
- name: RHSSO_SERVICE_ACCOUNT_CLIENT_ID
valueFrom:
secretKeyRef:
Expand All @@ -69,6 +70,7 @@ spec:
name: fleetshard-sync
key: "rhsso-service-account-client-secret"
optional: false
{{- end }}
- name: RHSSO_REALM
value: {{ .Values.fleetshardSync.redHatSSO.realm }}
- name: RHSSO_ENDPOINT
Expand Down

0 comments on commit b4fd1c0

Please sign in to comment.