Skip to content

Commit

Permalink
0.27.2: include AWS credentials env into migration container
Browse files Browse the repository at this point in the history
  • Loading branch information
zaychenko-sergei committed Jul 1, 2024
1 parent 24b5b85 commit 42c2426
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kamu-api-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kamu-api-server
description: API server component of the Kamu Compute Node
type: application
version: 0.27.1
version: 0.27.2
appVersion: "0.27.1"
home: https://kamu.dev
icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png
Expand Down
20 changes: 19 additions & 1 deletion charts/kamu-api-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,35 @@ spec:
env:
- name: RUST_BACKTRACE
value: "1"
{{- if .Values.app.awsCredentials.enabled }}
{{- $secretName := include "kamu-api-server.awsCredentialsSecretName" . }}
- name: AWS_ENDPOINT
valueFrom:
secretKeyRef:
name: {{ $secretName }}
key: aws_endpoint
- name: AWS_REGION
valueFrom:
secretKeyRef:
name: {{ $secretName }}
key: aws_region
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: {{ $secretName }}
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ $secretName }}
key: aws_secret_access_key
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: fetch-db-secret
mountPath: /fetch-db-secret.sh
subPath: fetch-db-secret.sh
subPath: fetch-db-secret.sh
volumes:
- name: fetch-db-secret
configMap:
Expand Down

0 comments on commit 42c2426

Please sign in to comment.