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

[Platform] Move function name validation from resource to platform #3130

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

TomerShor
Copy link
Contributor

Function name validation was happening only on the resource side, when parsing the function information on Create / Update / Delete requests.
This allowed deploying functions with invalid names via Nuctl - The deployment would eventually fail, but the error message was not as clear as it should be.
This also caused errors when trying to delete the already erroneous function because delete request failed function validation.

Thus, we move the function name validation to the platform, so it will be appplied both when deploying via the dashboard and via nuctl.

Resolves #3045

Copy link
Contributor

@rokatyy rokatyy left a comment

Choose a reason for hiding this comment

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

Nice and clean!

@TomerShor TomerShor merged commit 208c1f0 into nuclio:development Jan 18, 2024
11 checks passed
@TomerShor TomerShor deleted the bugfix/validate-func-name branch January 18, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I cannot delete the model that caused an error during deployment
2 participants