Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-1494

Policy fails with no status if name + namespace exceeds 63 characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • ACM 2.7.0
    • None
    • GRC
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      Create policy with name + namespace that exceeds 63 characters and apply it via the command line rather then the UI.

      Show
      Create policy with name + namespace that exceeds 63 characters and apply it via the command line rather then the UI.
    • +
    • None

      There is a limitation in ACM policies that the combination of the namespace + the name must not exceed 63 characters since ACM labels replicated policies and kubernetes labels are limited to 63 characters.

      If you deploy a policy using Argo CD or via `oc apply -f ` with a combination that exceeds this limit the policy will fail to be activated however there is no status message in the policy indicating that the issue is due to the length. Instead the user will only figure this out if they edit the policy in the UI which will vaildate the length.

      The policy controller should validate the length as well and update the status block accordingly.

              Unassigned Unassigned
              gnunn@redhat.com Gerald Nunn
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: