aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/main/java/com
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2024-06-11 14:58:26 +0200
committerGitHub <noreply@github.com>2024-06-11 14:58:26 +0200
commitcd5b0f13a07447938dd41993a57e5b3c968491a2 (patch)
treedc2e0f6df606d15cefdd34cbd279d5f0d6646fb7 /configserver/src/main/java/com
parent48130eb4be7fd8dd007250aab60664926159cf90 (diff)
parent24628d27be3ef855e2ece1fa19da76e3b81562e1 (diff)
Merge pull request #31530 from vespa-engine/jonmv/public-athenz-services
Jonmv/public athenz services
Diffstat (limited to 'configserver/src/main/java/com')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java
index 607bb0dfb33..4b86d8834b9 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java
@@ -214,6 +214,7 @@ public class ModelContextImpl implements ModelContext {
private final Architecture adminClusterArchitecture;
private final boolean symmetricPutAndActivateReplicaSelection;
private final boolean enforceStrictlyIncreasingClusterStateVersions;
+ private final boolean launchApplicationAthenzService;
public FeatureFlags(FlagSource source, ApplicationId appId, Version version) {
this.defaultTermwiseLimit = Flags.DEFAULT_TERM_WISE_LIMIT.bindTo(source).with(appId).with(version).value();
@@ -261,6 +262,7 @@ public class ModelContextImpl implements ModelContext {
this.adminClusterArchitecture = Architecture.valueOf(PermanentFlags.ADMIN_CLUSTER_NODE_ARCHITECTURE.bindTo(source).with(appId).with(version).value());
this.symmetricPutAndActivateReplicaSelection = Flags.SYMMETRIC_PUT_AND_ACTIVATE_REPLICA_SELECTION.bindTo(source).with(appId).with(version).value();
this.enforceStrictlyIncreasingClusterStateVersions = Flags.ENFORCE_STRICTLY_INCREASING_CLUSTER_STATE_VERSIONS.bindTo(source).with(appId).with(version).value();
+ this.launchApplicationAthenzService = Flags.LAUNCH_APPLICATION_ATHENZ_SERVICE.bindTo(source).with(appId).with(version).value();
}
@Override public int heapSizePercentage() { return heapPercentage; }
@@ -346,6 +348,7 @@ public class ModelContextImpl implements ModelContext {
private final boolean allowUserFilters;
private final Duration endpointConnectionTtl;
private final List<String> requestPrefixForLoggingContent;
+ private final boolean launchApplicationAthenzService;
public Properties(ApplicationId applicationId,
Version modelVersion,
@@ -393,6 +396,7 @@ public class ModelContextImpl implements ModelContext {
this.endpointConnectionTtl = Duration.ofSeconds(PermanentFlags.ENDPOINT_CONNECTION_TTL.bindTo(flagSource).with(applicationId).value());
this.dataplaneTokens = dataplaneTokens;
this.requestPrefixForLoggingContent = PermanentFlags.LOG_REQUEST_CONTENT.bindTo(flagSource).with(applicationId).value();
+ this.launchApplicationAthenzService = Flags.LAUNCH_APPLICATION_ATHENZ_SERVICE.bindTo(flagSource).with(applicationId).value();
}
@Override public ModelContext.FeatureFlags featureFlags() { return featureFlags; }
@@ -492,5 +496,8 @@ public class ModelContextImpl implements ModelContext {
@Override public Duration endpointConnectionTtl() { return endpointConnectionTtl; }
@Override public List<String> requestPrefixForLoggingContent() { return requestPrefixForLoggingContent; }
+
+ @Override public boolean launchApplicationAthenzService() { return launchApplicationAthenzService; }
}
+
}