Skip to content

Issue with Projected service account token #1125

Description

@jp-gouin

When trying to deploy the following app

helm  upgrade --install test gitlab/gitlab-agent \                               
    --namespace gitlab-agent-test \
    --create-namespace \
    --set image.tag=v18.11.0

It fails with ProviderFailed

026-08-07T13:26:37.818Z    ERROR    Unable to transform tokens for pod    {"cluster": "k3k-test-gitlab", "namespace":
  "gitlab-agent-test", "name": "test-gitlab-agent-v2-54f7c84c49-bxmqw", "pod": "test-gitlab-agent-v2-54f7c84c49-bxmqw-gitlab-agent-test-k-a6e21", "error": "Secret
  \"k3k-test-gitlab-agent-https://kubernetes.default.svc.clus-144f9/\" is invalid: metadata.name: Invalid value: \"k3k-test-gitlab-agent-https://kubernetes.default.svc.clus-144f9/\": a lowercase RFC 1123 subdomain
  must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is
  '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"}

The translated name is wrongly formatted and https://kubernetes.default.svc.clus is happened to the name

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions