Skip to content

Commit

Permalink
Support manila setting route annotations
Browse files Browse the repository at this point in the history
This patch allows Manila to set its route annotations.

Depends-On: openstack-k8s-operators/manila-operator#282
  • Loading branch information
Akrog authored and abays committed Jun 10, 2024
1 parent 8f11476 commit bbb3c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/core/v1beta1/openstackcontrolplane_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ func (r *OpenStackControlPlane) DefaultServices() {

// Manila
r.Spec.Manila.Template.Default()
initializeOverrideSpec(&r.Spec.Manila.APIOverride.Route, true)
r.Spec.Manila.Template.SetDefaultRouteAnnotations(r.Spec.Manila.APIOverride.Route.Annotations)

// Memcached
for key, template := range r.Spec.Memcached.Templates {
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/openstackoperator_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ var _ = Describe("OpenStackOperator controller", func() {
Expect(OSCtlplane.Spec.Glance.APIOverride[name].Route.Annotations).Should(HaveKeyWithValue("haproxy.router.openshift.io/timeout", "60s"))
Expect(OSCtlplane.Spec.Glance.APIOverride[name].Route.Annotations).Should(HaveKeyWithValue("api.glance.openstack.org/timeout", "60s"))
}
Expect(OSCtlplane.Spec.Manila.APIOverride.Route.Annotations).Should(HaveKeyWithValue("haproxy.router.openshift.io/timeout", "60s"))
Expect(OSCtlplane.Spec.Manila.APIOverride.Route.Annotations).Should(HaveKeyWithValue("api.manila.openstack.org/timeout", "60s"))
})

It("should create selfsigned issuer and public+internal CA and issuer", func() {
Expand Down

0 comments on commit bbb3c66

Please sign in to comment.