Skip to content

Commit 675f136

Browse files
Merge pull request #1223 from Deydra71/keystone-httpd-config
Add keystone configurable API Timeout
2 parents 280c2ab + 5f4253a commit 675f136

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apis/core/v1beta1/openstackcontrolplane_webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ func (r *OpenStackControlPlane) DefaultServices() {
771771
r.Spec.Keystone.Template = &keystonev1.KeystoneAPISpecCore{}
772772
}
773773
r.Spec.Keystone.Template.Default()
774+
initializeOverrideSpec(&r.Spec.Keystone.APIOverride.Route, true)
775+
r.Spec.Keystone.Template.SetDefaultRouteAnnotations(r.Spec.Keystone.APIOverride.Route.Annotations)
774776
}
775777

776778
// Manila

tests/functional/ctlplane/openstackoperator_controller_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ var _ = Describe("OpenStackOperator controller", func() {
594594
// Expect(OSCtlplane.Spec.Barbican.APIOverride.Route).Should(Not(BeNil()))
595595
// Expect(OSCtlplane.Spec.Barbican.APIOverride.Route.Annotations).Should(HaveKeyWithValue("haproxy.router.openshift.io/timeout", "90s"))
596596
// Expect(OSCtlplane.Spec.Barbican.APIOverride.Route.Annotations).Should(HaveKeyWithValue("api.barbican.openstack.org/timeout", "90s"))
597+
Expect(OSCtlplane.Spec.Keystone.APIOverride.Route).Should(Not(BeNil()))
598+
Expect(OSCtlplane.Spec.Keystone.APIOverride.Route.Annotations).Should(HaveKeyWithValue("haproxy.router.openshift.io/timeout", "60s"))
599+
Expect(OSCtlplane.Spec.Keystone.APIOverride.Route.Annotations).Should(HaveKeyWithValue("api.keystone.openstack.org/timeout", "60s"))
597600
})
598601

599602
It("should create selfsigned issuer and public+internal CA and issuer", func() {
@@ -875,6 +878,9 @@ var _ = Describe("OpenStackOperator controller", func() {
875878
// Expect(OSCtlplane.Spec.Barbican.APIOverride.Route).Should(Not(BeNil()))
876879
// Expect(OSCtlplane.Spec.Barbican.APIOverride.Route.Annotations).Should(HaveKeyWithValue("haproxy.router.openshift.io/timeout", "90s"))
877880
// Expect(OSCtlplane.Spec.Barbican.APIOverride.Route.Annotations).Should(HaveKeyWithValue("api.barbican.openstack.org/timeout", "90s"))
881+
Expect(OSCtlplane.Spec.Keystone.APIOverride.Route).Should(Not(BeNil()))
882+
Expect(OSCtlplane.Spec.Keystone.APIOverride.Route.Annotations).Should(HaveKeyWithValue("haproxy.router.openshift.io/timeout", "60s"))
883+
Expect(OSCtlplane.Spec.Keystone.APIOverride.Route.Annotations).Should(HaveKeyWithValue("api.keystone.openstack.org/timeout", "60s"))
878884
})
879885

880886
It("should create selfsigned issuer and public, internal, libvirt and ovn CA and issuer", func() {

0 commit comments

Comments
 (0)