Skip to content

Commit f8527d2

Browse files
JaerynJaeryn
authored andcommitted
Adding NetworkContainerOrchestratorInfo field to CreateNetworkContainerRequest.
1 parent 58ad07b commit f8527d2

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

cns/api.go

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,23 @@ type errorResponse struct {
113113

114114
// CreateNetworkContainerRequest specifies request to create a network container or network isolation boundary.
115115
type CreateNetworkContainerRequest struct {
116-
Version string
117-
NetworkContainerType string
118-
NetworkContainerid string // Mandatory input.
119-
PrimaryInterfaceIdentifier string // Primary CA.
120-
AuthorizationToken string
121-
IPConfiguration IPConfiguration
122-
MultiTenancyInfo MultiTenancyInfo
123-
VnetAddressSpace []IPSubnet // To setup SNAT (should include service endpoint vips).
124-
Routes []Route
116+
Version string
117+
NetworkContainerType string
118+
NetworkContainerid string // Mandatory input.
119+
PrimaryInterfaceIdentifier string // Primary CA.
120+
AuthorizationToken string
121+
NetworkContainerOrchestratorInfo NetworkContainerOrchestratorInfo
122+
IPConfiguration IPConfiguration
123+
MultiTenancyInfo MultiTenancyInfo
124+
VnetAddressSpace []IPSubnet // To setup SNAT (should include service endpoint vips).
125+
Routes []Route
126+
}
127+
128+
// NetworkContainerOrchestratorInfo contains orchestrator type, pod name and pod namespace.
129+
type NetworkContainerOrchestratorInfo struct {
130+
OrchestratorType string
131+
Podname string
132+
PodNamespace string
125133
}
126134

127135
// MultiTenancyInfo contains encap type and id.

0 commit comments

Comments
 (0)