-
Notifications
You must be signed in to change notification settings - Fork 80
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
Support Octavia setting route annotations #1071
Support Octavia setting route annotations #1071
Conversation
Hi @fernandoroyosanchez. Thanks for your PR. I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7fdca9b46620434084372ecd4d1d1156 ❌ openstack-k8s-operators-content-provider FAILURE in 9m 12s |
recheck |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/1c1d9306d9604e1f926a2bc55e0dff9c ❌ openstack-k8s-operators-content-provider FAILURE in 7m 49s |
/ok-to-test |
recheck |
It was missing the bump on the
I assume we have picked it up in some of the bumps that have happened since that merged. So rechecking now. |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/dc09be44f80a418facb38360b67aaecd ❌ openstack-k8s-operators-content-provider FAILURE in 7m 58s |
The GetDefaultRouteAnnotations function needs to be a method of the OctaviaSpecCore struct rather than OctaviaSpec. This will resolve the issue seen in: openstack-k8s-operators/openstack-operator#1071 Signed-off-by: Brendan Shephard <[email protected]>
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 have tested this change with my proposed PR in the Octavia Operator:
openstack-k8s-operators/octavia-operator#405
If you don't remove the line from the functional tests like I have suggested here, functional tests will fail with the following:
[PANICKED] Test Panicked
In [It] at: /Users/brendanshephard/sdk/go1.21.12/src/runtime/panic.go:261 @ 10/29/24 18:14:55.846
runtime error: invalid memory address or nil pointer dereference
Full Stack Trace
github.com/openstack-k8s-operators/openstack-operator/tests/functional/ctlplane_test.glob..func2.14.3()
/Users/brendanshephard/Code/openstack-k8s-operators/openstack-operator/tests/functional/ctlplane/openstackoperator_controller_test.go:579 +0x6f0
As I mentioned, this is because Octavia isn't enabled in the functional tests.
To move this one forward, we first need to merge: Then we need to bump the octavia-operator version in |
Thx @bshephar for taking care of this one, I forgot to modify commit msg to put depend-ons from this one octavia-operator/403, where basically I do the SpecCore change and some additional changes. Anyway feel free to continue ahead with the octavia-operator/405 you proposed, I will rebase mine in that case. |
2bfceeb
to
a5fd3f7
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/8d3193e6af7045428be6142dc3d4745e ❌ openstack-k8s-operators-content-provider FAILURE in 8m 17s |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/6f6a8d71280a493f947047d726282b55 ❌ openstack-k8s-operators-content-provider FAILURE in 10m 44s |
@@ -891,6 +891,7 @@ func (r *OpenStackControlPlane) DefaultServices() { | |||
} | |||
|
|||
r.Spec.Octavia.Template.Default() | |||
setOverrideSpec(&r.Spec.Octavia.APIOverride.Route, r.Spec.Octavia.Template.GetDefaultRouteAnnotations()) |
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.
r.Spec.Octavia.Template
is type *OctaviaSpecCore
. But you have added this method on the *OctaviaAPISpecCore
object:
https://github.com/openstack-k8s-operators/octavia-operator/pull/403/files#diff-d85dfd4f9255eccbf67bef3351764d06d3770a1e4366b602d8324480705acd14R201
So this currently fails:
❯ go vet ./...
# github.com/openstack-k8s-operators/openstack-operator/apis/core/v1beta1
apis/core/v1beta1/openstackcontrolplane_webhook.go:894:92: r.Spec.Octavia.Template.GetDefaultRouteAnnotations undefined (type *"github.com/openstack-k8s-operators/octavia-operator/api/v1beta1".OctaviaSpecCore has no field or method GetDefaultRouteAnnotations)
Did you mean to add the method to the OctaviaSpecCore
struct instead of OctaviaAPISpecCore
?
af27a74
to
d06a65b
Compare
PR needs rebase. 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. |
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
d06a65b
to
df64f5b
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fernandoroyosanchez 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 |
@fernandoroyosanchez: The following tests 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. |
Closed by error after rebasing discarding the changes...new one here #1175 |
This patch allows Octavia to set its route annotations.
Depends-On: openstack-k8s-operators/octavia-operator#403