aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_config.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-04 16:53:49 +0100
committerGitHub <noreply@github.com>2020-11-04 16:53:49 +0100
commit4fb7378ee4ca2af5d521f7f75b691d4fe00b089b (patch)
tree6570b9710ca377ed764e3074dc369ef55bc159d8 /libpod/container_config.go
parent303191bf522db9af32cabd98a5309e3079da0eb0 (diff)
parent844d540d042fe7477e62f8cf28e524fcd756f6c8 (diff)
downloadpodman-4fb7378ee4ca2af5d521f7f75b691d4fe00b089b.tar.gz
podman-4fb7378ee4ca2af5d521f7f75b691d4fe00b089b.tar.bz2
podman-4fb7378ee4ca2af5d521f7f75b691d4fe00b089b.zip
Merge pull request #8156 from mheon/add_net_aliases_db
Add network aliases for containers to DB
Diffstat (limited to 'libpod/container_config.go')
-rw-r--r--libpod/container_config.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpod/container_config.go b/libpod/container_config.go
index 0006613bc..d73fbb42f 100644
--- a/libpod/container_config.go
+++ b/libpod/container_config.go
@@ -241,6 +241,15 @@ type ContainerNetworkConfig struct {
NetMode namespaces.NetworkMode `json:"networkMode,omitempty"`
// NetworkOptions are additional options for each network
NetworkOptions map[string][]string `json:"network_options,omitempty"`
+ // NetworkAliases are aliases that will be added to each network.
+ // These are additional names that this container can be accessed as via
+ // DNS when the CNI dnsname plugin is in use.
+ // Please note that these can be altered at runtime. As such, the actual
+ // list is stored in the database and should be retrieved from there;
+ // this is only the set of aliases the container was *created with*.
+ // Formatted as map of network name to aliases. All network names must
+ // be present in the Networks list above.
+ NetworkAliases map[string][]string `json:"network_alises,omitempty"`
}
// ContainerImageConfig is an embedded sub-config providing image configuration