Skip to content

Commit

Permalink
feat(helm): options to set the priority class
Browse files Browse the repository at this point in the history
  • Loading branch information
npdgm committed Dec 19, 2022
1 parent ba830dd commit f956d29
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deploy/charts/x509-certificate-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ in the container namespace.
| hostPathsExporter.nodeSelector | object | `{}` | Node selector for Pods of hostPath exporters (default for all hostPathsExporter.daemonSets) |
| hostPathsExporter.tolerations | list | `[]` | Toleration for Pods of hostPath exporters (default for all hostPathsExporter.daemonSets) |
| hostPathsExporter.affinity | object | `{}` | Affinity for Pods of hostPath exporters (default for all hostPathsExporter.daemonSets) |
| hostPathsExporter.priorityClassName | string | `""` | PriorityClassName for Pods of hostPath exporters |
| hostPathsExporter.podExtraLabels | object | `{}` | Additional labels added to Pods of hostPath exporters (default for all hostPathsExporter.daemonSets) |
| hostPathsExporter.podAnnotations | object | `{}` | Annotations added to Pods of hostPath exporters (default for all hostPathsExporter.daemonSets) |
| hostPathsExporter.podSecurityContext | object | `{}` | PodSecurityContext for Pods of hostPath exporters (default for all hostPathsExporter.daemonSets) |
Expand Down Expand Up @@ -395,6 +396,7 @@ in the container namespace.
| extraLabels | object | `{}` | Additional labels added to all chart objects |
| podExtraLabels | object | `{}` | Additional labels added to all Pods |
| podAnnotations | object | `{}` | Annotations added to all Pods |
| priorityClassName | string | `""` | PriorityClassName set for all Pods by default (could be overrided with `secretsExporter` and `hostPathsExporter` specific values) |
| extraVolumes | list | `[]` | Additionnal volumes added to all Pods (see also the `secretsExporter` and `hostPathsExporter` variants) |
| extraVolumeMounts | list | `[]` | Additionnal volume mounts added to all Pod containers (see also the `secretsExporter` and `hostPathsExporter` variants) |
| psp.create | bool | `false` | Should Pod Security Policy objects be created |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
{{- . | toYaml | trim | nindent 8 }}
{{- end }}
restartPolicy: {{ default $.Values.hostPathsExporter.restartPolicy $dsDef.restartPolicy }}
{{- with default $.Values.priorityClassName (default $.Values.hostPathsExporter.priorityClassName $dsDef.priorityClassName) }}
priorityClassName: {{ . | quote }}
{{- end }}
containers:
- name: {{ $.Chart.Name }}
{{- with default $.Values.hostPathsExporter.securityContext $dsDef.securityContext }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ spec:
{{- end }}
restartPolicy: {{ .Values.secretsExporter.restartPolicy }}
serviceAccountName: {{ include "x509-certificate-exporter.secretsExporterServiceAccountName" . }}
{{- if (ne "" .Values.secretsExporter.priorityClassName) }}
priorityClassName: {{ .Values.secretsExporter.priorityClassName }}
{{- with default .Values.priorityClassName .Values.secretsExporter.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down
5 changes: 5 additions & 0 deletions deploy/charts/x509-certificate-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ hostPathsExporter:
tolerations: []
# -- Affinity for Pods of hostPath exporters (default for all hostPathsExporter.daemonSets)
affinity: {}
# -- PriorityClassName for Pods of hostPath exporters
priorityClassName: ""
# -- Additional labels added to Pods of hostPath exporters (default for all hostPathsExporter.daemonSets)
podExtraLabels: {}
# -- Annotations added to Pods of hostPath exporters (default for all hostPathsExporter.daemonSets)
Expand Down Expand Up @@ -262,6 +264,9 @@ podAnnotations: {}
# prometheus.io/port: "9793"
# prometheus.io/scrape: "true"

# -- PriorityClassName set for all Pods by default (could be overrided with `secretsExporter` and `hostPathsExporter` specific values)
priorityClassName: ""

# -- Additionnal volumes added to all Pods (see also the `secretsExporter` and `hostPathsExporter` variants)
extraVolumes: []

Expand Down

0 comments on commit f956d29

Please sign in to comment.