Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand nodeFeatureDiscovery CRD #39

Merged

Conversation

ArangoGutierrez
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez commented Nov 19, 2020

This Patch expands the nodeFeatureDiscovery CRD to enable users to
define the Operand image provenance regirsty/image:version as well as
the imaePullPolicy, that by default has been set to "Always"

Also now the nodeFeatureDiscovery CRD holds the binaryData for the
NFD-Worker configuration file, allowing users to define the desired
nfd-worker.conf by editing the CR.

To achieve this we move the api from v1alpha1 to v1 and extend the CRD
and the controller to watch for the updated resources.

extra: go mod tidy removed 2 non needed deps from go.mod

Fixes: #18

Signed-off-by: Carlos Eduardo Arango Gutierrez carangog@redhat.com

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 19, 2020
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 19, 2020
@ArangoGutierrez
Copy link
Contributor Author

Fixes: #18

@ArangoGutierrez
Copy link
Contributor Author

/cc mythi

@k8s-ci-robot
Copy link
Contributor

@ArangoGutierrez: GitHub didn't allow me to request PR reviews from the following users: mythi.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc mythi

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ArangoGutierrez
Copy link
Contributor Author

As we plan to cut a release for NFD, I also plan to cut a release for the operator, could we get a review on this Patch?
Thanks!

Comment on lines 9 to 11
image: node-feature-discovery
repository: k8s.gcr.io/nfd
version: v0.6.0
Copy link

Choose a reason for hiding this comment

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

is there a use-case to keep these separate? My preference would be to keep just image . FWIW, I'm also not sure about namespace if the deployment gets created in the CR namespace.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This granularity help us during testing, is almost the same I know, but I prefer to visualize it this way. I am ok with a single var holding the image info.

The namespace is there as a placeholder, I am not modifying this, current CR has image and namespace

Copy link

Choose a reason for hiding this comment

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

As I wrote, my preference is just image. This would be consistent with what pod spec has so less confusion for the user too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does c9260dc address this requested change? @mythi

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Thanks @ArangoGutierrez for the patch! From what I can tell, this looks basically good, just few minor comments/suggestions.

BTW, try running go mod tidy again. For me it tidies go.mod and go.sum even more

manifests/0700_cr.yaml Outdated Show resolved Hide resolved
manifests/0700_cr.yaml Outdated Show resolved Hide resolved
pkg/apis/nfd/v1/nodefeaturediscovery_types.go Outdated Show resolved Hide resolved
pkg/apis/nfd/v1/nodefeaturediscovery_types.go Outdated Show resolved Hide resolved
pkg/apis/nfd/v1/nodefeaturediscovery_types.go Outdated Show resolved Hide resolved
@ArangoGutierrez
Copy link
Contributor Author

Will squash once we agree on the patch state

manifests/0700_cr.yaml Outdated Show resolved Hide resolved
@marquiz
Copy link
Contributor

marquiz commented Dec 2, 2020

I only had one more comment. What about others, @mythi @zvonkok ?

@marquiz
Copy link
Contributor

marquiz commented Dec 2, 2020

Thanks @ArangoGutierrez ! I think this greatly increases the usability.

I'd be ready to merge. Has anybody really verified this change? 😉 I haven't...

@marquiz
Copy link
Contributor

marquiz commented Dec 3, 2020

One more comment/wish I actually have is that I think it would be good to reflect this change in the documentation (README) somehow. Even a short section about the operand configuration or smth. WDYT?

@ArangoGutierrez
Copy link
Contributor Author

One more comment/wish I actually have is that I think it would be good to reflect this change in the documentation (README) somehow. Even a short section about the operand configuration or smth. WDYT?

More documentation never hurt anyone! sure, good idea!

This Patch expands the nodeFeatureDiscovery CRD to enable users to
define the Operand image provenance regirsty/image:version as well as
the imaePullPolicy, that by default has been set to "Always"

Also now the nodeFeatureDiscovery CRD holds the binaryData for the
NFD-Worker configuration file, allowing users to define the desired
nfd-worker.conf by editing the CR.

To achieve this we move the api from v1alpha1 to v1 and extend the CRD
and the controller to watch for the updated resources.

extra: go mod tidy removed 2 non needed deps from go.mod

simplify ImagePolicy function pkg/apis/nfd/v1/nodefeaturediscovery_types.go  : ImagePolicy simplification

Document new changes to CRD

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
Co-authored-by: Markus Lehtonen <markus.lehtonen@intel.com>
@ArangoGutierrez
Copy link
Contributor Author

All requested changes have been addressed , commits are now squashed

Copy link

@mythi mythi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Good work 👍
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 4, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, marquiz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ArangoGutierrez,marquiz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit b91d80d into kubernetes-sigs:master Dec 4, 2020
@ArangoGutierrez ArangoGutierrez mentioned this pull request Dec 4, 2020
14 tasks
@ArangoGutierrez ArangoGutierrez deleted the nfd-worker-configmap branch March 13, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

immutable nfd-worker config
4 participants