Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesfrey committed May 7, 2024
1 parent 11dffdc commit ade5bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/create_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func CreateHelm(ctx context.Context, options *CreateOptions, globalFlags *flags.
// Early abort if a user runs a virtual cluster < v0.20 without providing any values files during an upgrade.
// We do this because we don't want to "automagically" convert the old config implicitly, without the user
// realizing that the virtual cluster is running with the old config format.
if isVClusterDeployed(release) && isLegacyVCluster(release.Chart.Metadata.Version) && len(cmd.Values) <= 0 {
if isVClusterDeployed(release) && isLegacyVCluster(release.Chart.Metadata.Version) && len(cmd.Values) == 0 {
// If we have a < v0.20 virtual cluster running we have to infer the distro from the current chart name.
currentDistro := strings.TrimPrefix(release.Chart.Metadata.Name, "vcluster-")
// If we are upgrading a vCluster < v0.20 the old k3s chart is the one without a prefix.
Expand Down

0 comments on commit ade5bbd

Please sign in to comment.