Skip to content
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

Add configurable API Timeout #515

Merged

Conversation

Deydra71
Copy link
Contributor

@Deydra71 Deydra71 commented Dec 6, 2024

...to allow configure timeouts for HAProxy and Apache.

Jira: OSPRH-10960

@Deydra71 Deydra71 requested a review from stuggi December 6, 2024 12:51
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Dec 6, 2024
Depends-On: openstack-k8s-operators/keystone-operator#515

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Dec 6, 2024
Depends-On: openstack-k8s-operators/keystone-operator#515

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
@@ -167,3 +167,25 @@ func (r *KeystoneAPI) ValidateDelete() (admission.Warnings, error) {
// TODO(user): fill in your validation logic upon object deletion.
return nil, nil
}

// SetDefaultRouteAnnotations sets HAProxy timeout values of the route
func (spec *KeystoneAPISpecCore) SetDefaultRouteAnnotations(annotations map[string]string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What calls this function? I don't see it being called explicitly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const haProxyAnno = "haproxy.router.openshift.io/timeout"
// Use a custom annotation to flag when the operator has set the default HAProxy timeout
// With the annotation func determines when to overwrite existing HAProxy timeout with the APITimeout
const keystoneAnno = "api.Keystone.openstack.org/timeout"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keystone -> keystone

@@ -167,3 +167,25 @@ func (r *KeystoneAPI) ValidateDelete() (admission.Warnings, error) {
// TODO(user): fill in your validation logic upon object deletion.
return nil, nil
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...to allow configure the timeouts for HAProxy and Apache.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
@karelyatin
Copy link
Contributor

/lgtm

Copy link
Contributor

@xek xek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

openshift-ci bot commented Jan 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Deydra71, stuggi, xek

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit ece4d21 into openstack-k8s-operators:main Jan 13, 2025
6 checks passed
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Jan 15, 2025
Depends-On: openstack-k8s-operators/keystone-operator#515

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Deydra71 added a commit to Deydra71/openstack-operator that referenced this pull request Jan 21, 2025
Depends-On: openstack-k8s-operators/keystone-operator#515

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants