Skip to content

Commit ca5ff88

Browse files
authored
chore: Update code generator and controller tools (#1515)
1 parent e6aff48 commit ca5ff88

26 files changed

+23990
-29364
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ bin/docsgen:
160160
go build ${LDFLAGS} -o bin/docsgen github.com/replicatedhq/troubleshoot/cmd/docsgen
161161

162162
controller-gen:
163-
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.11.2
163+
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
164164
CONTROLLER_GEN=$(shell which controller-gen)
165165

166166
.PHONY: client-gen
167167
client-gen:
168-
go install k8s.io/code-generator/cmd/client-gen@v0.28.2
168+
go install k8s.io/code-generator/cmd/client-gen@v0.28.8
169169
CLIENT_GEN=$(shell which client-gen)
170170

171171
.PHONY: release

config/crds/troubleshoot.replicated.com_analyzers.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: analyzers.troubleshoot.replicated.com
98
spec:
109
group: troubleshoot.replicated.com
@@ -21,14 +20,19 @@ spec:
2120
description: Analyzer is the Schema for the analyzers API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
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
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
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
3236
type: string
3337
metadata:
3438
type: object

config/crds/troubleshoot.replicated.com_collectors.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: collectors.troubleshoot.replicated.com
98
spec:
109
group: troubleshoot.replicated.com
@@ -21,14 +20,19 @@ spec:
2120
description: Collector is the Schema for the collectors API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
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
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
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
3236
type: string
3337
metadata:
3438
type: object
@@ -164,10 +168,10 @@ spec:
164168
insecureSkipVerify:
165169
type: boolean
166170
timeout:
167-
description: A Duration represents the elapsed time
168-
between two instants as an int64 nanosecond count.
169-
The representation limits the largest representable
170-
duration to approximately 290 years.
171+
description: |-
172+
A Duration represents the elapsed time between two instants
173+
as an int64 nanosecond count. The representation limits the
174+
largest representable duration to approximately 290 years.
171175
format: int64
172176
type: integer
173177
url:
@@ -188,10 +192,10 @@ spec:
188192
insecureSkipVerify:
189193
type: boolean
190194
timeout:
191-
description: A Duration represents the elapsed time
192-
between two instants as an int64 nanosecond count.
193-
The representation limits the largest representable
194-
duration to approximately 290 years.
195+
description: |-
196+
A Duration represents the elapsed time between two instants
197+
as an int64 nanosecond count. The representation limits the
198+
largest representable duration to approximately 290 years.
195199
format: int64
196200
type: integer
197201
url:
@@ -210,10 +214,10 @@ spec:
210214
insecureSkipVerify:
211215
type: boolean
212216
timeout:
213-
description: A Duration represents the elapsed time
214-
between two instants as an int64 nanosecond count.
215-
The representation limits the largest representable
216-
duration to approximately 290 years.
217+
description: |-
218+
A Duration represents the elapsed time between two instants
219+
as an int64 nanosecond count. The representation limits the
220+
largest representable duration to approximately 290 years.
217221
format: int64
218222
type: integer
219223
url:

config/crds/troubleshoot.replicated.com_preflights.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: preflights.troubleshoot.replicated.com
98
spec:
109
group: troubleshoot.replicated.com
@@ -21,14 +20,19 @@ spec:
2120
description: Preflight is the Schema for the preflights API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
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
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
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
3236
type: string
3337
metadata:
3438
type: object
@@ -836,10 +840,10 @@ spec:
836840
insecureSkipVerify:
837841
type: boolean
838842
timeout:
839-
description: A Duration represents the elapsed time
840-
between two instants as an int64 nanosecond count.
841-
The representation limits the largest representable
842-
duration to approximately 290 years.
843+
description: |-
844+
A Duration represents the elapsed time between two instants
845+
as an int64 nanosecond count. The representation limits the
846+
largest representable duration to approximately 290 years.
843847
format: int64
844848
type: integer
845849
url:
@@ -860,10 +864,10 @@ spec:
860864
insecureSkipVerify:
861865
type: boolean
862866
timeout:
863-
description: A Duration represents the elapsed time
864-
between two instants as an int64 nanosecond count.
865-
The representation limits the largest representable
866-
duration to approximately 290 years.
867+
description: |-
868+
A Duration represents the elapsed time between two instants
869+
as an int64 nanosecond count. The representation limits the
870+
largest representable duration to approximately 290 years.
867871
format: int64
868872
type: integer
869873
url:
@@ -882,10 +886,10 @@ spec:
882886
insecureSkipVerify:
883887
type: boolean
884888
timeout:
885-
description: A Duration represents the elapsed time
886-
between two instants as an int64 nanosecond count.
887-
The representation limits the largest representable
888-
duration to approximately 290 years.
889+
description: |-
890+
A Duration represents the elapsed time between two instants
891+
as an int64 nanosecond count. The representation limits the
892+
largest representable duration to approximately 290 years.
889893
format: int64
890894
type: integer
891895
url:

config/crds/troubleshoot.replicated.com_redactors.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: redactors.troubleshoot.replicated.com
98
spec:
109
group: troubleshoot.replicated.com
@@ -21,14 +20,19 @@ spec:
2120
description: Redactor is the Schema for the redaction API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
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
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
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
3236
type: string
3337
metadata:
3438
type: object

config/crds/troubleshoot.replicated.com_supportbundles.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.11.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: supportbundles.troubleshoot.replicated.com
98
spec:
109
group: troubleshoot.replicated.com
@@ -21,14 +20,19 @@ spec:
2120
description: SupportBundle is the Schema for the SupportBundles API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
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
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
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
3236
type: string
3337
metadata:
3438
type: object
@@ -867,10 +871,10 @@ spec:
867871
insecureSkipVerify:
868872
type: boolean
869873
timeout:
870-
description: A Duration represents the elapsed time
871-
between two instants as an int64 nanosecond count.
872-
The representation limits the largest representable
873-
duration to approximately 290 years.
874+
description: |-
875+
A Duration represents the elapsed time between two instants
876+
as an int64 nanosecond count. The representation limits the
877+
largest representable duration to approximately 290 years.
874878
format: int64
875879
type: integer
876880
url:
@@ -891,10 +895,10 @@ spec:
891895
insecureSkipVerify:
892896
type: boolean
893897
timeout:
894-
description: A Duration represents the elapsed time
895-
between two instants as an int64 nanosecond count.
896-
The representation limits the largest representable
897-
duration to approximately 290 years.
898+
description: |-
899+
A Duration represents the elapsed time between two instants
900+
as an int64 nanosecond count. The representation limits the
901+
largest representable duration to approximately 290 years.
898902
format: int64
899903
type: integer
900904
url:
@@ -913,10 +917,10 @@ spec:
913917
insecureSkipVerify:
914918
type: boolean
915919
timeout:
916-
description: A Duration represents the elapsed time
917-
between two instants as an int64 nanosecond count.
918-
The representation limits the largest representable
919-
duration to approximately 290 years.
920+
description: |-
921+
A Duration represents the elapsed time between two instants
922+
as an int64 nanosecond count. The representation limits the
923+
largest representable duration to approximately 290 years.
920924
format: int64
921925
type: integer
922926
url:

0 commit comments

Comments
 (0)