Skip to content

Commit

Permalink
improved condition
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Jul 25, 2024
1 parent 0f9f992 commit d26501c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func ValidateChanges(oldCfg, newCfg *Config) error {

// ValidateStoreAndDistroChanges checks whether migrating from one store to the other is allowed.
func ValidateStoreAndDistroChanges(currentStoreType, previousStoreType StoreType, currentDistro, previousDistro string) error {
if currentDistro != previousDistro && previousDistro != "eks" {
if currentDistro != previousDistro && !(previousDistro == "eks" && currentDistro == K8SDistro) {
return fmt.Errorf("seems like you were using %s as a distro before and now have switched to %s, please make sure to not switch between vCluster distros", previousDistro, currentDistro)
}

Expand Down

0 comments on commit d26501c

Please sign in to comment.