Conversation
praveenrewar
commented
Jul 18, 2024
- Bump controller-runtime
- Bump go
- Bump k8s libraries
90bc8af to
2fcd4af
Compare
Signed-off-by: Praveen Rewar <8457124+praveenrewar@users.noreply.github.com>
2fcd4af to
609164b
Compare
|
While bumping up the controller-runtime library (which also bump k8s.io/apiserver), it is observed that for k8s < 1.30, Create/Update/Delete doesn't work on Package and Packagemetadata resource while everything works perfectly for App CR, Package Repository and Package Install resource. What makes Package and PackageMetadata different from other resources?Package and PackageMetadata CRUD calls are handled via the Aggregated API Server while for others, we have reconcilers. Why this behavior is observed?While performing Create/Delete/Update, a validation function (e.g createValidation here) executes. This function tries to initialise informer on v1.ValidatingAdmissionPolicy (https://github.com/kubernetes/apiserver/blob/v0.31.2/pkg/admission/plugin/policy/validating/plugin.go#L107). But as the v1.ValidatingAdmissionPolicy GVK doesn't exist on K8s < 1.30, validation fails and we get the following error: Possible Way forward:
|