Skip to content

Commit 75f0a14

Browse files
helm: add priorityClassName option
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent e0b8a52 commit 75f0a14

File tree

6 files changed

+15
-0
lines changed

6 files changed

+15
-0
lines changed

deployment/helm/node-feature-discovery/templates/master.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ spec:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
2929
spec:
30+
{{- with .Values.priorityClassName }}
31+
priorityClassName: {{ . }}
32+
{{- end }}
3033
{{- with .Values.imagePullSecrets }}
3134
imagePullSecrets:
3235
{{- toYaml . | nindent 8 }}

deployment/helm/node-feature-discovery/templates/nfd-gc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
spec:
3030
serviceAccountName: {{ include "node-feature-discovery.gc.serviceAccountName" . }}
3131
dnsPolicy: ClusterFirstWithHostNet
32+
{{- with .Values.priorityClassName }}
33+
priorityClassName: {{ . }}
34+
{{- end }}
3235
{{- with .Values.imagePullSecrets }}
3336
imagePullSecrets:
3437
{{- toYaml . | nindent 8 }}

deployment/helm/node-feature-discovery/templates/topologyupdater.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ spec:
2828
spec:
2929
serviceAccountName: {{ include "node-feature-discovery.topologyUpdater.serviceAccountName" . }}
3030
dnsPolicy: ClusterFirstWithHostNet
31+
{{- with .Values.priorityClassName }}
32+
priorityClassName: {{ . }}
33+
{{- end }}
3134
{{- with .Values.imagePullSecrets }}
3235
imagePullSecrets:
3336
{{- toYaml . | nindent 8 }}

deployment/helm/node-feature-discovery/templates/worker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ spec:
2727
{{- end }}
2828
spec:
2929
dnsPolicy: ClusterFirstWithHostNet
30+
{{- with .Values.priorityClassName }}
31+
priorityClassName: {{ . }}
32+
{{- end }}
3033
{{- with .Values.imagePullSecrets }}
3134
imagePullSecrets:
3235
{{- toYaml . | nindent 8 }}

deployment/helm/node-feature-discovery/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ namespaceOverride: ""
1212

1313
enableNodeFeatureApi: true
1414

15+
priorityClassName: ""
16+
1517
master:
1618
enable: true
1719
config: ### <NFD-MASTER-CONF-START-DO-NOT-REMOVE>

docs/deployment/helm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Chart parameters are available.
9999
| `enableNodeFeatureApi`| bool | true | Enable the [NodeFeature](../usage/custom-resources.md#nodefeature) CRD API for communicating node features. This will automatically disable the gRPC communication. **NOTE**: this parameter is related to the deprecated gRPC API and will be removed with it in a future release |
100100
| `prometheus.enable` | bool | false | Specifies whether to expose metrics using prometheus operator |
101101
| `prometheus.labels` | dict | {} | Specifies labels for use with the prometheus operator to control how it is selected |
102+
| `priorityClassName` | string | | The name of the PriorityClass to be used for the NFD pods. |
102103

103104
Metrics are configured to be exposed using prometheus operator API's by
104105
default. If you want to expose metrics using the prometheus operator

0 commit comments

Comments
 (0)