3scale operator fails to inject custom policy
Issue
- When injecting a custom policy via Operator, the APIcast pod boots but the policy does not load
-
The
threescale-operator-controller-manager-v2pod logs an error indicating that theDeploymentConfigis invalid:{"level":"error","ts":1726863539.0236611,"msg":"Reconciler error","controller":"apimanager","controllerGroup":"apps.3scale.net","controllerKind":"APIManager","aPIManager":{"name":"apimanager","namespace":"3scale"},"namespace":"3scale","name":"apimanager","reconcileID":"53d1174f-dc6e-4d97-ac15-bcdd936d2018","error":"DeploymentConfig.apps.openshift.io \"apicast-staging\" is invalid: spec.template.annotations: Invalid value: \"apimanager.apps.3scale.net/custompolicy-secret-resource-version-my-long-name-custom-policy-secret\": name part must be no more than 63 characters","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:234"}
Environment
- Red Hat 3scale API Management
- 2.14 On-Premises
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.