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

🐛 Image controller: don't attempt upload when adopting #2180

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Sep 26, 2024

When an image is to be adopted, the controller would still attempt to upload content when it observed the image in the queued state after having been created externally. This didn't result in incorrect behaviour because API validation ensures that images for adoption don't specify a source. This meant that no upload could be attempted, but it did result in a spurious error message reported both to the user and in the logs.

/hold

When an image is to be adopted, the controller would still attempt to
upload content when it observed the image in the queued state after
having been created externally. This didn't result in incorrect
behaviour because API validation ensures that images for adoption don't
specify a source. This meant that no upload could be attempted, but it
did result in a spurious error message reported both to the user and in
the logs.
@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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 26, 2024
Copy link

netlify bot commented Sep 26, 2024

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

Name Link
🔨 Latest commit 574a702
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/66f536f88cf46f00080a5fa4
😎 Deploy Preview https://deploy-preview-2180--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

/approve
/lgtm

@mdbooth good to go I think, thanks for the fix

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 26, 2024
@mdbooth
Copy link
Contributor Author

mdbooth commented Sep 26, 2024

Confirmed from inspecting the logs that this clears up the untidy log messages.

/hold cancel
/approve

@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 Sep 26, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM, 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 merged commit 1e39a38 into kubernetes-sigs:main Sep 26, 2024
9 checks passed
@mdbooth mdbooth deleted the image-adopt branch September 26, 2024 13:22
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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants