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

⚠️ More than one instance found is now an error #2109

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

EmilienM
Copy link
Contributor

@EmilienM EmilienM commented Jun 3, 2024

What this PR does / why we need it:

  • Move errors functions/vars into capoerrors, so they can easily be
    re-used.
  • Now we return an error if multiple instances with the same name were
    found (and not just a warning). There is no safe course of action here.

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

* Move errors functions/vars into capoerrors, so they can easily be
  re-used.
* Now we return an error if multiple instances with the same name were
  found (and not just a warning). There is no safe course of action here.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 3, 2024
@EmilienM EmilienM changed the title More than one instance found is now an error 🐛 More than one instance found is now an error Jun 3, 2024
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 3, 2024
Copy link

netlify bot commented Jun 3, 2024

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

Name Link
🔨 Latest commit 6f9dceb
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/665de38567e9a2000872c1ef
😎 Deploy Preview https://deploy-preview-2109--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.

@EmilienM
Copy link
Contributor Author

EmilienM commented Jun 3, 2024

/assign mdbooth

@MaysaMacedo
Copy link
Contributor

/lgtm

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

jichenjc commented Jun 4, 2024

/lgtm

@mdbooth mdbooth changed the title 🐛 More than one instance found is now an error ⚠️ More than one instance found is now an error Jun 4, 2024
@mdbooth
Copy link
Contributor

mdbooth commented Jun 4, 2024

/approve

I've updated the title because we should highlight this as a breaking change when it's released. It's possible that somebody was previously getting lucky with the old behaviour who will be broken now we've fixed it.

@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

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 Jun 4, 2024
@k8s-ci-robot k8s-ci-robot merged commit a63ce56 into kubernetes-sigs:main Jun 4, 2024
9 checks passed
@mdbooth mdbooth deleted the issue_2088 branch June 4, 2024 10:07
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Status: Inbox
Development

Successfully merging this pull request may close these issues.

GetInstanceStatusByName doesn't return an error when > 1 instance if found
5 participants