-
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
Bug 1926893: only override deployment resources when explicitly defined in subscription config #2010
Bug 1926893: only override deployment resources when explicitly defined in subscription config #2010
Conversation
@joelanford: This pull request references Bugzilla bug 1926893, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Note: This PR is current a WIP because it needs some (hopefully quick) discussion about the approach. There are likely two ways to solve this problem:
My vote is for 1) unless there's a major concern with changing the Go API. Also note that this PR goes ahead and changes the entire |
87f78f7
to
ccd6a38
Compare
/retest |
@joelanford: This pull request references Bugzilla bug 1926893, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test unit |
/retest |
ccd6a38
to
e22f35d
Compare
I think I finally figured out what's going on here. operator-framework/api@v0.5.2 requires controller-runtime v0.8.0 (olm master is currently on v0.5.1). Trying to apply a necessary change to that repo and pull it into this PR means we're also getting v0.5.3+ and controller-runtime v0.8.0. The problem is that v0.8.0 defines an interface that contains overlapping interfaces, which is only supported in Go 1.14+. The OLM It seems like fixing this will require a Go version bump for OLM, which is probably overdue anyway. Just as a note to our future selves, we should bump the minor version on operator-framework/api releases when we change Go, Kubernetes, or controller-runtime minor versions (and any others we think might be troublesome), so that we don't get into a situation (like this one) where we need to fix a bug in OLM that requires an API change, but now all of a sudden we're pulling in a bunch of other unrelated changes. |
fd95794
to
9231a28
Compare
Fully agree and have brought this up before offline. I cut v0.5 as the “k8s 1.20” release although v0.5.0 still used controller-runtime v0.7.0 because v0.8.0 wasn’t out yet, which I think is generally fine but led to issues due to min module versioning. |
This PR needs to be rebased after #2012 merges. |
0035180
to
a7b1bf2
Compare
/test unit |
a7b1bf2
to
7efde38
Compare
/retest |
go.mod
Outdated
@@ -64,6 +64,8 @@ replace ( | |||
github.com/openshift/api => github.com/openshift/api v0.0.0-20200331152225-585af27e34fd // release-4.5 | |||
github.com/openshift/client-go => github.com/openshift/client-go v0.0.0-20200326155132-2a6cd50aedd0 // release-4.5 | |||
|
|||
github.com/operator-framework/api => github.com/joelanford/api v0.0.0-20210216180012-67617936c73e |
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.
note: just need to remove this and bump the operator-framework/api
version to a new release including the API change.
7efde38
to
82dfb23
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dinhxuanvu, joelanford, 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 Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold console tests consistently failing -- waiting for more info from the test maintainers |
/override e2e-aws-console-olm |
@njhale: /override requires a failed status context to operate on.
Only the following contexts were expected:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/override ci/prow/e2e-aws-console-olm |
@njhale: Overrode contexts on behalf of njhale: ci/prow/e2e-aws-console-olm In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@joelanford: All pull requests linked via external trackers have merged: Bugzilla bug 1926893 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cherry-pick release-4.7 |
@joelanford: #2010 failed to apply on top of branch "release-4.7":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Will this be targeted for release-4.6 backport or only 4.7? |
@taylormgeorge91 |
Description of the change:
This PR resolves an issue that causes resources defined in CSV deployment specs to be removed by OLM when the operator is installed unless they are explicitly redefined in the subscription's
spec.config.resources
section.Motivation for the change:
Closes #1912
Closes #1940
Closes #1953
Reviewer Checklist
/docs