-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Consume 0.20.0 version of operator framework api #6639
Consume 0.20.0 version of operator framework api #6639
Conversation
Signed-off-by: kevinrizza <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me. Looks like some linting errors need to be sorted out
@everettraven looks like the linter is failing because of https://staticcheck.dev/docs/checks/#SA1019 against the old validator. That's valid, because the old validator is deprecated, but do you know if there's a way to allow it anyway? Or is it expected that we remove anything that is deprecated immediately? This will be a backwards incompatible update if we just remove the validator. |
desc: "OperatorHub.io categories metadata validation. ", | ||
}, | ||
{ | ||
Validator: apivalidation.OperatorHubValidator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doing the following will silence the lint error since this is intentional:
Validator: apivalidation.OperatorHubValidator, | |
Validator: apivalidation.OperatorHubValidator // nolint: staticcheck, |
Signed-off-by: kevinrizza <[email protected]>
2b68396
to
dac61a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This pull request updates the operator-framework api dependency to 0.20.0.
As part of that consumption, this updates the
operator-sdk bundle validate
command to consume the new hierarchy of optional validators, given the deprecation of the optionaloperatorhub
validator. See operator-framework/api#304 for more info.