Skip to content

Commit

Permalink
fix: service account and pod annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDones committed Aug 7, 2024
1 parent 8504f3f commit 98a9970
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/zenrock-mpc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

maintainers:
- name: 0xDones
Expand Down
2 changes: 1 addition & 1 deletion charts/zenrock-mpc/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zenrock-mpc

![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)
![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)

A Helm chart for Kubernetes

Expand Down
7 changes: 0 additions & 7 deletions charts/zenrock-mpc/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,3 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Some changes for upgrade docker image without any changes in helm
*/}}
{{- define "zenrock-mpc.annotations" -}}
releaseTime: {{ dateInZone "2006-01-02 15:04:05Z" (now) "UTC"| quote }}
{{- end }}
7 changes: 4 additions & 3 deletions charts/zenrock-mpc/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ spec:
{{- include "zenrock-mpc.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- include "zenrock-mpc.annotations" . | nindent 8 }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "zenrock-mpc.selectorLabels" . | nindent 8 }}
{{- if .Values.commonLabels }}
Expand All @@ -41,6 +40,8 @@ spec:
{{- end }}
{{- if .Values.serviceAccount.name }}
serviceAccountName: {{ .Values.serviceAccount.name }}
{{- else }}
serviceAccountName: {{ include "zenrock-mpc.fullname" . }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand Down

0 comments on commit 98a9970

Please sign in to comment.