Browse Source

Allow setting priorityClassName

Kewei Ma 4 years ago
parent
commit
855e63ae45

+ 1 - 0
deploy/charts/external-secrets/README.md

@@ -49,6 +49,7 @@ The command removes all the Kubernetes components associated with the chart and
 | podAnnotations | object | `{}` |  |
 | podLabels | object | `{}` |  |
 | podSecurityContext | object | `{}` |  |
+| priorityClassName | string | `""` | Pod priority class name. |
 | prometheus.enabled | bool | `false` | Specifies whether to expose Service resource for collecting Prometheus metrics |
 | prometheus.service.port | int | `8080` |  |
 | rbac.create | bool | `true` | Specifies whether role and rolebinding resources should be created. |

+ 3 - 0
deploy/charts/external-secrets/templates/deployment.yaml

@@ -74,3 +74,6 @@ spec:
       tolerations:
         {{- toYaml . | nindent 8 }}
       {{- end }}
+      {{- if .Values.priorityClassName }}
+      priorityClassName: {{ .Values.priorityClassName }}
+      {{- end }}

+ 3 - 0
deploy/charts/external-secrets/values.yaml

@@ -66,3 +66,6 @@ nodeSelector: {}
 tolerations: []
 
 affinity: {}
+
+# -- Pod priority class name.
+priorityClassName: ""