Skip to content

Commit a9899a0

Browse files
committed
Add crd.nsx.vmware.com apiVersion for vpc controllers
Signed-off-by: Xie Zheng <xizheng@vmware.com>
1 parent 2c46396 commit a9899a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5144
-189
lines changed
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.14.0
7+
name: nsxserviceaccounts.nsx.vmware.com
8+
spec:
9+
group: nsx.vmware.com
10+
names:
11+
kind: NSXServiceAccount
12+
listKind: NSXServiceAccountList
13+
plural: nsxserviceaccounts
14+
singular: nsxserviceaccount
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: NSXServiceAccount is the Schema for the nsxserviceaccounts API
21+
properties:
22+
apiVersion:
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28+
type: string
29+
kind:
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36+
type: string
37+
metadata:
38+
type: object
39+
spec:
40+
description: NSXServiceAccountSpec defines the desired state of NSXServiceAccount
41+
properties:
42+
enableCertRotation:
43+
description: EnableCertRotation enables cert rotation feature in this
44+
cluster when NSXT >=4.1.3
45+
type: boolean
46+
vpcName:
47+
type: string
48+
type: object
49+
status:
50+
description: NSXServiceAccountStatus defines the observed state of NSXServiceAccount
51+
properties:
52+
clusterID:
53+
type: string
54+
clusterName:
55+
type: string
56+
conditions:
57+
description: |-
58+
Represents the realization status of a NSXServiceAccount's current state.
59+
Known .status.conditions.type is: "Realized"
60+
items:
61+
description: "Condition contains details for one aspect of the current
62+
state of this API Resource.\n---\nThis struct is intended for
63+
direct use as an array at the field path .status.conditions. For
64+
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
65+
observations of a foo's current state.\n\t // Known .status.conditions.type
66+
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
67+
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
68+
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
69+
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
70+
\ // other fields\n\t}"
71+
properties:
72+
lastTransitionTime:
73+
description: |-
74+
lastTransitionTime is the last time the condition transitioned from one status to another.
75+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
76+
format: date-time
77+
type: string
78+
message:
79+
description: |-
80+
message is a human readable message indicating details about the transition.
81+
This may be an empty string.
82+
maxLength: 32768
83+
type: string
84+
observedGeneration:
85+
description: |-
86+
observedGeneration represents the .metadata.generation that the condition was set based upon.
87+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
88+
with respect to the current state of the instance.
89+
format: int64
90+
minimum: 0
91+
type: integer
92+
reason:
93+
description: |-
94+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
95+
Producers of specific condition types may define expected values and meanings for this field,
96+
and whether the values are considered a guaranteed API.
97+
The value should be a CamelCase string.
98+
This field may not be empty.
99+
maxLength: 1024
100+
minLength: 1
101+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
102+
type: string
103+
status:
104+
description: status of the condition, one of True, False, Unknown.
105+
enum:
106+
- "True"
107+
- "False"
108+
- Unknown
109+
type: string
110+
type:
111+
description: |-
112+
type of condition in CamelCase or in foo.example.com/CamelCase.
113+
---
114+
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
115+
useful (see .node.status.conditions), the ability to deconflict is important.
116+
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
117+
maxLength: 316
118+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
119+
type: string
120+
required:
121+
- lastTransitionTime
122+
- message
123+
- reason
124+
- status
125+
- type
126+
type: object
127+
type: array
128+
nsxManagers:
129+
items:
130+
type: string
131+
type: array
132+
phase:
133+
type: string
134+
proxyEndpoints:
135+
properties:
136+
addresses:
137+
items:
138+
properties:
139+
hostname:
140+
type: string
141+
ip:
142+
format: ip
143+
type: string
144+
type: object
145+
type: array
146+
ports:
147+
items:
148+
properties:
149+
name:
150+
type: string
151+
port:
152+
type: integer
153+
protocol:
154+
type: string
155+
type: object
156+
type: array
157+
type: object
158+
reason:
159+
type: string
160+
secrets:
161+
items:
162+
properties:
163+
name:
164+
type: string
165+
namespace:
166+
type: string
167+
required:
168+
- name
169+
- namespace
170+
type: object
171+
type: array
172+
vpcPath:
173+
type: string
174+
type: object
175+
type: object
176+
served: true
177+
storage: true
178+
subresources:
179+
status: {}

0 commit comments

Comments
 (0)