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

Update warning message #1331

Merged
merged 3 commits into from
Aug 1, 2023
Merged
Changes from all 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
4 changes: 2 additions & 2 deletions cloud/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,8 @@ func Update(deploymentID, label, ws, description, deploymentName, dagDeploy, exe

if deploymentUpdate.APIKeyOnlyDeployments && dagDeploy != "" {
if !canCiCdDeploy(c.Token) {
fmt.Printf("\nWarning: You are trying to update dag deploy setting on a deployment with ci-cd enforcement enabled. You will not be able to deploy your dags using the CLI and that dags will not be visible in the UI and new tasks will not start." +
"\nEither disable ci-cd enforcement or please cancel this operation and use API Tokens or API Keys instead.")
fmt.Printf("\nWarning: You are trying to update the dag deploy setting with ci-cd enforcement enabled. Once the setting is updated, you will not be able to deploy your dags using the CLI. Until you deploy your dags, dags will not be visible in the UI nor will new tasks start." +
"\nAfter the setting is updated, either disable cicd enforcement and then deploy your dags OR deploy your dags via CICD or using API Keys/Token.")
y, _ := input.Confirm("\n\nAre you sure you want to continue?")

if !y {
Expand Down