summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-09-04 09:37:21 +0200
committerMartin Polden <mpolden@mpolden.no>2023-09-04 09:37:21 +0200
commiteb6634e9dff3d36f044d394520d7b7c609f9cc9f (patch)
tree27db983c933a88bbf5ba87c52254f05c904555e8 /controller-api
parentaeb7e91192af2fd1e6479560b5dde65e3c038fd3 (diff)
Separate container endpoint per auth method
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ContainerEndpoint.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ContainerEndpoint.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ContainerEndpoint.java
index 4746fa2da26..a0d4fd03117 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ContainerEndpoint.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ContainerEndpoint.java
@@ -5,7 +5,6 @@ import com.yahoo.config.provision.zone.AuthMethod;
import com.yahoo.config.provision.zone.RoutingMethod;
import java.util.List;
-import java.util.Map;
import java.util.Objects;
import java.util.OptionalInt;
@@ -19,21 +18,21 @@ import java.util.OptionalInt;
* used for routing, such as a Host header value that is not necessarily a proper DNS name
* @param weight The relative weight of this endpoint
* @param routingMethod The routing method used by this endpoint
- * @param authMethods Supported authentication methods for each endpoint name
+ * @param authMethod The authentication method supported by this endpoint
*
* @author mpolden
*/
public record ContainerEndpoint(String clusterId, String scope, List<String> names, OptionalInt weight,
- RoutingMethod routingMethod, Map<String, AuthMethod> authMethods) {
+ RoutingMethod routingMethod, AuthMethod authMethod) {
public ContainerEndpoint(String clusterId, String scope, List<String> names, OptionalInt weight,
- RoutingMethod routingMethod, Map<String, AuthMethod> authMethods) {
+ RoutingMethod routingMethod, AuthMethod authMethod) {
this.clusterId = nonEmpty(clusterId, "clusterId must be non-empty");
this.scope = Objects.requireNonNull(scope, "scope must be non-null");
this.names = List.copyOf(Objects.requireNonNull(names, "names must be non-null"));
this.weight = Objects.requireNonNull(weight, "weight must be non-null");
this.routingMethod = Objects.requireNonNull(routingMethod, "routingMethod must be non-null");
- this.authMethods = Objects.requireNonNull(Map.copyOf(authMethods), "authMethods must be non-null");
+ this.authMethod = Objects.requireNonNull(authMethod, "authMethod must be non-null");
}
private static String nonEmpty(String s, String message) {