-
Notifications
You must be signed in to change notification settings - Fork 73
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
validation: bundle CRDs are compared by definition key instead of name (#32) #39
validation: bundle CRDs are compared by definition key instead of name (#32) #39
Conversation
description: "registryv1 invalid bundle with duplicate CRD etcdclusters in bundle", | ||
directory: "./testdata/invalid_bundle_3", | ||
hasError: true, | ||
errString: `duplicate CRD key "tests.test.example.com/v1alpha1" in bundle "test-operator.v0.0.1"`, |
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.
👍
if err != (errors.Error{}) { | ||
result.Add(err) | ||
return result | ||
ownedKeys := getOwnedCustomResourceDefintionKeys(csv) |
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 know it's outside the scope of this pr, but my nit for this would be that this function header has too many arguments if there's a pointer to the csv in the bundle anyway.
060db51
to
53d53cd
Compare
/lgtm |
operator-framework/api#39. This update also removes the bou.ke/monkey dependency that has a very restrictive license.
operator-framework/api#39. This update also removes the bou.ke/monkey dependency that has a very restrictive license. (upstream operator-registry commit: d73a908162177fafd045277cf4a90f5770a01de0)
operator-framework/api#39. This update also removes the bou.ke/monkey dependency that has a very restrictive license. Upstream-repository: operator-registry Upstream-commit: d73a908162177fafd045277cf4a90f5770a01de0
#32 was reverted at some point. This PR fixes the reversion, considering both v1 and v1beta1 CRDs.
/cc @dinhxuanvu @kevinrizza @gallettilance
/kind bug