Skip to content

Commit

Permalink
helm: add tolerations support to clustermesh certgen
Browse files Browse the repository at this point in the history
A certgen job can be used to generate the TLS certificates required
both for hubble and clustermesh. Yet, the clustermesh one lacks the
possibility of configuring additional tolerations, which are instead
configurable in the hubble case. This is possibly useful for instance
to allow running the job on control-plane nodes. Hence, let's fix this
divergence.

Signed-off-by: Marco Iorio <[email protected]>
  • Loading branch information
giorio94 authored and sayboras committed Sep 20, 2023
1 parent 638fd1f commit 5e32026
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
hostNetwork: true
{{- with .Values.certgen.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccount: {{ .Values.serviceAccounts.clustermeshcertgen.name | quote }}
serviceAccountName: {{ .Values.serviceAccounts.clustermeshcertgen.name | quote }}
automountServiceAccountToken: {{ .Values.serviceAccounts.clustermeshcertgen.automount }}
Expand Down

0 comments on commit 5e32026

Please sign in to comment.