Repository navigation
Rename labels from sigs.k8s.io to machine.openshift.io - #161
Conversation
|
this will need a counter part PR on the installer for the machine manifests. Can you add openshift/installer#1263 to the description for reference |
|
| matchLabels: | ||
| sigs.k8s.io/cluster-api-machineset: test-master | ||
| sigs.k8s.io/cluster-api-cluster: tb-asg-35 | ||
| machine.openshift.io/cluster-api-machineset: test-master |
There was a problem hiding this comment.
for consistency, should this be machine-api-machineset and same for all cluster-api references?
There was a problem hiding this comment.
Don't have any opinion on that, maybe some others can chime in here.
There was a problem hiding this comment.
I agree with @ingvagabund I guess. It doesn't really matter. There's an argument to be made for keeping it exactly like upstream except for the domain prefix though. If I were picking anything I wanted, I'd call it machine.openshift.io/machineset I think. I don't know... maybe this isn't helpful at all.
| MachineLoop: | ||
| for _, m := range machineList.Items { | ||
| if m.Labels["sigs.k8s.io/cluster-api-machine-role"] == "worker" { | ||
| if m.Labels["machine.openshift.io/cluster-api-machine-role"] == "worker" { |
There was a problem hiding this comment.
this will never pass the tests unless you make it backward compatible with the installer labels
| for _, machineItem := range machineList.Items { | ||
| // empty or non-worker role skipped | ||
| if machineItem.Labels["sigs.k8s.io/cluster-api-machine-role"] == "worker" { | ||
| if machineItem.Labels["machine.openshift.io/cluster-api-machine-role"] == "worker" { |
There was a problem hiding this comment.
this will never pass the tests unless you make it backward compatible with the installer labels
There was a problem hiding this comment.
I won't block this PR on this, but we should really be using the already defined constants here.
|
/retest |
There was a problem hiding this comment.
@spangenberg this will never pass the test as it would break the installer unless you make it backward compatible since ClusterIDLabel it's used by getClusterID which is used to get aws instances
|
@spangenberg Please check the CI logs before rerunning tests. Nodes are not coming up because of #161 (comment) Once you fix and merge this PR. It will unblock integration tests here https://github.com/openshift/machine-api-operator/pull/213/files#diff-17c17f0cec2da748cc69098a4166b579 Then we need to make sure to sync openshift/origin#22090 and we can merge openshift/installer#1263 and eventually remove the deprecated labels from the other repos |
d2fc412 to
de09fc6
Compare
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-aws |

/cc bison