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

Use safe RFC1123 for network policy names #515

Merged
merged 3 commits into from
Nov 17, 2024
Merged

Use safe RFC1123 for network policy names #515

merged 3 commits into from
Nov 17, 2024

Conversation

orishavit
Copy link
Contributor

@orishavit orishavit commented Nov 10, 2024

Description

Network policy names are based on the ServiceIdentity name they are created from. The service identity name might contain underscores, which are invalid characters for k8s objects (which must be valid DNS names according to RFC1123). Instead, use a name with the underscores replaced. The implementation of ServiceIdentity is not changed since that might have far-reaching effects in the system.

References

@orishavit orishavit marked this pull request as ready for review November 11, 2024 08:45
@orishavit orishavit requested a review from amitlicht November 12, 2024 12:47
@orishavit orishavit merged commit 8d77de8 into main Nov 17, 2024
20 checks passed
@orishavit orishavit deleted the shavit/DEV-4644 branch November 17, 2024 13:38
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Service name generation fails due to RFC 1123 subdomain validation schema
2 participants