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

[Function] Validate tag name before deploying #5705

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

TomerShor
Copy link
Member

Validate tag adheres to k8s limitations before we get to the DB.

Resolves https://iguazio.atlassian.net/browse/ML-6567

@@ -544,6 +544,8 @@ def deploy(
if tag:
self.metadata.tag = tag

mlrun.utils.validate_tag_name(self.metadata.tag, "function.metadata.tag")
Copy link
Member

Choose a reason for hiding this comment

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

please move to pre_deploy_validation - remember validations should be on server side

@TomerShor TomerShor merged commit 91cecf8 into mlrun:development Jun 4, 2024
11 checks passed
@TomerShor TomerShor deleted the bugfix/ML-6567 branch June 4, 2024 14:13
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.

None yet

2 participants