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

feat(vclusterctl): Prevent distro/backingstore switch #1694

Conversation

ThomasK33
Copy link
Member

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix
/kind enhancement
/kind feature
/kind documentation
/kind test

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves #

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster ...

What else do we need to know?

Copy link

netlify bot commented Apr 16, 2024

Deploy Preview for vcluster-docs canceled.

Name Link
🔨 Latest commit 6759581
🔍 Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/661e7b6f1cd5c10008a9d768

@ThomasK33 ThomasK33 marked this pull request as draft April 16, 2024 10:32
@ThomasK33 ThomasK33 force-pushed the thomaskosiewski/eng-3435-prevent-distrobackingstore-switch-also-in-vclusterctl branch from 507de68 to caaa445 Compare April 16, 2024 13:03
@ThomasK33 ThomasK33 marked this pull request as ready for review April 16, 2024 13:03
@ThomasK33 ThomasK33 force-pushed the thomaskosiewski/eng-3435-prevent-distrobackingstore-switch-also-in-vclusterctl branch from caaa445 to 6c8872b Compare April 16, 2024 13:19
@ThomasK33 ThomasK33 force-pushed the thomaskosiewski/eng-3435-prevent-distrobackingstore-switch-also-in-vclusterctl branch from 6c8872b to 6759581 Compare April 16, 2024 13:21
return err
}

if ok, err := setup.CheckUsingHelm(ctx, cmd.kubeClient, args[0], cmd.Namespace, cmd.Distro, cfg.BackingStoreType()); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Since people can configure the distro via values now as well, I think this can be problematic here. I would leave out the CLI check for now

// TODO(johannesfrey): We would also need to validate here if the user is about to perform changes which would lead to distro/store changes
// (johannesfrey): We would also need to validate here if the user is about to perform changes which would lead to distro/store changes
if isCurrentlyDeployed {
if ok, err := setup.CheckUsingHelm(ctx, cmd.kubeClient, args[0], cmd.Namespace, cfg.Distro(), cfg.BackingStoreType()); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Same as above, maybe we should wait with CLI check for now

@ThomasK33 ThomasK33 marked this pull request as draft April 16, 2024 13:32
@ThomasK33 ThomasK33 closed this May 21, 2024
@ThomasK33 ThomasK33 deleted the thomaskosiewski/eng-3435-prevent-distrobackingstore-switch-also-in-vclusterctl branch May 21, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants