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

Add helm chart for NFD #423

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

adrianchiris
Copy link
Contributor

This commit adds Helm chart for node-feature-discovery

Signed-off-by: Adrian Chiris adrianc@nvidia.com

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 16, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @adrianchiris. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 16, 2020
@adrianchiris
Copy link
Contributor Author

Addresses issue #422

@marquiz
Copy link
Contributor

marquiz commented Dec 16, 2020

Thanks @adrianchiris for the PR! I'll take a closer look soon

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 16, 2020
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

Looking good just a couple of suggestions

@adrianchiris
Copy link
Contributor Author

Hi,
A pair of eyes on this PR is appreciated :)

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.

Apologies for the delayed review. I had long holidays...

I'm not an expert on helm charts but basically looks good. Just had a few small comments and questions. One thing that I'd like to ask is to update documentation. I.e. a new section in docs/get-started/deployment-and-usage.md describing helm deployment.

In general I think it would be good to keep the raw deployment yaml templates and helm charts as much in sync as possible. I don't know if there's anything we can really do to make to help with this but to just state it somewhere (e.g. comments in all yaml files or smth).

deployment/node-feature-discovery/Chart.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/templates/master.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
Copy link
Contributor Author

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

Will update the PR during next week.

Apologies for the delayed review. I had long holidays...

No worries, hope you enjoyed the holidays ! :)

I'm not an expert on helm charts but basically looks good. Just had a few small comments >and questions. One thing that I'd like to ask is to update documentation. I.e. a new section in >docs/get-started/deployment-and-usage.md describing helm deployment.

Will add doc as well. this was actually in my TODO list for this PR. for now ill cover how to deploy with helm from master. as a second step we should look into creating a helm package for each release and setup a helm repository.

In general I think it would be good to keep the raw deployment yaml templates and helm >charts as much in sync as possible. I don't know if there's anything we can really do to make >to help with this but to just state it somewhere (e.g. comments in all yaml files or smth).

This would need to be looked after in PR reviews unfortunately, but ill add a comment in the yaml templates saying that if you change it, helm deployment templates should be changed as well.

@ArangoGutierrez
Copy link
Contributor

Will update the PR during next week.

Apologies for the delayed review. I had long holidays...

No worries, hope you enjoyed the holidays ! :)

I'm not an expert on helm charts but basically looks good. Just had a few small comments >and questions. One thing that I'd like to ask is to update documentation. I.e. a new section in >docs/get-started/deployment-and-usage.md describing helm deployment.

Will add doc as well. this was actually in my TODO list for this PR. for now ill cover how to deploy with helm from master. as a second step we should look into creating a helm package for each release and setup a helm repository.

In general I think it would be good to keep the raw deployment yaml templates and helm >charts as much in sync as possible. I don't know if there's anything we can really do to make >to help with this but to just state it somewhere (e.g. comments in all yaml files or smth).

This would need to be looked after in PR reviews unfortunately, but ill add a comment in the yaml templates saying that if you change it, helm deployment templates should be changed as well.

Awesome, thanks for your contribution, is really appreciated!

@marquiz
Copy link
Contributor

marquiz commented Jan 29, 2021

Will add doc as well. this was actually in my TODO list for this PR. for now ill cover how to deploy with helm from master. as a second step we should look into creating a helm package for each release and setup a helm repository.

OK, good

This would need to be looked after in PR reviews unfortunately, but ill add a comment in the yaml templates saying that if you change it, helm deployment templates should be changed as well.

I think this would be enough, 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.

Thanks for the documentation! Still some minor comments that need to be addressed

deployment/node-feature-discovery/templates/worker.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Outdated Show resolved Hide resolved
deployment/node-feature-discovery/values.yaml Show resolved Hide resolved
docs/get-started/deployment-and-usage.md Outdated Show resolved Hide resolved
@ArangoGutierrez
Copy link
Contributor

/retest

@marquiz marquiz changed the title Add helm chat for NFD Add helm chart for NFD Feb 17, 2021
@marquiz
Copy link
Contributor

marquiz commented Feb 17, 2021

Thanks @e0ne! Looks like the only open comment is changing (back) the name of the (worker config) configmap to nfd-worker-conf

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 for the updates @e0ne. Still found few minor things to fix. After these are done you could probably squash the PR again and we should be good to go 🤞 😄

docs/get-started/deployment-and-usage.md Outdated Show resolved Hide resolved
deployment/node-feature-discovery/templates/worker.yaml Outdated Show resolved Hide resolved
@e0ne
Copy link
Contributor

e0ne commented Feb 18, 2021

@marquiz could you please help me with CI failure troubleshooting? 'make templates' on my local env doesn't generate any new changes

@ArangoGutierrez
Copy link
Contributor

[eduardo@fedora-ws node-feature-discovery]$ ./scripts/test-infra/verify.sh 
golangci/golangci-lint info checking GitHub for tag 'v1.30.0'
golangci/golangci-lint info found version: 1.30.0 for v1.30.0/linux/amd64
golangci/golangci-lint info installed /home/eduardo/go/bin/golangci-lint
golangci-lint run --timeout 5m0s
[eduardo@fedora-ws node-feature-discovery]$ git branch 
* (HEAD detached at adrianchiris/add-helm-chart)*

/test pull-node-feature-discovery-verify

@marquiz
Copy link
Contributor

marquiz commented Feb 18, 2021

@marquiz could you please help me with CI failure troubleshooting? 'make templates' on my local env doesn't generate any new changes

Ach, this must be caused by the latest changes in master. Prow doesn't actually test the revision here, but, this revision merged to master. Rebase on top of master and try make templates again.

@e0ne
Copy link
Contributor

e0ne commented Feb 18, 2021

@ArangoGutierrez thank you. I executed it locally and it didn't find any issue. Let's see if retriggered job passes

@ArangoGutierrez
Copy link
Contributor

Yeah @marquiz is right, maybe you need a soft rebase, that should fix it

@e0ne
Copy link
Contributor

e0ne commented Feb 18, 2021

@marquiz thanks!

@ArangoGutierrez
Copy link
Contributor

Makes me wonder, why Prow is not setting the needs-rebase label? 🤔

@ArangoGutierrez
Copy link
Contributor

Rebase did the trick

docs/get-started/deployment-and-usage.md Outdated Show resolved Hide resolved
docs/get-started/deployment-and-usage.md Outdated Show resolved Hide resolved
docs/get-started/deployment-and-usage.md Outdated Show resolved Hide resolved
docs/get-started/deployment-and-usage.md Outdated Show resolved Hide resolved
@marquiz
Copy link
Contributor

marquiz commented Feb 18, 2021

Makes me wonder, why Prow is not setting the needs-rebase label? 🤔

Because from the git pow, no rebase is needed, merge succeeds just fine. It's just our testing (or verify step) wasn't happy with the merged result. Prow doesn't know the cause behind this failure. Technically, prow could test BOTH versions, of course and suggest a rebase if the merged one fails...

This commit adds Helm chart for node-feature-discovery

Signed-off-by: Adrian Chiris <adrianc@nvidia.com>
Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
@marquiz
Copy link
Contributor

marquiz commented Feb 18, 2021

I don't have anything else to add 😊 Great work @e0ne and @adrianchiris! 🎉 Very good to have helm support for NFD, finally...
/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 18, 2021
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

tested on k 1.20+
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrianchiris, 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:

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 3e00bfb into kubernetes-sigs:master Feb 18, 2021
@e0ne
Copy link
Contributor

e0ne commented Feb 18, 2021

@marquiz @ArangoGutierrez thanks for the guiding me to make this merge happen.

@e0ne e0ne mentioned this pull request Feb 23, 2021
@adrianchiris
Copy link
Contributor Author

Closes: #422

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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

None yet

5 participants