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 logic to set the operator's status in the NFD CR #88

Merged

Conversation

ArangoGutierrez
Copy link
Contributor

This PR rebases on #84

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Sep 30, 2021
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 30, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 30, 2021
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 30, 2021
@ArangoGutierrez
Copy link
Contributor Author

Let's merge #89 first
/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 30, 2021
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.

Yeah, I think this basically looks good 👍 After #89 is merged just rebase and squash and I think we should be good to go

@ArangoGutierrez
Copy link
Contributor Author

Ready @marquiz
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 30, 2021
@ArangoGutierrez
Copy link
Contributor Author

/assign@marquiz

@ArangoGutierrez
Copy link
Contributor Author

re-re-re-re based

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.

Hmm, still spotted some oddities. It was now much easier to review as all the unrelated stuff was cleaned away 😄

controllers/nodefeaturediscovery_status.go Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Show resolved Hide resolved
controllers/nodefeaturediscovery_controller.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
@ArangoGutierrez ArangoGutierrez force-pushed the devel/rebase_84 branch 2 times, most recently from 437f8da to 6be18b1 Compare October 1, 2021 14:58
@ArangoGutierrez
Copy link
Contributor Author

ummm I see failed to rebase, 1 sec

@ArangoGutierrez ArangoGutierrez added the hacktoberfest-accepted hacktoberfest participating issue label Oct 1, 2021
@ArangoGutierrez
Copy link
Contributor Author

/assign @marquiz

controllers/nodefeaturediscovery_controller.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_controller.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
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.

Looks like you had reverted some of the earlier fixes with the latest push. Also a new bunch of small comments and suggestions. But, overall, I feel that we're getting there and this should be the last review round 😊

controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_controller.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_controller.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
controllers/nodefeaturediscovery_status.go Outdated Show resolved Hide resolved
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.

nit: I still see a multitude of those stale empty lines around.

After fixing those, I'd suggest to squash the commits and lets get this merged

// getServiceConditions gets the current status of a Service. If an error
// occurs, this function returns the corresponding error message
func (r *NodeFeatureDiscoveryReconciler) getServiceConditions(ctx context.Context) (Status, error) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Still there

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 5, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 5, 2021
@ArangoGutierrez
Copy link
Contributor Author

nit: I still see a multitude of those stale empty lines around.

After fixing those, I'd suggest to squash the commits and lets get this merged

Done

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.

You hadn't answered to the question about isUpgradeable, just marked as resolved 🧐


// Is the resource available, upgradable, etc.?
isAvailable bool
isUpgradeable bool
Copy link
Contributor

Choose a reason for hiding this comment

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

/woof

@k8s-ci-robot
Copy link
Contributor

@marquiz: dog image

In response to this:

/woof

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

You hadn't answered to the question about isUpgradeable, just marked as resolved monocle_face

totally skipped that comment, sorry, fixing...

Add logic that sets the operator's status in the NFD CR based on
whether one or more of NFD's resources is: degraded, progressing,
upgradeable, or available. Also add a "applyComponents" function
to simplify readability.

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
Co-Authored-by: Courtney Pacheco <cpacheco@redhat.com>
Co-authored-by: Markus Lehtonen <markus.lehtonen@intel.com>
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.

I think it's time
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 5, 2021
@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 4c65abb into kubernetes-sigs:master Oct 5, 2021
@marquiz marquiz mentioned this pull request Oct 26, 2021
13 tasks
@ArangoGutierrez ArangoGutierrez deleted the devel/rebase_84 branch March 13, 2023 10:33
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. hacktoberfest-accepted hacktoberfest participating issue 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.

3 participants