Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-9139

GenerateAgentPrincipalRedisProxyServiceName can produce names too long #2071

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Operator
    • None
    • GitOps Crimson Sprint 29

      Story (Required)

      GenerateAgentPrincipalRedisProxyServiceName does not use truncated CR name.

      This function constructs a Kubernetes service name from the raw crName, which could exceed the 63-character limit. The service name format {{

      {crName}

      -agent-principal-redisproxy}} (with a 26-character suffix) will exceed 63 characters for any CR name longer than approximately 37 characters. Other service naming helpers in the codebase (e.g., GetSecretNameWithSuffix in secret.go, nameWithSuffix in util.go) consistently use GetTruncatedCRName before appending suffixes. Consider updating this function to use truncated CR names for consistency.

              rh-ee-tsoham Tejas Soham
              rh-ee-tsoham Tejas Soham
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: