-
Notifications
You must be signed in to change notification settings - Fork 544
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
fix(packagemanifest): Add InstallModes info from CSV to PackageManifest #697
fix(packagemanifest): Add InstallModes info from CSV to PackageManifest #697
Conversation
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
@dinhxuanvu You probably have to run |
16eddef
to
2a50f24
Compare
a559917
to
3abd541
Compare
/lgtm |
/retest |
PackageManifest is missing InstallModes information from CSV. Each CSVDescription should have the spec.installModes from the ClusterServiceVersion copied as well. This allows us to compare PackageManifests to potential OperatorGroups that they would be installed into and prevent errors. Signed-off-by: Vu Dinh <vdinh@redhat.com>
3abd541
to
e31b28e
Compare
/lgtm |
e31b28e
to
3ca040c
Compare
time="2019-02-08T13:39:46Z" level=fatal msg="unable to setup API &{[packages.apps.redhat.com/v1alpha1] map[v1alpha1:map[packagemanifests:0xc420705bc0]] v1 0xc4204de000 {0xc4204de000 [{[application/json] application/json [json] true 0xc4204cc100 0xc4204cc240 [] {} 0xc4204cc100} {[application/yaml] application/yaml [yaml] true 0xc4204cd040 [] } {[application/vnd.kubernetes.protobuf] application/vnd.kubernetes.protobuf [pb] false 0xc4200fce10 [] {} 0xc4201d2ea0}] 0xc420352600 [{application/json true 0xc4204cc100 0xc4204cc240 0xc4201d2f00} {application/yaml true 0xc4204cd040 } {application/vnd.kubernetes.protobuf false 0xc4200fce10 0xc4201d2f30}] 0xc4204cc100} 0xc4200d2740}: error in registering resource: packagemanifests, unable to build openapi definitions for packages.apps.redhat.com/v1alpha1, Kind=PackageManifest: cannot find model definition for github.com/operator-framework/operator-lifecycle-manager/pkg/api/apis/operators/v1alpha1.InstallMode. If you added a new type, you may need to add +k8s:openapi-gen=true to the package or type and run code-gen again" I don't understand what's missing since the codegen was done. |
3ca040c
to
d856904
Compare
Where did you find this - running the branch locally? in the pod logs for ci-operator? |
|
Had to add openapi-gen tag in clusterserviceversion_types.go and adjusted Makefile to pick it up.
d856904
to
d649858
Compare
(in TestToPackageManifest only)
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
🎉
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alecmerdler, dinhxuanvu, jpeeler, njhale 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 |
/retest |
/retest |
2 similar comments
/retest |
/retest |
…modes-pkgm fix(packagemanifest): Add InstallModes info from CSV to PackageManifest
PackageManifest is missing InstallModes information from CSV.
Each CSVDescription should have the spec.installModes from the
ClusterServiceVersion copied as well. This allows us to compare
PackageManifests to potential OperatorGroups that they would be
installed into and prevent errors.
Signed-off-by: Vu Dinh vdinh@redhat.com