summaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorValerij Fredriksen <freva@users.noreply.github.com>2022-10-28 15:06:33 +0200
committerGitHub <noreply@github.com>2022-10-28 15:06:33 +0200
commit44595d372748d960535e72ab5086fc1412db867c (patch)
treebbca6b459aece588b8e04f364edbb9e5f0c0f0dc /flags
parent8bd3f408ffdf1dff8bcbef381bd96285b58ed9ae (diff)
parent6e8c3cf510c1690009f80f7a5efb26097884e9fd (diff)
Merge pull request #24621 from vespa-engine/jonmv/flag-to-stop-deployment-jobs
Allow turning off jobs in a zone, optionally per application
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java b/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
index f68f6816ec8..4ea67ccdc73 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
@@ -296,6 +296,13 @@ public class PermanentFlags {
"Takes effect at redeployment",
ZONE_ID, APPLICATION_ID);
+ public static final UnboundListFlag<String> DISABLED_DEPLOYMENT_ZONES = defineListFlag(
+ "disabled-deployment-zones", List.of(), String.class,
+ "The zones, e.g., prod.norway-71, where deployments jobs are currently disabled",
+ "Takes effect immediately",
+ APPLICATION_ID
+ );
+
private PermanentFlags() {}
private static UnboundBooleanFlag defineFeatureFlag(