diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-10-06 14:57:17 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-10-09 11:11:22 +0200 |
commit | 9eb903f4d1d571be513a70c59e49d38d7a986220 (patch) | |
tree | 05a1d0206f9a76f9d466155b35d22e4ae6d019f8 /controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/EndpointConfig.java | |
parent | 1a776a01494f1a0291169962814361be3ffca714 (diff) |
Refactor certificate assignment and migration
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/EndpointConfig.java')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/EndpointConfig.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/EndpointConfig.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/EndpointConfig.java new file mode 100644 index 00000000000..555fd024e47 --- /dev/null +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/EndpointConfig.java @@ -0,0 +1,30 @@ +// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.vespa.hosted.controller.routing; + +/** + * Endpoint configurations supported for an application. + * + * @author mpolden + */ +public enum EndpointConfig { + + /** Only legacy endpoints will be published in DNS. Certificate will contain both legacy and generated names, and is never assigned from a pool */ + legacy, + + /** Legacy and generated endpoints will be published in DNS. Certificate will contain both legacy and generated names, and is never assigned from a pool */ + combined, + + /** Only generated endpoints will be published in DNS. Certificate will contain generated names only. Certificate is assigned from a pool */ + generated; + + /** Returns whether this config supports legacy endpoints */ + public boolean supportsLegacy() { + return this == legacy || this == combined; + } + + /** Returns whether this config supports generated endpoints */ + public boolean supportsGenerated() { + return this == combined || this == generated; + } + +} |