Skip to content

Commit

Permalink
Address reviewer requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
  • Loading branch information
ArangoGutierrez committed Jul 4, 2023
1 parent d1c2b99 commit 52eeae6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deployment/network-operator/templates/upgrade-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
kubectl apply -f /crds/sriov-network-operator;
{{- end }}
{{- if .Values.nfd.enabled }}
if ! kubectl get crd | grep -E "nodefeaturerules\.nfd\.k8s-sigs\.io|nodefeatures\.nfd\.k8s-sigs\.io" ; then kubectl apply -f /crds/node-feature-discovery; fi
kubectl apply -f /crds/node-feature-discovery;
{{- end }}
restartPolicy: OnFailure
{{- end }}
9 changes: 6 additions & 3 deletions deployment/network-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ sriovNetworkOperator:

# Node Feature discovery chart related values
node-feature-discovery:
enableNodeFeatureApi: true
enableNodeFeatureApi: false
worker:
serviceAccount:
name: node-feature-discovery
# disable creation to avoid duplicate serviceaccount creation by master spec below
create: false
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Equal"
value: ""
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
- key: nvidia.com/gpu
operator: Exists
Expand All @@ -59,6 +61,7 @@ node-feature-discovery:
deviceLabelFields:
- vendor
master:
instance: "nvidia.networking"
serviceAccount:
name: node-feature-discovery
create: true
Expand Down
10 changes: 6 additions & 4 deletions hack/templates/values/values.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

nfd:
enabled: true
nodeFeatureRules: false

psp:
enabled: false
Expand All @@ -33,16 +32,18 @@ sriovNetworkOperator:

# Node Feature discovery chart related values
node-feature-discovery:
enableNodeFeatureApi: true
enableNodeFeatureApi: false
worker:
serviceAccount:
name: node-feature-discovery
# disable creation to avoid duplicate serviceaccount creation by master spec below
create: false
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Equal"
value: ""
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
- key: nvidia.com/gpu
operator: Exists
Expand All @@ -59,6 +60,7 @@ node-feature-discovery:
deviceLabelFields:
- vendor
master:
instance: "nvidia.networking"
serviceAccount:
name: node-feature-discovery
create: true
Expand Down

0 comments on commit 52eeae6

Please sign in to comment.