Skip to content

label values expected for kubernetes discovery are not valid values for a label #74

Description

@brunnels

Following the docs here: https://github.com/autobrr/dashbrr/blob/main/docs/config_management.md#kubernetes-label-configuration

If you try to add the labels by editing the service I get the following:

# services "radarr" was not valid:
# * metadata.labels: Invalid value: "${DASHBRR_RADARR_API_KEY}": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with 
an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
# * metadata.labels: Invalid value: "https://radarr.domain.org": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with 
an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
# * metadata.labels: Invalid value: "http://radarr.downloads": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with
an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')

Environment:
talosVersion: v1.9.3
kubernetesVersion: v1.32.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions