Skip to content

Commit e4a8fce

Browse files
author
kranurag7
committed
update controller-gen to v0.14.0
Signed-off-by: kranurag7 <[email protected]>
1 parent 537d937 commit e4a8fce

File tree

5 files changed

+182
-149
lines changed

5 files changed

+182
-149
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CTLPTL_VERSION := 0.8.25
9191
# need in CI for releasing
9292
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/controller-gen)
9393
$(CONTROLLER_GEN): # Build controller-gen from tools folder.
94-
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.0
94+
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
9595

9696
# need this in CI for releasing
9797
KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR)/kustomize)

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml

Lines changed: 61 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.12.0
6+
controller-gen.kubebuilder.io/version: v0.14.0
77
name: clusteraddons.clusterstack.x-k8s.io
88
spec:
99
group: clusterstack.x-k8s.io
@@ -37,14 +37,19 @@ spec:
3737
description: ClusterAddon is the schema for the clusteraddons API.
3838
properties:
3939
apiVersion:
40-
description: 'APIVersion defines the versioned schema of this representation
41-
of an object. Servers should convert recognized schemas to the latest
42-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
40+
description: |-
41+
APIVersion defines the versioned schema of this representation of an object.
42+
Servers should convert recognized schemas to the latest internal value, and
43+
may reject unrecognized values.
44+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
4345
type: string
4446
kind:
45-
description: 'Kind is a string value representing the REST resource this
46-
object represents. Servers may infer this from the endpoint the client
47-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
47+
description: |-
48+
Kind is a string value representing the REST resource this object represents.
49+
Servers may infer this from the endpoint the client submits requests to.
50+
Cannot be updated.
51+
In CamelCase.
52+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
4853
type: string
4954
metadata:
5055
type: object
@@ -53,49 +58,55 @@ spec:
5358
object.
5459
properties:
5560
clusterRef:
56-
description: ClusterRef is the reference to the clusterv1.Cluster
57-
object that corresponds to the workload cluster where this controller
58-
applies the cluster addons.
61+
description: |-
62+
ClusterRef is the reference to the clusterv1.Cluster object that corresponds to the workload cluster where this
63+
controller applies the cluster addons.
5964
properties:
6065
apiVersion:
6166
description: API version of the referent.
6267
type: string
6368
fieldPath:
64-
description: 'If referring to a piece of an object instead of
65-
an entire object, this string should contain a valid JSON/Go
66-
field access statement, such as desiredState.manifest.containers[2].
67-
For example, if the object reference is to a container within
68-
a pod, this would take on a value like: "spec.containers{name}"
69-
(where "name" refers to the name of the container that triggered
70-
the event) or if no container name is specified "spec.containers[2]"
71-
(container with index 2 in this pod). This syntax is chosen
72-
only to have some well-defined way of referencing a part of
73-
an object. TODO: this design is not final and this field is
74-
subject to change in the future.'
69+
description: |-
70+
If referring to a piece of an object instead of an entire object, this string
71+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
72+
For example, if the object reference is to a container within a pod, this would take on a value like:
73+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
74+
the event) or if no container name is specified "spec.containers[2]" (container with
75+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
76+
referencing a part of an object.
77+
TODO: this design is not final and this field is subject to change in the future.
7578
type: string
7679
kind:
77-
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
80+
description: |-
81+
Kind of the referent.
82+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
7883
type: string
7984
name:
80-
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
85+
description: |-
86+
Name of the referent.
87+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
8188
type: string
8289
namespace:
83-
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
90+
description: |-
91+
Namespace of the referent.
92+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
8493
type: string
8594
resourceVersion:
86-
description: 'Specific resourceVersion to which this reference
87-
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
95+
description: |-
96+
Specific resourceVersion to which this reference is made, if any.
97+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
8898
type: string
8999
uid:
90-
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
100+
description: |-
101+
UID of the referent.
102+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
91103
type: string
92104
type: object
93105
x-kubernetes-map-type: atomic
94106
clusterStack:
95-
description: ClusterStack is the full string <provider>-<name>-<Kubernetes
96-
version>-<version> that will be filled with the cluster stack that
97-
the respective cluster uses currently. It always matches cluster.spec.topology.class
98-
if the work of this controller is done.
107+
description: |-
108+
ClusterStack is the full string <provider>-<name>-<Kubernetes version>-<version> that will be filled with the cluster stack that
109+
the respective cluster uses currently. It always matches cluster.spec.topology.class if the work of this controller is done.
99110
type: string
100111
version:
101112
description: Version is the version of the cluster addons that have
@@ -114,37 +125,37 @@ spec:
114125
operational state.
115126
properties:
116127
lastTransitionTime:
117-
description: Last time the condition transitioned from one status
118-
to another. This should be when the underlying condition changed.
119-
If that is not known, then using the time when the API field
120-
changed is acceptable.
128+
description: |-
129+
Last time the condition transitioned from one status to another.
130+
This should be when the underlying condition changed. If that is not known, then using the time when
131+
the API field changed is acceptable.
121132
format: date-time
122133
type: string
123134
message:
124-
description: A human readable message indicating details about
125-
the transition. This field may be empty.
135+
description: |-
136+
A human readable message indicating details about the transition.
137+
This field may be empty.
126138
type: string
127139
reason:
128-
description: The reason for the condition's last transition
129-
in CamelCase. The specific API may choose whether or not this
130-
field is considered a guaranteed API. This field may not be
131-
empty.
140+
description: |-
141+
The reason for the condition's last transition in CamelCase.
142+
The specific API may choose whether or not this field is considered a guaranteed API.
143+
This field may not be empty.
132144
type: string
133145
severity:
134-
description: Severity provides an explicit classification of
135-
Reason code, so the users or machines can immediately understand
136-
the current situation and act accordingly. The Severity field
137-
MUST be set only when Status=False.
146+
description: |-
147+
Severity provides an explicit classification of Reason code, so the users or machines can immediately
148+
understand the current situation and act accordingly.
149+
The Severity field MUST be set only when Status=False.
138150
type: string
139151
status:
140152
description: Status of the condition, one of True, False, Unknown.
141153
type: string
142154
type:
143-
description: Type of condition in CamelCase or in foo.example.com/CamelCase.
144-
Many .condition.type values are consistent across resources
145-
like Available, but because arbitrary conditions can be useful
146-
(see .node.status.conditions), the ability to deconflict is
147-
important.
155+
description: |-
156+
Type of condition in CamelCase or in foo.example.com/CamelCase.
157+
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions
158+
can be useful (see .node.status.conditions), the ability to deconflict is important.
148159
type: string
149160
required:
150161
- lastTransitionTime

0 commit comments

Comments
 (0)