-
Notifications
You must be signed in to change notification settings - Fork 192
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
OCPBUGS-31550: Gateway API - recreating SMCP which breaks Gateway API #1115
base: master
Are you sure you want to change the base?
OCPBUGS-31550: Gateway API - recreating SMCP which breaks Gateway API #1115
Conversation
@anirudhAgniRedhat: This pull request references Jira Issue OCPBUGS-31550, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@anirudhAgniRedhat: This pull request references Jira Issue OCPBUGS-31550, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@anirudhAgniRedhat: This pull request references Jira Issue OCPBUGS-31550, 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@anirudhAgniRedhat: This pull request references Jira Issue OCPBUGS-31550, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
33e66d8
to
93c20b7
Compare
/hold |
41c7e73
to
9fe51e2
Compare
pkg/operator/controller/gatewayclass/servicemeshcontrolplane.go
Outdated
Show resolved
Hide resolved
Hmm, on my cluster, adding a watch for SMCPs when the operator starts is causing some issues.
The OSSM operator installs the We need to create the SMCP watch after the OSSM operator is installed. I messed around with the code and got a version where it seems to work. It may still need some polishing, but this is what I changed on my end: https://gist.github.com/rfredette/366a1f36ed4cf7425a5cc0f4ef270a24 |
57d1c8d
to
addca2f
Compare
@rfredette Added your suggestions Also added the watch to |
/assign @candita |
/retest |
/test e2e-aws-gatewayapi |
@anirudhAgniRedhat please add an e2e test for this to the existing e2e-aws-gatewayapi test. |
addca2f
to
ef6dbff
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ef6dbff
to
bab5407
Compare
Hey @candita Added the e2e tests in |
DNS Propagation bug should be fixed, retesting gatewayapi: |
Thanks @gcs278 for the update!!! |
/assign @rfredette |
bab5407
to
bd84ff9
Compare
pre-merge-verified
Route is bound to the gateway and SMCP is recreated after controller reconciles |
@anirudhAgniRedhat: This pull request references Jira Issue OCPBUGS-31550, 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 openshift-eng/jira-lifecycle-plugin repository. |
/retest |
@anirudhAgniRedhat: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
errs = append(errs, err) | ||
} else { | ||
r.startSMCPWatch.Do(func() { |
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.
Why would we want to start a watch every time we reconcile?
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.
Hey @candita, We are using sync.Once here, to start the watch for SMCP, which should run only once. So, this should not run on every reconciliation.
Since we need to create the SMCP watch after the OSSM operator is installed, we cannot start the watch as usual.
Recreating the SMCP and subscription, in case the SMCP or subscriptions are deleted manually.