Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit f45cd8b

Browse files
adding generated files for ncp type
Signed-off-by: Chris Hein <[email protected]>
1 parent d013ccc commit f45cd8b

File tree

2 files changed

+246
-6
lines changed

2 files changed

+246
-6
lines changed

apis/controlplane/v1alpha4/zz_generated.deepcopy.go

+77-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/controlplane.cluster.x-k8s.io_nestedcontrolplanes.yaml

+169-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@ spec:
1313
kind: NestedControlPlane
1414
listKind: NestedControlPlaneList
1515
plural: nestedcontrolplanes
16+
shortNames:
17+
- ncp
1618
singular: nestedcontrolplane
1719
scope: Namespaced
1820
versions:
19-
- name: v1alpha4
21+
- additionalPrinterColumns:
22+
- jsonPath: .status.rady
23+
name: Ready
24+
type: boolean
25+
- jsonPath: .metadata.creationTimestamp
26+
name: Age
27+
type: date
28+
name: v1alpha4
2029
schema:
2130
openAPIV3Schema:
2231
description: NestedControlPlane is the Schema for the nestedcontrolplanes API
@@ -32,12 +41,168 @@ spec:
3241
spec:
3342
description: NestedControlPlaneSpec defines the desired state of NestedControlPlane
3443
properties:
35-
foo:
36-
description: Foo is an example field of NestedControlPlane. Edit NestedControlPlane_types.go to remove/update
37-
type: string
44+
apiserver:
45+
description: APIServerRef is the reference to the NestedAPIServer
46+
properties:
47+
apiVersion:
48+
description: API version of the referent.
49+
type: string
50+
fieldPath:
51+
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
52+
type: string
53+
kind:
54+
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
55+
type: string
56+
name:
57+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
58+
type: string
59+
namespace:
60+
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
61+
type: string
62+
resourceVersion:
63+
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
64+
type: string
65+
uid:
66+
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
67+
type: string
68+
type: object
69+
controlPlaneEndpoint:
70+
description: ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
71+
properties:
72+
host:
73+
description: The hostname on which the API server is serving.
74+
type: string
75+
port:
76+
description: The port on which the API server is serving.
77+
format: int32
78+
type: integer
79+
required:
80+
- host
81+
- port
82+
type: object
83+
controllerManager:
84+
description: ContollerManagerRef is the reference to the NestedControllerManager
85+
properties:
86+
apiVersion:
87+
description: API version of the referent.
88+
type: string
89+
fieldPath:
90+
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
91+
type: string
92+
kind:
93+
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
94+
type: string
95+
name:
96+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
97+
type: string
98+
namespace:
99+
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
100+
type: string
101+
resourceVersion:
102+
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
103+
type: string
104+
uid:
105+
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
106+
type: string
107+
type: object
108+
etcd:
109+
description: EtcdRef is the reference to the NestedEtcd
110+
properties:
111+
apiVersion:
112+
description: API version of the referent.
113+
type: string
114+
fieldPath:
115+
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
116+
type: string
117+
kind:
118+
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
119+
type: string
120+
name:
121+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
122+
type: string
123+
namespace:
124+
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
125+
type: string
126+
resourceVersion:
127+
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
128+
type: string
129+
uid:
130+
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
131+
type: string
132+
type: object
38133
type: object
39134
status:
40135
description: NestedControlPlaneStatus defines the observed state of NestedControlPlane
136+
properties:
137+
apiserver:
138+
description: APIServer stores the connection information from the control plane this should contain anything shared between control plane components
139+
properties:
140+
serviceCidr:
141+
description: ServiceCIDRs which is provided to kube-apiserver and kube-controller-manager
142+
type: string
143+
type: object
144+
conditions:
145+
description: Conditions specifies the cpnditions for the managed control plane
146+
items:
147+
description: Condition defines an observation of a Cluster API resource operational state.
148+
properties:
149+
lastTransitionTime:
150+
description: Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
151+
format: date-time
152+
type: string
153+
message:
154+
description: A human readable message indicating details about the transition. This field may be empty.
155+
type: string
156+
reason:
157+
description: The reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may not be empty.
158+
type: string
159+
severity:
160+
description: Severity provides an explicit classification of Reason code, so the users or machines can immediately understand the current situation and act accordingly. The Severity field MUST be set only when Status=False.
161+
type: string
162+
status:
163+
description: Status of the condition, one of True, False, Unknown.
164+
type: string
165+
type:
166+
description: Type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important.
167+
type: string
168+
required:
169+
- status
170+
- type
171+
type: object
172+
type: array
173+
etcd:
174+
description: Etcd stores the connection information from the downstream etcd implementation if the NestedEtcd type isn't used this allows other component controllers to fetch the endpoints.
175+
properties:
176+
addresses:
177+
description: Addresses defines how to address the etcd instance
178+
items:
179+
description: EtcdAddress defines the observed addresses for etcd
180+
properties:
181+
hostname:
182+
description: Hostname of the etcd instance
183+
type: string
184+
ip:
185+
description: IP Address of the etcd instance.
186+
type: string
187+
port:
188+
description: Port of the etcd instance
189+
format: int32
190+
type: integer
191+
type: object
192+
type: array
193+
type: object
194+
failureMessage:
195+
description: ErrorMessage indicates that there is a terminal problem reconciling the state, and will be set to a descriptive error message.
196+
type: string
197+
initialized:
198+
description: Initialized denotes whether or not the control plane has the uploaded kubernetes config-map.
199+
type: boolean
200+
ready:
201+
default: false
202+
description: Ready denotes that the AWSManagedControlPlane API Server is ready to receive requests and that the VPC infra is ready.
203+
type: boolean
204+
required:
205+
- ready
41206
type: object
42207
type: object
43208
served: true

0 commit comments

Comments
 (0)