Skip to content

Commit cfd7211

Browse files
committed
OpenStackCluster: improve doctext
1 parent b5ebeae commit cfd7211

File tree

4 files changed

+50
-34
lines changed

4 files changed

+50
-34
lines changed

api/v1beta1/openstackcluster_types.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ type OpenStackClusterSpec struct {
152152
// +optional
153153
DisablePortSecurity optional.Bool `json:"disablePortSecurity,omitempty"`
154154

155-
// Tags for all resources in cluster
155+
// Tags to set on all resources in cluster which support tags
156156
// +listType=set
157157
// +optional
158158
Tags []string `json:"tags,omitempty"`
@@ -161,7 +161,8 @@ type OpenStackClusterSpec struct {
161161
// +optional
162162
ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`
163163

164-
// ControlPlaneAvailabilityZones is the az to deploy control plane to
164+
// ControlPlaneAvailabilityZones is the set of availability zones which
165+
// control plane machines may be deployed to.
165166
// +listType=set
166167
// +optional
167168
ControlPlaneAvailabilityZones []string `json:"controlPlaneAvailabilityZones,omitempty"`
@@ -198,7 +199,7 @@ type OpenStackClusterStatus struct {
198199
// +optional
199200
Network *NetworkStatusWithSubnets `json:"network,omitempty"`
200201

201-
// externalNetwork contains information about the external network used for default ingress and egress traffic.
202+
// ExternalNetwork contains information about the external network used for default ingress and egress traffic.
202203
// +optional
203204
ExternalNetwork *NetworkStatus `json:"externalNetwork,omitempty"`
204205

@@ -213,20 +214,23 @@ type OpenStackClusterStatus struct {
213214
// FailureDomains represent OpenStack availability zones
214215
FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
215216

216-
// ControlPlaneSecurityGroups contains all the information about the OpenStack
217-
// Security Group that needs to be applied to control plane nodes.
218-
// TODO: Maybe instead of two properties, we add a property to the group?
217+
// ControlPlaneSecurityGroup contains the information about the
218+
// OpenStack Security Group that needs to be applied to control plane
219+
// nodes.
219220
// +optional
220221
ControlPlaneSecurityGroup *SecurityGroupStatus `json:"controlPlaneSecurityGroup,omitempty"`
221222

222-
// WorkerSecurityGroup contains all the information about the OpenStack Security
223-
// Group that needs to be applied to worker nodes.
223+
// WorkerSecurityGroup contains the information about the OpenStack
224+
// Security Group that needs to be applied to worker nodes.
224225
// +optional
225226
WorkerSecurityGroup *SecurityGroupStatus `json:"workerSecurityGroup,omitempty"`
226227

228+
// BastionSecurityGroup contains the information about the OpenStack
229+
// Security Group that needs to be applied to worker nodes.
227230
// +optional
228231
BastionSecurityGroup *SecurityGroupStatus `json:"bastionSecurityGroup,omitempty"`
229232

233+
// Bastion contains the information about the deployed bastion host
230234
// +optional
231235
Bastion *BastionStatus `json:"bastion,omitempty"`
232236

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5529,8 +5529,9 @@ spec:
55295529
type: object
55305530
type: object
55315531
controlPlaneAvailabilityZones:
5532-
description: ControlPlaneAvailabilityZones is the az to deploy control
5533-
plane to
5532+
description: |-
5533+
ControlPlaneAvailabilityZones is the set of availability zones which
5534+
control plane machines may be deployed to.
55345535
items:
55355536
type: string
55365537
type: array
@@ -6137,7 +6138,8 @@ spec:
61376138
type: array
61386139
x-kubernetes-list-type: atomic
61396140
tags:
6140-
description: Tags for all resources in cluster
6141+
description: Tags to set on all resources in cluster which support
6142+
tags
61416143
items:
61426144
type: string
61436145
type: array
@@ -6175,6 +6177,8 @@ spec:
61756177
- name
61766178
type: object
61776179
bastion:
6180+
description: Bastion contains the information about the deployed bastion
6181+
host
61786182
properties:
61796183
dependentResources:
61806184
properties:
@@ -6588,8 +6592,8 @@ spec:
65886592
type: object
65896593
bastionSecurityGroup:
65906594
description: |-
6591-
SecurityGroupStatus represents the basic information of the associated
6592-
OpenStack Neutron Security Group.
6595+
BastionSecurityGroup contains the information about the OpenStack
6596+
Security Group that needs to be applied to worker nodes.
65936597
properties:
65946598
id:
65956599
description: id of the security group
@@ -6655,9 +6659,9 @@ spec:
66556659
type: object
66566660
controlPlaneSecurityGroup:
66576661
description: |-
6658-
ControlPlaneSecurityGroups contains all the information about the OpenStack
6659-
Security Group that needs to be applied to control plane nodes.
6660-
TODO: Maybe instead of two properties, we add a property to the group?
6662+
ControlPlaneSecurityGroup contains the information about the
6663+
OpenStack Security Group that needs to be applied to control plane
6664+
nodes.
66616665
properties:
66626666
id:
66636667
description: id of the security group
@@ -6722,7 +6726,7 @@ spec:
67226726
- name
67236727
type: object
67246728
externalNetwork:
6725-
description: externalNetwork contains information about the external
6729+
description: ExternalNetwork contains information about the external
67266730
network used for default ingress and egress traffic.
67276731
properties:
67286732
id:
@@ -6863,8 +6867,8 @@ spec:
68636867
type: object
68646868
workerSecurityGroup:
68656869
description: |-
6866-
WorkerSecurityGroup contains all the information about the OpenStack Security
6867-
Group that needs to be applied to worker nodes.
6870+
WorkerSecurityGroup contains the information about the OpenStack
6871+
Security Group that needs to be applied to worker nodes.
68686872
properties:
68696873
id:
68706874
description: id of the security group

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,8 +2961,9 @@ spec:
29612961
type: object
29622962
type: object
29632963
controlPlaneAvailabilityZones:
2964-
description: ControlPlaneAvailabilityZones is the az to deploy
2965-
control plane to
2964+
description: |-
2965+
ControlPlaneAvailabilityZones is the set of availability zones which
2966+
control plane machines may be deployed to.
29662967
items:
29672968
type: string
29682969
type: array
@@ -3571,7 +3572,8 @@ spec:
35713572
type: array
35723573
x-kubernetes-list-type: atomic
35733574
tags:
3574-
description: Tags for all resources in cluster
3575+
description: Tags to set on all resources in cluster which
3576+
support tags
35753577
items:
35763578
type: string
35773579
type: array

docs/book/src/api/v1beta1/api.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ Kubernetes cluster, which also disables SecurityGroups</p>
324324
</td>
325325
<td>
326326
<em>(Optional)</em>
327-
<p>Tags for all resources in cluster</p>
327+
<p>Tags to set on all resources in cluster which support tags</p>
328328
</td>
329329
</tr>
330330
<tr>
@@ -350,7 +350,8 @@ sigs.k8s.io/cluster-api/api/v1beta1.APIEndpoint
350350
</td>
351351
<td>
352352
<em>(Optional)</em>
353-
<p>ControlPlaneAvailabilityZones is the az to deploy control plane to</p>
353+
<p>ControlPlaneAvailabilityZones is the set of availability zones which
354+
control plane machines may be deployed to.</p>
354355
</td>
355356
</tr>
356357
<tr>
@@ -2218,7 +2219,7 @@ Kubernetes cluster, which also disables SecurityGroups</p>
22182219
</td>
22192220
<td>
22202221
<em>(Optional)</em>
2221-
<p>Tags for all resources in cluster</p>
2222+
<p>Tags to set on all resources in cluster which support tags</p>
22222223
</td>
22232224
</tr>
22242225
<tr>
@@ -2244,7 +2245,8 @@ sigs.k8s.io/cluster-api/api/v1beta1.APIEndpoint
22442245
</td>
22452246
<td>
22462247
<em>(Optional)</em>
2247-
<p>ControlPlaneAvailabilityZones is the az to deploy control plane to</p>
2248+
<p>ControlPlaneAvailabilityZones is the set of availability zones which
2249+
control plane machines may be deployed to.</p>
22482250
</td>
22492251
</tr>
22502252
<tr>
@@ -2349,7 +2351,7 @@ NetworkStatus
23492351
</td>
23502352
<td>
23512353
<em>(Optional)</em>
2352-
<p>externalNetwork contains information about the external network used for default ingress and egress traffic.</p>
2354+
<p>ExternalNetwork contains information about the external network used for default ingress and egress traffic.</p>
23532355
</td>
23542356
</tr>
23552357
<tr>
@@ -2404,9 +2406,9 @@ SecurityGroupStatus
24042406
</td>
24052407
<td>
24062408
<em>(Optional)</em>
2407-
<p>ControlPlaneSecurityGroups contains all the information about the OpenStack
2408-
Security Group that needs to be applied to control plane nodes.
2409-
TODO: Maybe instead of two properties, we add a property to the group?</p>
2409+
<p>ControlPlaneSecurityGroup contains the information about the
2410+
OpenStack Security Group that needs to be applied to control plane
2411+
nodes.</p>
24102412
</td>
24112413
</tr>
24122414
<tr>
@@ -2420,8 +2422,8 @@ SecurityGroupStatus
24202422
</td>
24212423
<td>
24222424
<em>(Optional)</em>
2423-
<p>WorkerSecurityGroup contains all the information about the OpenStack Security
2424-
Group that needs to be applied to worker nodes.</p>
2425+
<p>WorkerSecurityGroup contains the information about the OpenStack
2426+
Security Group that needs to be applied to worker nodes.</p>
24252427
</td>
24262428
</tr>
24272429
<tr>
@@ -2435,6 +2437,8 @@ SecurityGroupStatus
24352437
</td>
24362438
<td>
24372439
<em>(Optional)</em>
2440+
<p>BastionSecurityGroup contains the information about the OpenStack
2441+
Security Group that needs to be applied to worker nodes.</p>
24382442
</td>
24392443
</tr>
24402444
<tr>
@@ -2448,6 +2452,7 @@ BastionStatus
24482452
</td>
24492453
<td>
24502454
<em>(Optional)</em>
2455+
<p>Bastion contains the information about the deployed bastion host</p>
24512456
</td>
24522457
</tr>
24532458
<tr>
@@ -2791,7 +2796,7 @@ Kubernetes cluster, which also disables SecurityGroups</p>
27912796
</td>
27922797
<td>
27932798
<em>(Optional)</em>
2794-
<p>Tags for all resources in cluster</p>
2799+
<p>Tags to set on all resources in cluster which support tags</p>
27952800
</td>
27962801
</tr>
27972802
<tr>
@@ -2817,7 +2822,8 @@ sigs.k8s.io/cluster-api/api/v1beta1.APIEndpoint
28172822
</td>
28182823
<td>
28192824
<em>(Optional)</em>
2820-
<p>ControlPlaneAvailabilityZones is the az to deploy control plane to</p>
2825+
<p>ControlPlaneAvailabilityZones is the set of availability zones which
2826+
control plane machines may be deployed to.</p>
28212827
</td>
28222828
</tr>
28232829
<tr>

0 commit comments

Comments
 (0)