Skip to content

Trim service names to be under 63 chars #660

@vinzee

Description

@vinzee

Brief summary

The controller-manager service defined here has a really long name which along with the fullname goes beyond 63 chars and fails with Invalid value: "...": must be no more than 63 characters.

Although there is a way to proceed by specifying a really small fullnameOverride, the chart should handle such issues by trimming the name automatically.

k6-operator version or image

1.0.0

Helm chart version (if applicable)

1.0.0

TestRun / PrivateLoadZone YAML

n/a

Other environment details (if applicable)

No response

Steps to reproduce the problem

Install k6 operator using helm with fullnameOverride set to synthetics-dev-usw2-01 (22 chars).

Expected behaviour

k6 operator should be installed successfully!

Actual behaviour

fails with Invalid value: "synthetics-dev-usw2-01-k6-operator-controller-manager-metrics-service": must be no more than 63 characters.

(final service name has 69 chars)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions