From c6737db456b15c28d8e944acd19021498983c7fe Mon Sep 17 00:00:00 2001 From: Kushal Malani Date: Tue, 1 Aug 2023 09:02:57 -0700 Subject: [PATCH 1/3] Update warning message --- cloud/deployment/deployment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/deployment/deployment.go b/cloud/deployment/deployment.go index 283a46d65..82a0d395b 100644 --- a/cloud/deployment/deployment.go +++ b/cloud/deployment/deployment.go @@ -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." + + "\nOnce the setting is disabled, 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 { From 323291da9cc2bb8794b5ed05022fcacf274fd7f6 Mon Sep 17 00:00:00 2001 From: Kushal Malani Date: Tue, 1 Aug 2023 09:05:26 -0700 Subject: [PATCH 2/3] Update warning message --- cloud/deployment/deployment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/deployment/deployment.go b/cloud/deployment/deployment.go index 82a0d395b..2df3f376d 100644 --- a/cloud/deployment/deployment.go +++ b/cloud/deployment/deployment.go @@ -677,7 +677,7 @@ 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 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." + - "\nOnce the setting is disabled, either disable cicd enforcement and then deploy your dags OR deploy your dags via CICD or using API Keys/Token.") + "\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 { From 09e1fc5917b6436ff4af35cc74e6a96b41a370a2 Mon Sep 17 00:00:00 2001 From: Kushal Malani Date: Tue, 1 Aug 2023 09:07:23 -0700 Subject: [PATCH 3/3] Empty commit