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

Adopt conditionally based on owner #1214

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

ncdc
Copy link
Contributor

@ncdc ncdc commented Jul 31, 2019

What this PR does / why we need it:
This ports #1207 to master.

Only add a Cluster ownerReference to MachineDeployment if it doesn't
already have one.

Only add a Cluster ownerReference to MachineSet if it doesn't already
have one to a MachineDeployment or Cluster.

Only add a Cluster ownerReference to Machine if it doesn't already have
one to a MachineSet or Cluster.

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 #1210

Special notes for your reviewer:
I made a slight change from #1207 - Machines would never belong to a MachineDeployment, so I removed that condition.

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

@ncdc ncdc added this to the v1alpha2 milestone Jul 31, 2019
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 31, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 31, 2019
@ncdc
Copy link
Contributor Author

ncdc commented Aug 1, 2019

/hold
Waiting on #1217 to merge, then I'll remove the commit from this PR that has that fix too.

@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 Aug 1, 2019
@ncdc ncdc force-pushed the port-1207-to-master branch from faa0516 to ffc4a1e Compare August 1, 2019 14:13
@detiber
Copy link
Member

detiber commented Aug 1, 2019

@ncdc looks like there is still some remnants of the go.sum jsonpath issue here

@ncdc
Copy link
Contributor Author

ncdc commented Aug 1, 2019

@detiber where do you see that?

@ncdc
Copy link
Contributor Author

ncdc commented Aug 1, 2019

gah 1 sec

Only add a Cluster ownerReference to MachineDeployment if it doesn't
already have one.

Only add a Cluster ownerReference to MachineSet if it doesn't already
have one to a MachineDeployment or Cluster.

Only add a Cluster ownerReference to Machine if it doesn't already have
one to a MachineSet or Cluster.

Signed-off-by: Andy Goldstein <goldsteina@vmware.com>
@ncdc ncdc force-pushed the port-1207-to-master branch from ffc4a1e to 951a01e Compare August 1, 2019 14:19
@ncdc
Copy link
Contributor Author

ncdc commented Aug 1, 2019

/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 Aug 1, 2019
@detiber
Copy link
Member

detiber commented Aug 1, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 1, 2019
@k8s-ci-robot k8s-ci-robot merged commit 49ff335 into kubernetes-sigs:master Aug 1, 2019
@ncdc ncdc deleted the port-1207-to-master branch September 6, 2019 18:00
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.

Port #1207 to master
3 participants