Fix Helm Chart labels and templates. Move version update to labels by lucacome · Pull Request #3606 · nginx/kubernetes-ingress (original) (raw)

When I try this locally, the version labels don't update, and I get the following in the logs:

Error updating pod with labels: Pod "my-chart-nginx-ingress-controller-75c4fc6d5d-fxl7l" is invalid: [metadata.labels: Invalid value: ""3.0.0-SNAPSHOT-dda91a4"": 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: ""1.23.2 (nginx-plus-r28)"": 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])?')]