Skip to content

Commit 5794731

Browse files
authored
fix: service account and pod annotations (#141)
1 parent 8504f3f commit 5794731

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

charts/zenrock-mpc/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.1.1
1919

2020
maintainers:
2121
- name: 0xDones

charts/zenrock-mpc/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# zenrock-mpc
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

charts/zenrock-mpc/templates/_helpers.tpl

-7
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,3 @@ Create the name of the service account to use
6262
{{- default "default" .Values.serviceAccount.name }}
6363
{{- end }}
6464
{{- end }}
65-
66-
{{/*
67-
Some changes for upgrade docker image without any changes in helm
68-
*/}}
69-
{{- define "zenrock-mpc.annotations" -}}
70-
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
71-
{{- end }}

charts/zenrock-mpc/templates/deployment.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ spec:
2424
{{- include "zenrock-mpc.selectorLabels" . | nindent 6 }}
2525
template:
2626
metadata:
27+
{{- with .Values.podAnnotations }}
2728
annotations:
28-
{{- include "zenrock-mpc.annotations" . | nindent 8 }}
29-
{{- with .Values.podAnnotations }}
3029
{{- toYaml . | nindent 8 }}
31-
{{- end }}
30+
{{- end }}
3231
labels:
3332
{{- include "zenrock-mpc.selectorLabels" . | nindent 8 }}
3433
{{- if .Values.commonLabels }}
@@ -41,6 +40,8 @@ spec:
4140
{{- end }}
4241
{{- if .Values.serviceAccount.name }}
4342
serviceAccountName: {{ .Values.serviceAccount.name }}
43+
{{- else }}
44+
serviceAccountName: {{ include "zenrock-mpc.fullname" . }}
4445
{{- end }}
4546
securityContext:
4647
{{- toYaml .Values.podSecurityContext | nindent 8 }}

0 commit comments

Comments
 (0)