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

Consume 0.20.0 version of operator framework api #6639

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

kevinrizza
Copy link
Member

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 optional operatorhub validator. See operator-framework/api#304 for more info.

Copy link
Contributor

@everettraven everettraven left a 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

@kevinrizza
Copy link
Member Author

@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,
Copy link
Contributor

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:

Suggested change
Validator: apivalidation.OperatorHubValidator,
Validator: apivalidation.OperatorHubValidator // nolint: staticcheck,

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 13, 2023
@everettraven everettraven merged commit 4d5f721 into operator-framework:master Dec 13, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants