Skip to content

Conversation

@mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Apr 1, 2024

This is a status field and should not be included in the spec. ProviderID is the same, but cannot be removed as it is required by Cluster API.

This PR replaces #1961 with a smaller scope.

TODO:

/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 1, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 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 Apr 1, 2024
@netlify
Copy link

netlify bot commented Apr 1, 2024

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 5c1ad44
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/660ad176a95ee60008ecace4
😎 Deploy Preview https://deploy-preview-1988--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdbooth mdbooth force-pushed the instanceidstatus2 branch from a6b46de to 5c1ad44 Compare April 1, 2024 15:23
@mdbooth
Copy link
Contributor Author

mdbooth commented Apr 1, 2024

/test pull-cluster-api-provider-openstack-e2e-full-test

Copy link
Contributor

@MaysaMacedo MaysaMacedo left a comment

Choose a reason for hiding this comment

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

It lgtm, I just have one question:


// InstanceID is the OpenStack instance ID for this machine.
// +optional
InstanceID optional.String `json:"instanceID,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Have we considered adding it under the Resolved field?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My first PR put it in Resources. This made sense, but I've decided against that for now. The reason is I think InstanceID is fundamental to the OpenStackMachine object and something an end user might be interested in (e.g. in printcolumns), but the other properties are not.

I have an idea that I might move actual machine creation into a separate controller with its own CRD, in which case Resources would move to the new controller. In that case I think we'd still want InstanceID to be on this object, so I decided to put it here instead.

None of which precludes adding it to Resources in the future too if it turns out that still makes sense.

@jichenjc
Copy link
Contributor

jichenjc commented Apr 2, 2024

/lgtm

looks good

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 2, 2024
@mdbooth
Copy link
Contributor Author

mdbooth commented Apr 2, 2024

/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 Apr 2, 2024
@k8s-ci-robot k8s-ci-robot merged commit 4c162b6 into kubernetes-sigs:main Apr 2, 2024
@mdbooth mdbooth deleted the instanceidstatus2 branch April 2, 2024 09:25
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

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants