Skip to content

Commit

Permalink
update: nfd operator
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Oct 2, 2023
1 parent 76630ea commit bc7e659
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true

namespace: openshift-nfd

resources:
- ../../../operator/overlays/stable
- ../../../instance/overlays/only-nvidia
25 changes: 12 additions & 13 deletions components/operators/nfd/instance/base/node-feature-discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ apiVersion: nfd.openshift.io/v1
metadata:
name: nfd-instance
spec:
# customConfig:
# configData: |
# # - name: "more.kernel.features"
# # matchOn:
# # - loadedKMod: ["example_kmod3"]
# # - name: "more.features.by.nodename"
# # value: customValue
# # matchOn:
# # - nodename: ["special-.*-node-.*"]
customConfig:
configData: |
# - name: "more.kernel.features"
# matchOn:
# - loadedKMod: ["example_kmod3"]
# - name: "more.features.by.nodename"
# value: customValue
# matchOn:
# - nodename: ["special-.*-node-.*"]
operand:
# bug: an image has to be defined otherwise the deployment fails
# bug: this behavior recently changed
image: >-
registry.redhat.io/openshift4/ose-node-feature-discovery:latest
image: registry.redhat.io/openshift4/ose-node-feature-discovery:latest
servicePort: 12000
workerConfig:
configData: |
Expand All @@ -34,7 +33,7 @@ spec:
# stderrthreshold: 2
# v: 0
# vmodule:
## NOTE: the following options are not dynamically run-time
## NOTE: the following options are not dynamically run-time
## configurable and require a nfd-worker restart to take effect
## after being changed
# logDir:
Expand Down Expand Up @@ -125,4 +124,4 @@ spec:
# - pciId:
# vendor: ["15b3"]
# device: ["1014", "1017"]
# loadedKMod : ["vendor_kmod1", "vendor_kmod2"]
# loadedKMod : ["vendor_kmod1", "vendor_kmod2"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- target:
group: nfd.openshift.io
kind: NodeFeatureDiscovery
path: patch-node-feature-discovery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- op: add
path: /spec
value:
instance: ''
operand:
image: registry.redhat.io/openshift4/ose-node-feature-discovery:latest
servicePort: 12000
topologyUpdater: false
workerConfig:
configData: |
core:
sleepInterval: 60s
sources:
pci:
deviceClassWhitelist:
- "0200"
- "03"
- "12"
deviceLabelFields:
- "vendor"

0 comments on commit bc7e659

Please sign in to comment.