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

Match labels #133

Merged
merged 12 commits into from
Aug 3, 2023
Merged

Match labels #133

merged 12 commits into from
Aug 3, 2023

Conversation

mshitrit
Copy link
Member

@mshitrit mshitrit commented Jul 11, 2023

In order to solve ECOPROJECT-1307 using and matching unique labels in DS

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 11, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@mshitrit
Copy link
Member Author

/test ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 11, 2023

@mshitrit: The following commands are available to trigger required jobs:

  • /test 4.11-ci-index-self-node-remediation-bundle
  • /test 4.11-images
  • /test 4.11-openshift-e2e
  • /test 4.11-test
  • /test 4.12-ci-index-self-node-remediation-bundle
  • /test 4.12-images
  • /test 4.12-openshift-e2e
  • /test 4.12-test
  • /test 4.13-ci-index-self-node-remediation-bundle
  • /test 4.13-images
  • /test 4.13-openshift-e2e
  • /test 4.13-test
  • /test 4.14-ci-index-self-node-remediation-bundle
  • /test 4.14-images
  • /test 4.14-openshift-e2e
  • /test 4.14-test

Use /test all to run all jobs.

In response to this:

/test ?

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.

@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

1 similar comment
@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

Signed-off-by: Michael Shitrit <[email protected]>
@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

@mshitrit mshitrit changed the title [WIP] Match labels Match labels Jul 12, 2023
Signed-off-by: Michael Shitrit <[email protected]>
@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

@mshitrit mshitrit changed the title Match labels [WIP] Match labels Jul 18, 2023
@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

@mshitrit mshitrit changed the title [WIP] Match labels Match labels Jul 19, 2023
Signed-off-by: Michael Shitrit <[email protected]>
@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

@mshitrit
Copy link
Member Author

/test 4.12-openshift-e2e
/test 4.13-openshift-e2e
/test 4.14-openshift-e2e

@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e
/test 4.14-openshift-e2e

2 similar comments
@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e
/test 4.14-openshift-e2e

@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e
/test 4.14-openshift-e2e

@mshitrit
Copy link
Member Author

/test 4.13-openshift-e2e

Copy link
Member

@slintes slintes left a comment

Choose a reason for hiding this comment

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

Wouldn't it make sense to add this to the place where we already deal with the Daemonset? 🤔

https://github.com/medik8s/self-node-remediation/blob/main/controllers/selfnoderemediationconfig_controller.go#L102

edit: "this" refers to the last commit with old DS deletion

pkg/updatehelper/updatehelper.go Outdated Show resolved Hide resolved
@mshitrit
Copy link
Member Author

mshitrit commented Aug 1, 2023

/test 4.13-openshift-e2e

@mshitrit
Copy link
Member Author

mshitrit commented Aug 1, 2023

/test 4.12-openshift-e2e

install/self-node-remediation-deamonset.yaml Outdated Show resolved Hide resolved
controllers/selfnoderemediationconfig_controller.go Outdated Show resolved Hide resolved
@mshitrit
Copy link
Member Author

mshitrit commented Aug 1, 2023

/test 4.12-openshift-e2e

Copy link
Member

@slintes slintes left a comment

Choose a reason for hiding this comment

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

I would reorder things in the removeOldDsOnUpdateOperator() a bit (error handling first, then the happy path), but I won't block on this. Btw, why Operator in the method name?

Can we have a unit test for this?

@mshitrit
Copy link
Member Author

mshitrit commented Aug 2, 2023

I would reorder things in the removeOldDsOnUpdateOperator() a bit (error handling first, then the happy path),

Yep, I agree it would make more sense

Btw, why Operator in the method name?

IIUC this use case is relevant for when the operator is updated, just "update" seemed very generic to me and I wasn't sure the context will be clear enough

Can we have a unit test for this?

Indeed, good point.

@slintes
Copy link
Member

slintes commented Aug 2, 2023

IIUC this use case is relevant for when the operator is updated, just "update" seemed very generic to me and I wasn't sure the context will be clear enough

Ah ok, makes sense. Maybe removeOldDsOnOperatorUpdate() is a bit less confusing? 🙂

Signed-off-by: Michael Shitrit <[email protected]>
Signed-off-by: Michael Shitrit <[email protected]>
@mshitrit
Copy link
Member Author

mshitrit commented Aug 2, 2023

/test 4.12-openshift-e2e

Copy link
Member

@slintes slintes left a comment

Choose a reason for hiding this comment

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

nice test 👍🏼

@openshift-ci openshift-ci bot added the lgtm label Aug 2, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 2, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mshitrit, slintes

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

@mshitrit mshitrit marked this pull request as ready for review August 3, 2023 06:02
@openshift-ci openshift-ci bot requested review from clobrano and slintes August 3, 2023 06:02
@openshift-merge-robot openshift-merge-robot merged commit 9f835af into medik8s:main Aug 3, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants