Skip to content

Commit 39923ee

Browse files
Merge pull request #169 from kerthcet/cleanup/upgrade-controller-gen
update controller-gen
2 parents b6141a4 + ef443da commit 39923ee

11 files changed

+629
-913
lines changed

chart/crds/backendruntime-crd.yaml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.14.0
5+
controller-gen.kubebuilder.io/version: v0.16.1
66
name: backendruntimes.inference.llmaz.io
77
spec:
88
group: inference.llmaz.io
@@ -108,9 +108,7 @@ spec:
108108
This field is effectively required, but due to backwards compatibility is
109109
allowed to be empty. Instances of this type with an empty value here are
110110
almost certainly wrong.
111-
TODO: Add other useful fields. apiVersion, kind, uid?
112111
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
113-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
114112
type: string
115113
optional:
116114
description: Specify whether the ConfigMap or its key
@@ -175,9 +173,7 @@ spec:
175173
This field is effectively required, but due to backwards compatibility is
176174
allowed to be empty. Instances of this type with an empty value here are
177175
almost certainly wrong.
178-
TODO: Add other useful fields. apiVersion, kind, uid?
179176
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
180-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
181177
type: string
182178
optional:
183179
description: Specify whether the Secret or its key must
@@ -245,16 +241,8 @@ spec:
245241
conditions:
246242
description: Conditions represents the Inference condition.
247243
items:
248-
description: "Condition contains details for one aspect of the current
249-
state of this API Resource.\n---\nThis struct is intended for
250-
direct use as an array at the field path .status.conditions. For
251-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
252-
observations of a foo's current state.\n\t // Known .status.conditions.type
253-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
254-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
255-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
256-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
257-
\ // other fields\n\t}"
244+
description: Condition contains details for one aspect of the current
245+
state of this API Resource.
258246
properties:
259247
lastTransitionTime:
260248
description: |-
@@ -295,12 +283,7 @@ spec:
295283
- Unknown
296284
type: string
297285
type:
298-
description: |-
299-
type of condition in CamelCase or in foo.example.com/CamelCase.
300-
---
301-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
302-
useful (see .node.status.conditions), the ability to deconflict is important.
303-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
286+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
304287
maxLength: 316
305288
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])$
306289
type: string

chart/crds/openmodel-crd.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.14.0
5+
controller-gen.kubebuilder.io/version: v0.16.1
66
name: openmodels.llmaz.io
77
spec:
88
conversion:
@@ -124,7 +124,6 @@ spec:
124124
Filename refers to a specified model file rather than the whole repo.
125125
This is helpful to download a specified GGUF model rather than downloading
126126
the whole repo which includes all kinds of quantized models.
127-
TODO: this is only supported with Huggingface, add support for ModelScope
128127
in the near future.
129128
type: string
130129
modelID:
@@ -161,16 +160,8 @@ spec:
161160
conditions:
162161
description: Conditions represents the Inference condition.
163162
items:
164-
description: "Condition contains details for one aspect of the current
165-
state of this API Resource.\n---\nThis struct is intended for
166-
direct use as an array at the field path .status.conditions. For
167-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
168-
observations of a foo's current state.\n\t // Known .status.conditions.type
169-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
170-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
171-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
172-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
173-
\ // other fields\n\t}"
163+
description: Condition contains details for one aspect of the current
164+
state of this API Resource.
174165
properties:
175166
lastTransitionTime:
176167
description: |-
@@ -211,12 +202,7 @@ spec:
211202
- Unknown
212203
type: string
213204
type:
214-
description: |-
215-
type of condition in CamelCase or in foo.example.com/CamelCase.
216-
---
217-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
218-
useful (see .node.status.conditions), the ability to deconflict is important.
219-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
205+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
220206
maxLength: 316
221207
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])$
222208
type: string

chart/crds/playground-crd.yaml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.14.0
5+
controller-gen.kubebuilder.io/version: v0.16.1
66
name: playgrounds.inference.llmaz.io
77
spec:
88
group: inference.llmaz.io
@@ -91,9 +91,7 @@ spec:
9191
This field is effectively required, but due to backwards compatibility is
9292
allowed to be empty. Instances of this type with an empty value here are
9393
almost certainly wrong.
94-
TODO: Add other useful fields. apiVersion, kind, uid?
9594
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
96-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
9795
type: string
9896
optional:
9997
description: Specify whether the ConfigMap or its
@@ -159,9 +157,7 @@ spec:
159157
This field is effectively required, but due to backwards compatibility is
160158
allowed to be empty. Instances of this type with an empty value here are
161159
almost certainly wrong.
162-
TODO: Add other useful fields. apiVersion, kind, uid?
163160
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
164-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
165161
type: string
166162
optional:
167163
description: Specify whether the Secret or its key
@@ -294,16 +290,8 @@ spec:
294290
conditions:
295291
description: Conditions represents the Inference condition.
296292
items:
297-
description: "Condition contains details for one aspect of the current
298-
state of this API Resource.\n---\nThis struct is intended for
299-
direct use as an array at the field path .status.conditions. For
300-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
301-
observations of a foo's current state.\n\t // Known .status.conditions.type
302-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
303-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
304-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
305-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
306-
\ // other fields\n\t}"
293+
description: Condition contains details for one aspect of the current
294+
state of this API Resource.
307295
properties:
308296
lastTransitionTime:
309297
description: |-
@@ -344,12 +332,7 @@ spec:
344332
- Unknown
345333
type: string
346334
type:
347-
description: |-
348-
type of condition in CamelCase or in foo.example.com/CamelCase.
349-
---
350-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
351-
useful (see .node.status.conditions), the ability to deconflict is important.
352-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
335+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
353336
maxLength: 316
354337
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])$
355338
type: string

0 commit comments

Comments
 (0)