Skip to content

Commit

Permalink
ROX-23709: Fix token expiration (#1891)
Browse files Browse the repository at this point in the history
Fix token expiration
  • Loading branch information
kovayur authored Jun 17, 2024
1 parent 0af0262 commit 6fad115
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions dp-terraform/helm/rhacs-terraform/templates/fleetshard-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,8 @@ spec:
key: {{ .Values.fleetshardSync.tenantImagePullSecret.key | quote }}
{{- end }}
volumeMounts:
- mountPath: /var/run/secrets/tokens/aws-token
subPath: aws-token
name: aws-token
readOnly: true
{{- if eq "SERVICE_ACCOUNT_TOKEN" .Values.fleetshardSync.authType }}
- mountPath: /var/run/secrets/tokens/fleet-manager-token
subPath: fleet-manager-token
name: fleet-manager-token
readOnly: true
{{- end }}
- mountPath: /var/run/secrets/tokens
name: tokens
ports:
- name: monitoring
containerPort: 8080
Expand All @@ -163,19 +155,16 @@ spec:
cpu: {{ .Values.fleetshardSync.resources.requests.cpu | quote }}
memory: {{ .Values.fleetshardSync.resources.requests.memory | quote }}
volumes:
- name: aws-token
- name: tokens
projected:
sources:
- serviceAccountToken:
path: aws-token
audience: sts.amazonaws.com
expirationSeconds: 3600
{{- if eq "SERVICE_ACCOUNT_TOKEN" .Values.fleetshardSync.authType }}
- name: fleet-manager-token
projected:
sources:
{{- if eq "SERVICE_ACCOUNT_TOKEN" .Values.fleetshardSync.authType }}
- serviceAccountToken:
path: fleet-manager-token
audience: acs-fleet-manager-private-api
expirationSeconds: 3600
{{- end }}
{{- end }}

0 comments on commit 6fad115

Please sign in to comment.