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

Do not validate parameters when --skip-instance is true #1610

Merged
merged 2 commits into from
Jul 20, 2020

Conversation

ANeumann82
Copy link
Member

What this PR does / why we need it:
If skipInstance is specified, we do not need to validate the parameters - If we do, we prevent the installation of an operator version that has a parameter which is required but has no default.

Fixes #

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
*resources.Instance,
resources.OperatorVersion.Spec.Parameters); err != nil {
return err
if !options.SkipInstance {
Copy link
Member

@nfnt nfnt Jul 17, 2020

Choose a reason for hiding this comment

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

How about adding a comment on why this is needed? E.g. what is stated in the PR description.

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

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

🏅 Winning!

LGTM

Copy link
Contributor

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

nice catch

@ANeumann82 ANeumann82 merged commit 69ae2d7 into main Jul 20, 2020
@ANeumann82 ANeumann82 deleted the an/dont-validate-params-on-skip-instance branch July 20, 2020 08:04
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

4 participants