You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I disabled creation of the default Management object by kcm controller and created the custom object. It mostly the same as the default one but without the spec.core values. Validation webhook allows to create it, but kcm controller starts failing and restarting with nil pointer panics on this line: https://github.com/k0rdent/kcm/blob/v0.0.7/internal/controller/management_controller.go#L528
To Reproduce
Steps to reproduce the behavior:
bootstrap kcm controller with controller.createManagement: false
* Fix panic on `enableAdditionalComponents` when `spec.core` is unset
* Update `getWrappedComponents` to handle the case when `spec.core` is
unset without breaking
Closesk0rdent#939
Describe the bug
I disabled creation of the default Management object by kcm controller and created the custom object. It mostly the same as the default one but without the
spec.core
values. Validation webhook allows to create it, but kcm controller starts failing and restarting with nil pointer panics on this line:https://github.com/k0rdent/kcm/blob/v0.0.7/internal/controller/management_controller.go#L528
To Reproduce
Steps to reproduce the behavior:
controller.createManagement: false
Expected behavior
Forbid to create objects without the
.spec.core.kcm
value or fill it with default valuesAdditional context
The text was updated successfully, but these errors were encountered: