diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2021-01-26 12:24:01 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2021-01-26 12:24:01 +0100 |
commit | cbcf883e2a9812bb829d6c70aaaf3c0bf687103d (patch) | |
tree | 3289ac29e3e4e73b67690a25bdc07ed35c96c217 /flags/src | |
parent | ea435fb84f0a5413b6517a0ecaca01f2d8f9d4f2 (diff) |
Support restricting on host OS when allocating new nodes
Diffstat (limited to 'flags/src')
-rw-r--r-- | flags/src/main/java/com/yahoo/vespa/flags/Flags.java | 8 |
1 files changed, 8 insertions, 0 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 c75850ee95d..eb0bc4f9ede 100644 --- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java +++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java @@ -42,6 +42,14 @@ import static com.yahoo.vespa.flags.FetchVector.Dimension.ZONE_ID; public class Flags { private static volatile TreeMap<FlagId, FlagDefinition> flags = new TreeMap<>(); + public static final UnboundStringFlag ALLOCATE_OS_REQUIREMENT = defineStringFlag( + "allocate-os-requirement", "rhel7", + List.of("hakonhall"), "2021-01-26", "2021-07-26", + "Allocations of new nodes are limited to the given host OS. Must be one of 'rhel7', " + + "'rhel8', or 'any'", + "Takes effect on next (re)deployment.", + APPLICATION_ID); + public static final UnboundBooleanFlag RETIRE_WITH_PERMANENTLY_DOWN = defineFeatureFlag( "retire-with-permanently-down", true, List.of("hakonhall"), "2020-12-02", "2021-02-01", |