diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-11-17 14:57:42 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-11-17 14:57:42 +0100 |
commit | 766e13e4b820f53acd4886d763e7fbb9cbc11601 (patch) | |
tree | bcf727873d19ecc2eab043e4005bf22d09039da6 /athenz-identity-provider-service/src | |
parent | 18ca0c8d0913bd4ac558c6e1fd6c40035b2aa9b5 (diff) |
Introduce node IP address pool
A host that is supposed to run containers has a non-empty IP pool: A set of
IPv4 and/or IPv6 addresses that can be assigned to containers.
This PR adds a list of hostnames to this pool. The intent is that the
hostnames and IPs match through resolving, but resolution may not yet be
available (until DNS changes propagate).
For now, only a list of hostnames are specified. We may want to specify
(hostname, IP address) pairs or (hostname, IPv4, IPv6) triplets later, and the
serialization format allows for that by storing the hsotnames in an array of
objects, the object having a "hostname" field.
However the REST API is kept simpler for now: it exposes and allows patching of
an array of strings of a "additionalHostnames" field.
Diffstat (limited to 'athenz-identity-provider-service/src')
-rw-r--r-- | athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java b/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java index edda5593e79..0a757b5b17b 100644 --- a/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java +++ b/athenz-identity-provider-service/src/test/java/com/yahoo/vespa/hosted/athenz/instanceproviderservice/identitydocument/IdentityDocumentGeneratorTest.java @@ -57,7 +57,7 @@ public class IdentityDocumentGeneratorTest { Generation.initial(), false); Node parentNode = Node.create("ostkid", - new IP.Config(Set.of("127.0.0.1"), Set.of()), + IP.Config.ofEmptyPool(Set.of("127.0.0.1")), parentHostname, new MockNodeFlavors().getFlavorOrThrow("default"), NodeType.host).build(); |