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

fix: do not crash on missing deploymentRegistry for in-cluster builds #6768

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

vvagaytsev
Copy link
Collaborator

@vvagaytsev vvagaytsev commented Jan 15, 2025

What this PR does / why we need it:

A ConfigurationError is now thrown instead of InternalError if the deploymentRegistry is not configured on the provider-level when using in-cluster building.

So Garden do not crash and quits gracefully with informative error message.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

An attempt to use conditional validation for deploymentRegistry of the provider configuration was taken in 250b658.
It was reverted because of the of conditional validation support in the reference docs generation.

@vvagaytsev vvagaytsev requested review from stefreak and thsig January 15, 2025 10:13
@vvagaytsev vvagaytsev marked this pull request as draft January 15, 2025 10:13
@vvagaytsev
Copy link
Collaborator Author

Conditional validation done in 250b658 broke the docs generation. I need to take a closer look at that.

It requires more changes in the docs generation process.
Now we do npt use `joi.alternatives` with conditional validation anywhere in the project,
and the docs generation does not support that option.
That can be done later in a separate PR if necessary.
@vvagaytsev vvagaytsev marked this pull request as ready for review January 15, 2025 10:51
@vvagaytsev vvagaytsev enabled auto-merge January 15, 2025 10:57
@vvagaytsev vvagaytsev requested a review from 10ko January 21, 2025 09:30
@vvagaytsev vvagaytsev added this pull request to the merge queue Jan 21, 2025
Merged via the queue into main with commit c55486d Jan 21, 2025
40 checks passed
@vvagaytsev vvagaytsev deleted the fix/do-not-crash-on-missing-deploymentregistry branch January 21, 2025 10:43
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.

2 participants