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

CRD examples: Replace invalid TracingPolicy names #652

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Jan 24, 2023

Many metadata.name of the TracingPolicy examples contained underscores in their name, and unfortunately, that makes it impossible to deploy them on Kubernetes. I assumed they were passed to Tetragon via flags using --config-file or similar.

Maybe it would be interesting to implement the regex check in Tetragon to avoid this pitfall?

Kubernetes objects names comply with lowercase RFC 1123 subdomain convention: they must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)

Kubernetes objects names comply with lowercase RFC 1123 subdomain
convention: they must consist of lower case alphanumeric characters, '-'
or '.', and must start and end with an alphanumeric character (e.g.
'example.com', regex used for validation is
'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')

Signed-off-by: Mahe Tardy <[email protected]>
@mtardy mtardy requested a review from a team as a code owner January 24, 2023 17:11
@mtardy mtardy requested a review from jrfastab January 24, 2023 17:11
Copy link
Member

@tixxdz tixxdz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as they deploy now lgtm! I think we deployed the with tetra or yes with --config-file.

@tixxdz
Copy link
Member

tixxdz commented Jan 24, 2023

Maybe it would be interesting to implement the regex check in Tetragon to avoid this pitfall?

Yes makes sense! next task? ;-)

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 this pull request may close these issues.

3 participants