3scale operator fails to inject custom policy

Solution Verified - Updated -

Issue

  • When injecting a custom policy via Operator, the APIcast pod boots but the policy does not load
  • The threescale-operator-controller-manager-v2 pod logs an error indicating that the DeploymentConfig is 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content