diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-09-29 13:58:54 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-09-29 14:02:22 +0200 |
commit | 75d04deb315883c308e3a2b42cf41513e1f4ace3 (patch) | |
tree | 00b9546635435610d225b338f89cf2643a430251 /flags | |
parent | baec2cce6cd62f6bd42f09c2ebe4a9dcdd921cb3 (diff) |
Add flag for controlling presence of legacy endpoints
Diffstat (limited to 'flags')
-rw-r--r-- | flags/src/main/java/com/yahoo/vespa/flags/Flags.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java index cb87e99d3fe..a5b38eac909 100644 --- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java +++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java @@ -13,6 +13,7 @@ import java.util.Optional; import java.util.TreeMap; import java.util.function.Predicate; +import static com.yahoo.vespa.flags.FetchVector.Dimension.APPLICATION_ID; import static com.yahoo.vespa.flags.FetchVector.Dimension.INSTANCE_ID; import static com.yahoo.vespa.flags.FetchVector.Dimension.CLOUD_ACCOUNT; import static com.yahoo.vespa.flags.FetchVector.Dimension.CLUSTER_ID; @@ -312,7 +313,7 @@ public class Flags { "randomized-endpoint-names", false, List.of("andreer"), "2023-04-26", "2023-10-14", "Whether to use randomized endpoint names", "Takes effect on application deployment", - INSTANCE_ID); + INSTANCE_ID, APPLICATION_ID, TENANT_ID); public static final UnboundBooleanFlag ENABLE_THE_ONE_THAT_SHOULD_NOT_BE_NAMED = defineFeatureFlag( "enable-the-one-that-should-not-be-named", false, List.of("hmusum"), "2023-05-08", "2023-11-01", @@ -415,6 +416,12 @@ public class Flags { "Takes effect at redeployment", INSTANCE_ID); + public static final UnboundBooleanFlag LEGACY_ENDPOINTS = defineFeatureFlag( + "legacy-endpoints", true, List.of("mpolden", "tokle"), "2023-09-29", "2024-03-01", + "Whether legacy (non-anonymized) endpoints should be created in DNS", + "Takes effect on redeployment through controller", + INSTANCE_ID, APPLICATION_ID, TENANT_ID); + /** WARNING: public for testing: All flags should be defined in {@link Flags}. */ public static UnboundBooleanFlag defineFeatureFlag(String flagId, boolean defaultValue, List<String> owners, String createdAt, String expiresAt, String description, |