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

[0.1] set OwnerRef in more cases #1207

Merged
merged 2 commits into from
Jul 31, 2019

Conversation

liztio
Copy link
Contributor

@liztio liztio commented Jul 29, 2019

What this PR does / why we need it:
Right now the cluster manager will only set an ownerreference if no owner exists at creation time. This could potentially cause issues if an object is owned by a not-Cluster API object. Instead, we will check all references to see if they point to a cluster-api object, and "adopt" them if they do not.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1190

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

Clusters will set OwnerReferences on Machines, MachineSet, and MachineDeployment if they are not already owned by another MachineSet or MachineDeployment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 29, 2019
@liztio liztio force-pushed the set-owners branch 2 times, most recently from 0b096a2 to b918159 Compare July 29, 2019 20:18
@liztio
Copy link
Contributor Author

liztio commented Jul 29, 2019

/assign @ncdc

Copy link
Member

@detiber detiber left a comment

Choose a reason for hiding this comment

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

Changes lgtm, some minor nits around the logging output

pkg/controller/machine/machine_controller.go Outdated Show resolved Hide resolved
pkg/controller/machineset/machineset_controller.go Outdated Show resolved Hide resolved
@liztio
Copy link
Contributor Author

liztio commented Jul 29, 2019

/test pull-cluster-api-test pull-cluster-api-integration

@liztio
Copy link
Contributor Author

liztio commented Jul 30, 2019

/test pull-cluster-api-test

pkg/util/util.go Show resolved Hide resolved
@ncdc ncdc mentioned this pull request Jul 30, 2019
@ncdc
Copy link
Contributor

ncdc commented Jul 31, 2019

Tagging as Liz is out of the office and my only comment is a typo we can fix in a follow-up.
/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liztio, ncdc

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 31, 2019
@k8s-ci-robot k8s-ci-robot merged commit 53e491e into kubernetes-sigs:release-0.1 Jul 31, 2019
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/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.

None yet

4 participants