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

cli: fix upgrade apply for image-only upgrades #1468

Merged
merged 2 commits into from
Mar 22, 2023
Merged

Conversation

derpsteb
Copy link
Member

@derpsteb derpsteb commented Mar 20, 2023

Proposed change(s)

  • This fixes a bug where upgrade apply fails if only the image version is upgraded. This is due to mishandling of an empty configmap. This is a bug that is only located within the CLI and does not affect the cluster's ability to upgrade.

Checklist

  • Add labels (e.g., for changelog category)
  • Link to Milestone

@derpsteb derpsteb added bug fix Fixing a bug needs backport This PR needs to be backported to a previous release labels Mar 20, 2023
@derpsteb derpsteb added this to the v2.7.0 milestone Mar 20, 2023
@derpsteb derpsteb requested a review from 3u13r March 20, 2023 16:59
@netlify
Copy link

netlify bot commented Mar 20, 2023

Deploy Preview for constellation-docs ready!

Name Link
🔨 Latest commit a99016b
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/641ab4fcce8fd7000879766e
😎 Deploy Preview https://deploy-preview-1468--constellation-docs.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 settings.

@derpsteb derpsteb mentioned this pull request Mar 20, 2023
2 tasks
This fixes a bug where `upgrade apply` fails if only the image is
upgraded, due to mishandling of an empty configmap.
Making stubStableClient more complex is needed since it is called
with multiple configMaps now.
@derpsteb derpsteb marked this pull request as ready for review March 21, 2023 08:38
@derpsteb derpsteb changed the title cli: fix image-only upgrades cli: fix upgrade apply for image-only upgrades Mar 21, 2023
cli/internal/cloudcmd/upgrade.go Outdated Show resolved Hide resolved
cli/internal/cloudcmd/upgrade.go Outdated Show resolved Hide resolved
cli/internal/cloudcmd/upgrade.go Outdated Show resolved Hide resolved
* reorder switch; use default over err != nil
* separate, more descriptive error messages
* remove extra components == nil check
Copy link
Member

@3u13r 3u13r left a comment

Choose a reason for hiding this comment

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

LGTM

@derpsteb derpsteb merged commit 9f6e924 into main Mar 22, 2023
@derpsteb derpsteb deleted the fix/upgrade-image-only branch March 22, 2023 10:53
derpsteb added a commit that referenced this pull request Mar 24, 2023
This fixes a bug where `upgrade apply` fails if only the image is
upgraded, due to mishandling of an empty configmap.
Making stubStableClient more complex is needed since it is called
with multiple configMaps now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fixing a bug needs backport This PR needs to be backported to a previous release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants