Skip to content

Commit 658faf0

Browse files
committed
Update CRD
Signed-off-by: Zhongcheng Lao <[email protected]>
1 parent 830d1f0 commit 658faf0

4 files changed

+336
-103
lines changed

config/crd/bases/source.toolkit.fluxcd.io_buckets.yaml

Lines changed: 74 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.5.0
7+
controller-gen.kubebuilder.io/version: v0.4.1
88
creationTimestamp: null
99
name: buckets.source.toolkit.fluxcd.io
1010
spec:
@@ -35,28 +35,42 @@ spec:
3535
description: Bucket is the Schema for the buckets API
3636
properties:
3737
apiVersion:
38-
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
38+
description: 'APIVersion defines the versioned schema of this representation
39+
of an object. Servers should convert recognized schemas to the latest
40+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
3941
type: string
4042
kind:
41-
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
43+
description: 'Kind is a string value representing the REST resource this
44+
object represents. Servers may infer this from the endpoint the client
45+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
4246
type: string
4347
metadata:
4448
type: object
4549
spec:
46-
description: BucketSpec defines the desired state of an S3 compatible bucket
50+
description: BucketSpec defines the desired state of an S3 compatible
51+
bucket
4752
properties:
4853
accessFrom:
49-
description: AccessFrom defines an Access Control List for allowing cross-namespace references to this object.
54+
description: AccessFrom defines an Access Control List for allowing
55+
cross-namespace references to this object.
5056
properties:
5157
namespaceSelectors:
52-
description: NamespaceSelectors is the list of namespace selectors to which this ACL applies. Items in this list are evaluated using a logical OR operation.
58+
description: NamespaceSelectors is the list of namespace selectors
59+
to which this ACL applies. Items in this list are evaluated
60+
using a logical OR operation.
5361
items:
54-
description: NamespaceSelector selects the namespaces to which this ACL applies. An empty map of MatchLabels matches all namespaces in a cluster.
62+
description: NamespaceSelector selects the namespaces to which
63+
this ACL applies. An empty map of MatchLabels matches all
64+
namespaces in a cluster.
5565
properties:
5666
matchLabels:
5767
additionalProperties:
5868
type: string
59-
description: MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
69+
description: MatchLabels is a map of {key,value} pairs.
70+
A single {key,value} in the matchLabels map is equivalent
71+
to an element of matchExpressions, whose key field is
72+
"key", the operator is "In", and the values array contains
73+
only "value". The requirements are ANDed.
6074
type: object
6175
type: object
6276
type: array
@@ -70,7 +84,10 @@ spec:
7084
description: The bucket endpoint address.
7185
type: string
7286
ignore:
73-
description: Ignore overrides the set of excluded patterns in the .sourceignore format (which is the same as .gitignore). If not provided, a default will be used, consult the documentation for your version to find out what those are.
87+
description: Ignore overrides the set of excluded patterns in the
88+
.sourceignore format (which is the same as .gitignore). If not provided,
89+
a default will be used, consult the documentation for your version
90+
to find out what those are.
7491
type: string
7592
insecure:
7693
description: Insecure allows connecting to a non-TLS S3 HTTP endpoint.
@@ -85,12 +102,14 @@ spec:
85102
- generic
86103
- aws
87104
- gcp
105+
- azure
88106
type: string
89107
region:
90108
description: The bucket region.
91109
type: string
92110
secretRef:
93-
description: The name of the secret containing authentication credentials for the Bucket.
111+
description: The name of the secret containing authentication credentials
112+
for the Bucket.
94113
properties:
95114
name:
96115
description: Name of the referent
@@ -99,7 +118,8 @@ spec:
99118
- name
100119
type: object
101120
suspend:
102-
description: This flag tells the controller to suspend the reconciliation of this source.
121+
description: This flag tells the controller to suspend the reconciliation
122+
of this source.
103123
type: boolean
104124
timeout:
105125
default: 20s
@@ -114,20 +134,24 @@ spec:
114134
description: BucketStatus defines the observed state of a bucket
115135
properties:
116136
artifact:
117-
description: Artifact represents the output of the last successful Bucket sync.
137+
description: Artifact represents the output of the last successful
138+
Bucket sync.
118139
properties:
119140
checksum:
120141
description: Checksum is the SHA256 checksum of the artifact.
121142
type: string
122143
lastUpdateTime:
123-
description: LastUpdateTime is the timestamp corresponding to the last update of this artifact.
144+
description: LastUpdateTime is the timestamp corresponding to
145+
the last update of this artifact.
124146
format: date-time
125147
type: string
126148
path:
127149
description: Path is the relative file path of this artifact.
128150
type: string
129151
revision:
130-
description: Revision is a human readable identifier traceable in the origin source system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm chart version, etc.
152+
description: Revision is a human readable identifier traceable
153+
in the origin source system. It can be a Git commit SHA, Git
154+
tag, a Helm index timestamp, a Helm chart version, etc.
131155
type: string
132156
url:
133157
description: URL is the HTTP address of this artifact.
@@ -139,23 +163,45 @@ spec:
139163
conditions:
140164
description: Conditions holds the conditions for the Bucket.
141165
items:
142-
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
166+
description: "Condition contains details for one aspect of the current
167+
state of this API Resource. --- This struct is intended for direct
168+
use as an array at the field path .status.conditions. For example,
169+
type FooStatus struct{ // Represents the observations of a
170+
foo's current state. // Known .status.conditions.type are:
171+
\"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type
172+
\ // +patchStrategy=merge // +listType=map // +listMapKey=type
173+
\ Conditions []metav1.Condition `json:\"conditions,omitempty\"
174+
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`
175+
\n // other fields }"
143176
properties:
144177
lastTransitionTime:
145-
description: lastTransitionTime is the 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.
178+
description: lastTransitionTime is the last time the condition
179+
transitioned from one status to another. This should be when
180+
the underlying condition changed. If that is not known, then
181+
using the time when the API field changed is acceptable.
146182
format: date-time
147183
type: string
148184
message:
149-
description: message is a human readable message indicating details about the transition. This may be an empty string.
185+
description: message is a human readable message indicating
186+
details about the transition. This may be an empty string.
150187
maxLength: 32768
151188
type: string
152189
observedGeneration:
153-
description: observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
190+
description: observedGeneration represents the .metadata.generation
191+
that the condition was set based upon. For instance, if .metadata.generation
192+
is currently 12, but the .status.conditions[x].observedGeneration
193+
is 9, the condition is out of date with respect to the current
194+
state of the instance.
154195
format: int64
155196
minimum: 0
156197
type: integer
157198
reason:
158-
description: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
199+
description: reason contains a programmatic identifier indicating
200+
the reason for the condition's last transition. Producers
201+
of specific condition types may define expected values and
202+
meanings for this field, and whether the values are considered
203+
a guaranteed API. The value should be a CamelCase string.
204+
This field may not be empty.
159205
maxLength: 1024
160206
minLength: 1
161207
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
@@ -168,7 +214,11 @@ spec:
168214
- Unknown
169215
type: string
170216
type:
171-
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. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
217+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
218+
--- Many .condition.type values are consistent across resources
219+
like Available, but because arbitrary conditions can be useful
220+
(see .node.status.conditions), the ability to deconflict is
221+
important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
172222
maxLength: 316
173223
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])$
174224
type: string
@@ -181,14 +231,16 @@ spec:
181231
type: object
182232
type: array
183233
lastHandledReconcileAt:
184-
description: LastHandledReconcileAt holds the value of the most recent reconcile request value, so a change can be detected.
234+
description: LastHandledReconcileAt holds the value of the most recent
235+
reconcile request value, so a change can be detected.
185236
type: string
186237
observedGeneration:
187238
description: ObservedGeneration is the last observed generation.
188239
format: int64
189240
type: integer
190241
url:
191-
description: URL is the download link for the artifact output of the last Bucket sync.
242+
description: URL is the download link for the artifact output of the
243+
last Bucket sync.
192244
type: string
193245
type: object
194246
type: object

0 commit comments

Comments
 (0)