Skip to content

Commit 46813c0

Browse files
authored
Merge pull request #925 from fluxcd/controller-gen-v0.16.1
Update controller-gen to v0.16.1
2 parents 205cd17 + 7c15798 commit 46813c0

5 files changed

+32
-185
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ REPOSITORY_ROOT := $(shell git rev-parse --show-toplevel)
99
BUILD_DIR := $(REPOSITORY_ROOT)/build
1010

1111
# API (doc) generation utilities
12-
CONTROLLER_GEN_VERSION ?= v0.15.0
12+
CONTROLLER_GEN_VERSION ?= v0.16.1
1313
GEN_API_REF_DOCS_VERSION ?= e327d0730470cbd61b06300f81c5fcf91c23c113
1414

1515
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)

config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml

+8-33
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.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.1
77
name: alerts.notification.toolkit.fluxcd.io
88
spec:
99
group: notification.toolkit.fluxcd.io
@@ -104,6 +104,7 @@ spec:
104104
minLength: 1
105105
type: string
106106
required:
107+
- kind
107108
- name
108109
type: object
109110
type: array
@@ -141,16 +142,8 @@ spec:
141142
properties:
142143
conditions:
143144
items:
144-
description: "Condition contains details for one aspect of the current
145-
state of this API Resource.\n---\nThis struct is intended for
146-
direct use as an array at the field path .status.conditions. For
147-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
148-
observations of a foo's current state.\n\t // Known .status.conditions.type
149-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
150-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
151-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
152-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
153-
\ // other fields\n\t}"
145+
description: Condition contains details for one aspect of the current
146+
state of this API Resource.
154147
properties:
155148
lastTransitionTime:
156149
description: |-
@@ -191,12 +184,7 @@ spec:
191184
- Unknown
192185
type: string
193186
type:
194-
description: |-
195-
type of condition in CamelCase or in foo.example.com/CamelCase.
196-
---
197-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
198-
useful (see .node.status.conditions), the ability to deconflict is important.
199-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
187+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
200188
maxLength: 316
201189
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])$
202190
type: string
@@ -373,16 +361,8 @@ spec:
373361
conditions:
374362
description: Conditions holds the conditions for the Alert.
375363
items:
376-
description: "Condition contains details for one aspect of the current
377-
state of this API Resource.\n---\nThis struct is intended for
378-
direct use as an array at the field path .status.conditions. For
379-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
380-
observations of a foo's current state.\n\t // Known .status.conditions.type
381-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
382-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
383-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
384-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
385-
\ // other fields\n\t}"
364+
description: Condition contains details for one aspect of the current
365+
state of this API Resource.
386366
properties:
387367
lastTransitionTime:
388368
description: |-
@@ -423,12 +403,7 @@ spec:
423403
- Unknown
424404
type: string
425405
type:
426-
description: |-
427-
type of condition in CamelCase or in foo.example.com/CamelCase.
428-
---
429-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
430-
useful (see .node.status.conditions), the ability to deconflict is important.
431-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
406+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
432407
maxLength: 316
433408
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])$
434409
type: string

config/crd/bases/notification.toolkit.fluxcd.io_providers.yaml

+7-35
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.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.1
77
name: providers.notification.toolkit.fluxcd.io
88
spec:
99
group: notification.toolkit.fluxcd.io
@@ -131,16 +131,8 @@ spec:
131131
properties:
132132
conditions:
133133
items:
134-
description: "Condition contains details for one aspect of the current
135-
state of this API Resource.\n---\nThis struct is intended for
136-
direct use as an array at the field path .status.conditions. For
137-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
138-
observations of a foo's current state.\n\t // Known .status.conditions.type
139-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
140-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
141-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
142-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
143-
\ // other fields\n\t}"
134+
description: Condition contains details for one aspect of the current
135+
state of this API Resource.
144136
properties:
145137
lastTransitionTime:
146138
description: |-
@@ -181,12 +173,7 @@ spec:
181173
- Unknown
182174
type: string
183175
type:
184-
description: |-
185-
type of condition in CamelCase or in foo.example.com/CamelCase.
186-
---
187-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
188-
useful (see .node.status.conditions), the ability to deconflict is important.
189-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
176+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
190177
maxLength: 316
191178
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])$
192179
type: string
@@ -258,7 +245,6 @@ spec:
258245
CertSecretRef specifies the Secret containing
259246
a PEM-encoded CA certificate (in the `ca.crt` key).
260247
261-
262248
Note: Support for the `caFile` key has
263249
been deprecated.
264250
properties:
@@ -348,16 +334,8 @@ spec:
348334
conditions:
349335
description: Conditions holds the conditions for the Provider.
350336
items:
351-
description: "Condition contains details for one aspect of the current
352-
state of this API Resource.\n---\nThis struct is intended for
353-
direct use as an array at the field path .status.conditions. For
354-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
355-
observations of a foo's current state.\n\t // Known .status.conditions.type
356-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
357-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
358-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
359-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
360-
\ // other fields\n\t}"
337+
description: Condition contains details for one aspect of the current
338+
state of this API Resource.
361339
properties:
362340
lastTransitionTime:
363341
description: |-
@@ -398,12 +376,7 @@ spec:
398376
- Unknown
399377
type: string
400378
type:
401-
description: |-
402-
type of condition in CamelCase or in foo.example.com/CamelCase.
403-
---
404-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
405-
useful (see .node.status.conditions), the ability to deconflict is important.
406-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
379+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
407380
maxLength: 316
408381
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])$
409382
type: string
@@ -473,7 +446,6 @@ spec:
473446
CertSecretRef specifies the Secret containing
474447
a PEM-encoded CA certificate (in the `ca.crt` key).
475448
476-
477449
Note: Support for the `caFile` key has
478450
been deprecated.
479451
properties:

config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml

+13-49
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.15.0
6+
controller-gen.kubebuilder.io/version: v0.16.1
77
name: receivers.notification.toolkit.fluxcd.io
88
spec:
99
group: notification.toolkit.fluxcd.io
@@ -159,16 +159,8 @@ spec:
159159
conditions:
160160
description: Conditions holds the conditions for the Receiver.
161161
items:
162-
description: "Condition contains details for one aspect of the current
163-
state of this API Resource.\n---\nThis struct is intended for
164-
direct use as an array at the field path .status.conditions. For
165-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
166-
observations of a foo's current state.\n\t // Known .status.conditions.type
167-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
168-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
169-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
170-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
171-
\ // other fields\n\t}"
162+
description: Condition contains details for one aspect of the current
163+
state of this API Resource.
172164
properties:
173165
lastTransitionTime:
174166
description: |-
@@ -209,12 +201,7 @@ spec:
209201
- Unknown
210202
type: string
211203
type:
212-
description: |-
213-
type of condition in CamelCase or in foo.example.com/CamelCase.
214-
---
215-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
216-
useful (see .node.status.conditions), the ability to deconflict is important.
217-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
204+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
218205
maxLength: 316
219206
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])$
220207
type: string
@@ -335,6 +322,7 @@ spec:
335322
minLength: 1
336323
type: string
337324
required:
325+
- kind
338326
- name
339327
type: object
340328
type: array
@@ -373,6 +361,7 @@ spec:
373361
type: string
374362
required:
375363
- resources
364+
- secretRef
376365
- type
377366
type: object
378367
status:
@@ -382,16 +371,8 @@ spec:
382371
properties:
383372
conditions:
384373
items:
385-
description: "Condition contains details for one aspect of the current
386-
state of this API Resource.\n---\nThis struct is intended for
387-
direct use as an array at the field path .status.conditions. For
388-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
389-
observations of a foo's current state.\n\t // Known .status.conditions.type
390-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
391-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
392-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
393-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
394-
\ // other fields\n\t}"
374+
description: Condition contains details for one aspect of the current
375+
state of this API Resource.
395376
properties:
396377
lastTransitionTime:
397378
description: |-
@@ -432,12 +413,7 @@ spec:
432413
- Unknown
433414
type: string
434415
type:
435-
description: |-
436-
type of condition in CamelCase or in foo.example.com/CamelCase.
437-
---
438-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
439-
useful (see .node.status.conditions), the ability to deconflict is important.
440-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
416+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
441417
maxLength: 316
442418
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])$
443419
type: string
@@ -598,6 +574,7 @@ spec:
598574
type: string
599575
required:
600576
- resources
577+
- secretRef
601578
- type
602579
type: object
603580
status:
@@ -608,16 +585,8 @@ spec:
608585
conditions:
609586
description: Conditions holds the conditions for the Receiver.
610587
items:
611-
description: "Condition contains details for one aspect of the current
612-
state of this API Resource.\n---\nThis struct is intended for
613-
direct use as an array at the field path .status.conditions. For
614-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
615-
observations of a foo's current state.\n\t // Known .status.conditions.type
616-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
617-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
618-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
619-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
620-
\ // other fields\n\t}"
588+
description: Condition contains details for one aspect of the current
589+
state of this API Resource.
621590
properties:
622591
lastTransitionTime:
623592
description: |-
@@ -658,12 +627,7 @@ spec:
658627
- Unknown
659628
type: string
660629
type:
661-
description: |-
662-
type of condition in CamelCase or in foo.example.com/CamelCase.
663-
---
664-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
665-
useful (see .node.status.conditions), the ability to deconflict is important.
666-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
630+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
667631
maxLength: 316
668632
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])$
669633
type: string

0 commit comments

Comments
 (0)