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

Create fix #1380

Merged
merged 3 commits into from
Sep 6, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cmd/cloud/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ var (
executor string
inputFile string
cloudProvider string
clusterType string
region string
schedulerSize string
highAvailability string
deploymentCreateEnforceCD bool
deploymentUpdateEnforceCD bool
clusterType = standard
deploymentVariableListExample = `
# List a deployment's variables
$ astro deployment variable list --deployment-id <deployment-id> --key FOO
Expand Down Expand Up @@ -347,7 +347,6 @@ func deploymentCreate(cmd *cobra.Command, _ []string, out io.Writer) error { //n
if highAvailability != "" && !(highAvailability == enable || highAvailability == disable) {
return errors.New("Invalid --high-availability value")
}

if organization.IsOrgHosted() && !(clusterType == standard || clusterType == dedicated) {
return errors.New("Invalid --cluster-type value")
}
Expand Down