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

🐛 Fix the deletion step order and OwnerReference matching, add matchpolicy to webhooks #28

Merged
merged 5 commits into from
Mar 23, 2020

Conversation

maelk
Copy link
Member

@maelk maelk commented Mar 20, 2020

What this PR does / why we need it:
This PR fixes the order of the deletion steps for Metal3Machine to prevent a NPE (#22)
It also changes the way the OwnerReferences are matched to not take into account the version, that
might change after an upgrade.
It also upgrades controller-gen for CAPI v0.3.2
It adds matchPolicy=Equivalent to the webhook to match across versions

Which issue(s) this PR fixes:
Fixes #22
Fixes #30

to delete the userData secret before releasing the host to
prevent an NPE.
Also updates to CAPI v0.3.2
to not check the version, in order to keep everything working
across version upgrades.
@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maelk

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

@metal3-io-bot metal3-io-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 20, 2020
@maelk
Copy link
Member Author

maelk commented Mar 20, 2020

/cc @kashifest
/cc @fmuyassarov
/cc @Xenwar

@maelk
Copy link
Member Author

maelk commented Mar 20, 2020

/test-integration

@maelk
Copy link
Member Author

maelk commented Mar 21, 2020

/test-v1a4-integration

@maelk maelk added this to the v0.4.0 milestone Mar 22, 2020
@maelk
Copy link
Member Author

maelk commented Mar 22, 2020

/test-v1a4-integration

@kashifest
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2020
@metal3-io-bot metal3-io-bot merged commit 7d8bf9e into metal3-io:master Mar 23, 2020
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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CAPM3 should not set error on transient failures capm3-controller-manager invalid memory address error
3 participants