Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/portainer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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.

version: 1.0.69
version: 1.0.70
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: ce-latest-ee-2.27.9
Expand Down
4 changes: 4 additions & 0 deletions charts/portainer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
metadata:
labels:
{{- include "portainer.selectorLabels" . | nindent 8 }}
annotations:
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | nindent 8 }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- toYaml .Values.podAnnotations | nindent 8 }}
{{- tpl (toYaml .Values.podAnnotations) . | nindent 8 }}

This allow dynamic values in podAnnotations. Use case example https://stackoverflow.com/questions/69371607/helm-add-checksum-annotation-from-values

This approach is used in many popular charts, e.g.

@emagiz

{{- end }}
spec:
nodeSelector: {{- toYaml .Values.nodeSelector | nindent 8 }}
tolerations: {{- toYaml .Values.tolerations | nindent 8 -}}
Expand Down
3 changes: 3 additions & 0 deletions charts/portainer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ service:
edgeNodePort: 30776
annotations: {}

# The following annotations are applied to the Portainer pod
podAnnotations: {}

tls:
# If set, Portainer will be configured to use TLS only
force: false
Expand Down
Loading