@@ -22,14 +22,14 @@ spec:
22
22
- jsonPath : .status.conditions[?(@.type=="Ready")].status
23
23
name : Ready
24
24
type : string
25
- - jsonPath : .spec.providerName
25
+ - jsonPath : .spec.provider
26
26
name : Provider
27
27
type : string
28
- - jsonPath : .spec.containerId
29
- name : Container ID
28
+ - jsonPath : .status.id
29
+ name : Id
30
30
type : string
31
- - jsonPath : .spec.projectIDRef.id
32
- name : Project ID
31
+ - jsonPath : .status.status
32
+ name : Status
33
33
type : string
34
34
name : v1
35
35
schema :
@@ -57,17 +57,13 @@ spec:
57
57
spec :
58
58
description : AtlasNetworkPeeringSpec defines the desired state of AtlasNetworkPeering
59
59
properties :
60
- atlasCidrBlock :
61
- description : Atlas CIDR. It needs to be set if ContainerID is not
62
- set.
63
- type : string
64
60
awsConfiguration :
65
61
description : AWSConfiguration is the specific AWS settings for network
66
62
peering
67
63
properties :
68
64
accepterRegionName :
69
65
description : AccepterRegionName is the provider region name of
70
- user's vpc.
66
+ user's vpc in AWS native region format
71
67
type : string
72
68
awsAccountId :
73
69
description : AccountID of the user's vpc.
@@ -114,15 +110,21 @@ spec:
114
110
required :
115
111
- name
116
112
type : object
117
- containerId :
118
- description : ID of the network peer container. If not set, operator
119
- will create a new container with ContainerRegion and AtlasCIDRBlock
120
- input.
121
- type : string
122
- containerRegion :
123
- description : ContainerRegion is the provider region name of Atlas
124
- network peer container.
125
- type : string
113
+ containerRef :
114
+ description : ContainerDualReference refers to an Network Container
115
+ either by Kubernetes name or Atlas ID
116
+ properties :
117
+ id :
118
+ description : |-
119
+ ID is the Atlas identifier of the Network Container Atlas resource this Peering Connection relies on
120
+ Use either name or ID, not both.
121
+ type : string
122
+ name :
123
+ description : |-
124
+ Name of the container Kubernetes resource, must be present in the same namespace
125
+ Use either name or ID, not both.
126
+ type : string
127
+ type : object
126
128
externalProjectRef :
127
129
description : |-
128
130
"externalProjectRef" holds the parent Atlas project ID.
@@ -168,6 +170,7 @@ spec:
168
170
- AZURE
169
171
type : string
170
172
required :
173
+ - containerRef
171
174
- provider
172
175
type : object
173
176
x-kubernetes-validations :
@@ -179,6 +182,10 @@ spec:
179
182
project
180
183
rule : (has(self.externalProjectRef) && has(self.connectionSecret)) ||
181
184
!has(self.externalProjectRef)
185
+ - message : must either have a container Atlas id or Kubernetes name, but
186
+ not both (or neither)
187
+ rule : (self.containerRef.name != '' && self.containerRef.id == '') ||
188
+ (self.containerRef.name == '' && self.containerRef.id != '')
182
189
status :
183
190
description : |-
184
191
AtlasNetworkPeeringStatus is a status for the AtlasNetworkPeering Custom resource.
@@ -190,20 +197,19 @@ spec:
190
197
connectionId :
191
198
description : ConnectionID is the AWS VPC peering connection ID
192
199
type : string
193
- containerVpcId :
194
- description : ContainerVPCId is the AWS Container VPC ID on the
195
- Atlas side
200
+ vpcId :
201
+ description : VpcID is AWS VPC id on the Atlas side
196
202
type : string
197
203
type : object
198
204
azureStatus :
199
205
description : AzureStatus contains Azure only related status information
200
206
properties :
201
- azureSubscriptionId :
202
- description : AzureSubscriptionID is the Azure subcription id on
203
- the Atlas container
207
+ azureSubscriptionIDpcId :
208
+ description : AzureSubscriptionID is Azure Subscription id on the
209
+ Atlas side
204
210
type : string
205
- vnetName :
206
- description : VnetName is the Azure network name on the Atlas container
211
+ vNetName :
212
+ description : VnetName is Azure network on the Atlas side
207
213
type : string
208
214
type : object
209
215
conditions :
@@ -236,32 +242,14 @@ spec:
236
242
- type
237
243
type : object
238
244
type : array
239
- containerId :
240
- description : ContainerID records the ID of the container created by
241
- atlas for this peering
242
- type : string
243
- containerProvisioned :
244
- description : ContainerProvisioned is true when the container has been
245
- provisioned in Atlas
246
- type : boolean
247
- containerStatus :
248
- description : ContainerStatus records the last container status seen
249
- for the network container
250
- type : string
251
- error :
252
- description : Error refers to the last error seen in the network peering
253
- setup
254
- type : string
255
- googleStatus :
256
- description : GoogleStatus contains Google only related status information
245
+ gcpStatus :
246
+ description : GCPStatus contains GCP only related status information
257
247
properties :
258
- gcpProjectId :
259
- description : GCPProjectID is the Google Cloud Platform project
260
- id on the Atlas container
248
+ gcpProjectID :
249
+ description : GCPProjectID is GCP project on the Atlas side
261
250
type : string
262
251
networkName :
263
- description : NetworkName is the Google network name on the Atlas
264
- container
252
+ description : NetworkName is GCP network on the Atlas side
265
253
type : string
266
254
type : object
267
255
id :
0 commit comments