Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid label values #238

Closed
astefanutti opened this issue May 5, 2021 · 2 comments · Fixed by #239
Closed

Invalid label values #238

astefanutti opened this issue May 5, 2021 · 2 comments · Fixed by #239
Assignees

Comments

@astefanutti
Copy link
Member

I'm seeing the following error in Camel K:

could not create or replace camel.apache.org/v1alpha1, Kind=Kamelet aws-ddb-streams-source: Kamelet.camel.apache.org \"aws-ddb-streams-source\" is invalid: metadata.labels: Invalid value: \"AWS DynamoDB Streams\": 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])?')

Labels cannot contain spaces, as specified in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set.

Unless there is a strong need to query Kamelets by group, camel.apache.org/kamelet.group: "AWS DynamoDB Streams" may be declared as an annotation.

@oscerd oscerd self-assigned this May 5, 2021
@oscerd
Copy link
Contributor

oscerd commented May 5, 2021

I put them as label and not as annotations. My bad. Will fix later or tomorrow. Sorry.

@astefanutti
Copy link
Member Author

No worries. Thanks @oscerd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants