Skip to content

Commit

Permalink
Merge pull request #75 from shoplineapp/release/0.9.0
Browse files Browse the repository at this point in the history
Release/0.9.0
  • Loading branch information
acgs771126 authored Apr 18, 2022
2 parents b49fac7 + 41cbb5c commit f275343
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cronjob/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
description: Helm chart with simple cronjob template
name: cronjob
version: 0.2.0
version: 0.3.0
appVersion: 0.0.1
tillerVersion: ">=2.14.3"
4 changes: 3 additions & 1 deletion cronjob/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ spec:
{{ $key | quote }} : {{ $value | quote }}
{{- end }}
spec:
{{- if .Values.serviceAccount }}
{{- if .Values.serviceaccount }}
serviceAccountName: {{ .Values.serviceaccount.name | default (printf "%s-pod-service-account" .Values.name) }}
{{- else if .Values.serviceAccount }}
serviceAccountName: {{ .Values.name }}-pod-service-account
{{- end }}
restartPolicy: Never
Expand Down
8 changes: 7 additions & 1 deletion cronjob/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{{- if .Values.serviceAccount }}
{{- if .Values.serviceaccount }}
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {{ toYaml .Values.serviceaccount.annotations | nindent 4}}
name: {{ .Values.serviceaccount.name | default (printf "%s-pod-service-account" .Values.name) }}
{{- else if .Values.serviceAccount }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
7 changes: 7 additions & 0 deletions cronjob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ envFrom: {}
# secretRef:
# - test-1-secret
# - test-2-secret

serviceaccount: {}
# example
# serviceaccount:
# annotations:
# eks.amazonaws.com/role-arn: <aws-role-arn>
# name: <serviceaccount-name>

0 comments on commit f275343

Please sign in to comment.