Skip to content

Conversation

@oxxenix
Copy link
Contributor

@oxxenix oxxenix commented Nov 25, 2024

No description provided.

@oxxenix oxxenix self-assigned this Nov 25, 2024
@oxxenix
Copy link
Contributor Author

oxxenix commented Nov 25, 2024

@byako, @eero-t, @tkatila PTAL

@oxxenix oxxenix removed the request for review from softwarerecipes November 25, 2024 12:28
Signed-off-by: Oksana Baranova <oksana.baranova@intel.com>
Comment on lines 39 to 40
nameOverride: intel-qat-nfd
enableNodeFeatureApi: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where these are used?

Copy link
Contributor Author

@oxxenix oxxenix Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enableNodeFeatureApi is used instead of nodeFeatureRules.enabled simplifying the management of the chart. nameOverride is used to set custom name for nfd components themselves, replacing default values

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I found nameOverride use from templates/_helpers.tpl (= already in repo), but I still do not see anything using enableNodeFeatureApi, neither in this PR, or already in repo. Where it's used?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eero-t , this is "nfd" section, nfd is an alias for https://kubernetes-sigs.github.io/node-feature-discovery/v0.16/deployment/helm.html?highlight=enableNodeFeatureApi#general-parameters , these are values for the dependency chart with one exception: line 14 in chart.yaml tells to install this dependency when nfd.enabled is true - enabled param is for this current chart.

Copy link

@eero-t eero-t Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment in the indicated docs state:

DEPRECATED: will be removed in NFD v0.17, use featureGates.NodeFeatureAPI instead.

Looking at the older NFD docs, enableNodeFeatureApi was referring to gRPC API that was deprecated already in NFD v0.14, but the featureGates options were added only in v0.16 (which is still the latest version).

Copy link

@eero-t eero-t Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nameOverride: intel-qat-nfd
enableNodeFeatureApi: true
nameOverride: intel-qat-nfd
# TODO: this deprecated NFD option will be replaced in NFD v0.17 with "featureGates.NodeFeatureAPI" (added in v0.16):
# https://kubernetes-sigs.github.io/node-feature-discovery/v0.16/deployment/helm.html#general-parameters
enableNodeFeatureApi: true

Copy link

@byako byako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Comment on lines 39 to 40
nameOverride: intel-qat-nfd
enableNodeFeatureApi: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eero-t , this is "nfd" section, nfd is an alias for https://kubernetes-sigs.github.io/node-feature-discovery/v0.16/deployment/helm.html?highlight=enableNodeFeatureApi#general-parameters , these are values for the dependency chart with one exception: line 14 in chart.yaml tells to install this dependency when nfd.enabled is true - enabled param is for this current chart.

@uniemimu
Copy link

Not a real review, but a reminder to test this several times in a cluster which doesn't yet have NFD deployed, and with the nfd.enabled turned to true for the values. There's high likelihood of CRD related issues arising.

@oxxenix
Copy link
Contributor Author

oxxenix commented Dec 3, 2024

Not a real review, but a reminder to test this several times in a cluster which doesn't yet have NFD deployed, and with the nfd.enabled turned to true for the values. There's high likelihood of CRD related issues arising.

The chart has been tested in two cluster setups: one without QAT and one with QAT. Both configurations work as expected

@oxxenix oxxenix requested review from byako, eero-t, mythi and tkatila December 3, 2024 09:32
Copy link

@eero-t eero-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with couple of doc suggestions.

Copy link
Contributor

@tkatila tkatila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

Can you squash the fix commits before this is merged?

@oxxenix oxxenix merged commit 1f3edad into intel:main Dec 5, 2024
vagheshp pushed a commit that referenced this pull request Jul 16, 2025
* add NFD rule to QAT resource driver

Signed-off-by: Oksana Baranova <oksana.baranova@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants