Skip to content

Commit

Permalink
fix: cannot use --distro issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKramm committed Sep 28, 2023
1 parent 3512845 commit 65f7c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vclusterctl/cmd/app/create/pro.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func validateTemplateOptions(options *Options) error {
if options.KubernetesVersion != "" {
return fmt.Errorf("cannot use --kubernetes-version because the vcluster is using a template")
}
if options.Distro != "" {
if options.Distro != "" && options.Distro != "k3s" {
return fmt.Errorf("cannot use --distro because the vcluster is using a template")
}
if options.ChartName != "vcluster" {
Expand Down

0 comments on commit 65f7c43

Please sign in to comment.