aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2022-07-26 02:10:25 +0200
committergjoranv <gv@verizonmedia.com>2022-07-26 02:10:25 +0200
commitff6b4df9c323318ef884983b45ebdc0470d77b77 (patch)
tree0b83e5ac3a2e27e27bd985d6d58e0b0ed2043973 /config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
parent7e8932d56d38c80ee98f0957e19419e8b3a22d63 (diff)
Implement mechanism for avoiding unnecesssary bundles.
+ Avoid installing security bundles for clustercontroller and metrics-proxy.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java b/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
index d7a4af7145b..a93fe6967b4 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
@@ -33,18 +33,28 @@ public class PlatformBundles {
public static final String SEARCH_AND_DOCPROC_BUNDLE = BundleInstantiationSpecification.CONTAINER_SEARCH_AND_DOCPROC;
// Bundles that must be loaded for all container types.
- public static final Set<Path> COMMON_VESPA_BUNDLES = Stream.of(
+ public static final Set<Path> COMMON_VESPA_BUNDLES = toBundlePaths(
"container-spifly.jar", // Aries SPIFly repackaged
"zkfacade",
"zookeeper-server" // TODO: not necessary in metrics-proxy.
- ).map(PlatformBundles::absoluteBundlePath).collect(Collectors.toSet());
+ );
+
+ public static final Set<Path> VESPA_SECURITY_BUNDLES = toBundlePaths(
+ "jdisc-security-filters",
+ "vespa-athenz");
- public static final Set<Path> SEARCH_AND_DOCPROC_BUNDLES = Stream.of(
+ public static final Set<Path> SEARCH_AND_DOCPROC_BUNDLES = toBundlePaths(
SEARCH_AND_DOCPROC_BUNDLE,
"container-search-gui",
"docprocs",
"linguistics-components"
- ).map(PlatformBundles::absoluteBundlePath).collect(Collectors.toSet());
+ );
+
+ private static Set<Path> toBundlePaths(String... bundleNames) {
+ return Stream.of(bundleNames)
+ .map(PlatformBundles::absoluteBundlePath)
+ .collect(Collectors.toSet());
+ }
public static Path absoluteBundlePath(String fileName) {
return absoluteBundlePath(fileName, JarSuffix.JAR_WITH_DEPS);