Skip to content

Commit

Permalink
Merge pull request #109 from gruppferi/add-default-chart-stuff
Browse files Browse the repository at this point in the history
Add default chart stuff
  • Loading branch information
toelke authored Feb 19, 2024
2 parents a753e9c + 5630392 commit 06a5724
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/wave/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ spec:
{{ include "wave-labels.chart" . | indent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{ include "wave-labels.chart" . | indent 8 }}
spec:
Expand All @@ -29,7 +33,10 @@ spec:
- --sync-period={{ .Values.syncPeriod }}
{{- end }}
volumeMounts: {{ toYaml .Values.extraVolumeMounts | nindent 12 }}
resources: {{- toYaml .Values.resources | nindent 12 }}
securityContext: {{ toYaml .Values.securityContext | nindent 8 }}
serviceAccountName: {{ .Values.serviceAccount.name | default (include "wave-fullname" .) }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
affinity: {{ toYaml .Values.affinity | nindent 8 }}
tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
volumes: {{ toYaml .Values.extraVolumes | nindent 8 }}
18 changes: 18 additions & 0 deletions charts/wave/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,21 @@ serviceAccount:

# Period for reconciliation
# syncPeriod: 5m

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

tolerations: []

affinity: {}

podAnnotations: {}

0 comments on commit 06a5724

Please sign in to comment.