Skip to content

Commit 7bbb836

Browse files
authored
remove controller-runtime dependency from API (#565)
1 parent 12bcc9a commit 7bbb836

File tree

5 files changed

+75
-53
lines changed

5 files changed

+75
-53
lines changed

api/v1alpha2/groupversion_info.go

-45
This file was deleted.

api/v1alpha2/inferencemodel_types.go

-4
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,3 @@ const (
223223
// ModelReasonPending is the initial state, and indicates that the controller has not yet reconciled the InferenceModel.
224224
ModelReasonPending InferenceModelConditionReason = "Pending"
225225
)
226-
227-
func init() {
228-
SchemeBuilder.Register(&InferenceModel{}, &InferenceModelList{})
229-
}

api/v1alpha2/inferencepool_types.go

-4
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,3 @@ const (
244244
// or API group, or a reference to a resource that can not be found.
245245
InferencePoolReasonInvalidExtensionRef InferencePoolReason = "InvalidExtensionRef"
246246
)
247-
248-
func init() {
249-
SchemeBuilder.Register(&InferencePool{}, &InferencePoolList{})
250-
}

api/v1alpha2/zz_generated.register.go

+71
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hack/update-codegen.sh

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ kube::codegen::gen_helpers \
3030
--boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt" \
3131
"${SCRIPT_ROOT}"
3232

33+
kube::codegen::gen_register \
34+
--boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt" \
35+
"${SCRIPT_ROOT}"
36+
3337
kube::codegen::gen_client \
3438
--with-watch \
3539
--with-applyconfig \

0 commit comments

Comments
 (0)