Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

error: : used in label value is invalid #1805

Closed
dimitropoulos opened this issue Mar 7, 2019 · 1 comment
Closed

error: : used in label value is invalid #1805

dimitropoulos opened this issue Mar 7, 2019 · 1 comment

Comments

@dimitropoulos
Copy link
Contributor

the commit just merged on master implements code that ends up putting a : in a kubernetes resource label. this is invalid.

c9cda8a#diff-01a1bc681d547c2ba8d68501f424b99fR301

Here is an example of the error that happens when such a change is applied:

ts=2019-03-07T20:30:29.602546729Z caller=loop.go:208 component=sync-loop err="default:configmap/test: running kubectl: The ConfigMap \"test\" is invalid: metadata.labels: Invalid value: \"sha256:HIiQYQL2GNvdKPnbeUNdHpGfL0qMNdB0m1QBZtKVcps\": 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])?')"

note:

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])?')

@dimitropoulos dimitropoulos changed the title error: : used in label name is invalid error: : used in label value is invalid Mar 7, 2019
@2opremio
Copy link
Contributor

2opremio commented Mar 7, 2019

Fixed by #1806

@2opremio 2opremio closed this as completed Mar 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants