Skip to content

Commit

Permalink
GKE Workload Identity example
Browse files Browse the repository at this point in the history
  • Loading branch information
tammert committed Apr 21, 2021
1 parent c2d2772 commit 544e934
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion replicant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: Official Helm chart for Replicant

type: application

version: 0.2.4
version: 0.2.5
appVersion: "v0.2.2"
4 changes: 2 additions & 2 deletions replicant/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ helm.sh/chart: {{ include "replicant.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.additionalLabels }}
{{ toYaml .Values.additionalLabels }}
{{- with .Values.additionalLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

Expand Down
4 changes: 2 additions & 2 deletions replicant/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
labels:
{{- include "replicant.labels" . | nindent 4 }}
data:
{{- if .Values.environmentVariables }}
{{- toYaml .Values.environmentVariables | nindent 2 }}
{{- with .Values.environmentVariables }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- if .Values.googleApplicationCredentials }}
GOOGLE_APPLICATION_CREDENTIALS: "/secrets/key.json"
Expand Down
2 changes: 2 additions & 0 deletions replicant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ image:

serviceAccount:
create: true
# annotations:
# iam.gke.io/gcp-service-account: [email protected] #GKE Workload Identity

environmentVariables:
REPLICANT_CONFIG: "/config/replicant.yaml"
Expand Down

0 comments on commit 544e934

Please sign in to comment.