-
Notifications
You must be signed in to change notification settings - Fork 78
community-validator: improve msgs raised #124
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
community-validator: improve msgs raised #124
Conversation
pkg/validation/internal/community.go
Outdated
if verParsed.GE(semVerOCPV1beta1Unsupported) { | ||
checks.errs = append(checks.errs, fmt.Errorf("this bundle is %s. Migrate the API(s) "+ | ||
"for %s or use the OCP labels for compatible version(s). (e.g. LABEL %s='=v4.8')", | ||
checks.errs = append(checks.errs, fmt.Errorf("this bundle is %s. Migrate the API(s) for "+ |
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.
nit: I know there's precedent in this file, but I would like to stop using string concatenation as a way of making literals more readable for engineers -- almost all text editors have line-wrapping.
/lgtm |
func checkOCPLabelsWithHasDeprecatedAPIs(checks CommunityOperatorChecks, deprecatedAPImsg string) CommunityOperatorChecks { | ||
// Note that we cannot make mandatory because the package format still valid | ||
if len(checks.indexImagePath) == 0 && len(checks.indexImage) == 0 { | ||
if len(checks.indexImagePath) == 0 { |
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.
cleanup - not used.
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
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, dinhxuanvu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.