Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10019

spec.template.annotations name part must be no more than 63 characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Apicast Operator
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      Use of custom policy in apicast operator may lead to failure included below

       

      {{{}}
          "level": "error",
          "ts": 1690959593.176282,
          "msg": "Reconciler error",
          "controller": "apicast",
          "controllerGroup": "apps.3scale.net",
          "controllerKind": "APIcast",
          "aPIcast": {
              "name": "gw-mganis-custom-ros5jvc",
              "namespace": "redhat-rhoam-apicast"
          },
          "namespace": "redhat-rhoam-apicast",
          "name": "gw-mganis-custom-ros5jvc",
          "reconcileID": "5f55578a-1121-41aa-8cf3-833daafe3e1d",
          "error": "Deployment.apps \"apicast-gw-mganis-custom-ros5jvc\" is invalid: spec.template.annotations: Invalid value: \"apicast.apps.3scale.net/custompolicy-secret-resource-version-secret-mganis-custom-isepwkm\": 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"
      }

       

      CustomPoliciesSecretResverAnnotationPrefix is 61 characters long, it doesn't give much room for extra text (appended secret name).

      Expected behavior:

       - meet the limit of 63 chars, check the length before creation.

            Unassigned Unassigned
            mganisin@redhat.com Marian Ganisin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: