Skip to content

Commit

Permalink
Change dp-terraform chart
Browse files Browse the repository at this point in the history
  • Loading branch information
kovayur committed Jun 13, 2023
1 parent 4b2b2fa commit fe02904
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ metadata:
stringData:
rhsso-service-account-client-id: {{ .Values.fleetshardSync.redHatSSO.clientId | quote }}
rhsso-service-account-client-secret: {{ .Values.fleetshardSync.redHatSSO.clientSecret | quote }}
{{- if eq .Values.fleetshardSync.aws.enableTokenAuth false }}
aws-access-key-id: {{ required "fleetshardSync.aws.accessKeyId is required when fleetshardSync.aws.enableTokenAuth = false" .Values.fleetshardSync.aws.accessKeyId | quote }}
aws-secret-access-key: {{ required "fleetshardSync.aws.secretAccessKey is required when fleetshardSync.aws.enableTokenAuth = false" .Values.fleetshardSync.aws.secretAccessKey | quote }}
{{- end }}
15 changes: 15 additions & 0 deletions dp-terraform/helm/rhacs-terraform/templates/fleetshard-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@ spec:
value: {{ .Values.fleetshardSync.telemetry.storage.endpoint | quote }}
- name: TELEMETRY_STORAGE_KEY
value: {{ .Values.fleetshardSync.telemetry.storage.key | quote }}
{{- if .Values.fleetshardSync.aws.enableTokenAuth }}
- name: AWS_WEB_IDENTITY_TOKEN_FILE
value: "/var/run/secrets/tokens/aws-token"
{{- else }}
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: fleetshard-sync
key: "aws-access-key-id"
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: fleetshard-sync
key: "aws-secret-access-key"
{{- end }}
volumeMounts:
- mountPath: /var/run/secrets/tokens
name: aws-token
Expand Down
3 changes: 3 additions & 0 deletions dp-terraform/helm/rhacs-terraform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ fleetshardSync:
aws:
region: "us-east-1" # TODO(2023-05-01): Remove the default value here as we now set it explicitly
roleARN: ""
enableTokenAuth: true
accessKeyId: ""
secretAccessKey: ""
telemetry:
storage:
endpoint: ""
Expand Down

0 comments on commit fe02904

Please sign in to comment.