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

[octavia-ingress-controller] Update listener timeouts #2468

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

dulek
Copy link
Contributor

@dulek dulek commented Nov 6, 2023

What this PR does / why we need it:
This commit makes sure that listener timeouts are updated when their values are changed on the Ingress resource annotations.

cc @sakshi-1505

Which issue this PR fixes(if applicable):
fixes #2243

Special notes for reviewers:

Release note:

NONE

This commit makes sure that listener timeouts are updated when their
values are changed on the Ingress resource annotations.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 6, 2023
@dulek
Copy link
Contributor Author

dulek commented Nov 6, 2023

This extends #2435 a bit.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 6, 2023
@dulek
Copy link
Contributor Author

dulek commented Nov 6, 2023

@pierreprinetti and @jichenjc, you might want to take a look.

@jichenjc
Copy link
Contributor

jichenjc commented Nov 7, 2023

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 7, 2023
@@ -367,7 +367,11 @@ func (os *OpenStack) EnsureListener(name string, lbID string, secretRefs []strin
} else {
if len(listenerAllowedCIDRs) > 0 && !reflect.DeepEqual(listener.AllowedCIDRs, listenerAllowedCIDRs) {
_, err := listeners.Update(os.Octavia, listener.ID, listeners.UpdateOpts{
AllowedCIDRs: &listenerAllowedCIDRs,
AllowedCIDRs: &listenerAllowedCIDRs,
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the timeouts be updated when there is a change in the timeouts and not when allowedCIDRs has changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MaysaMacedo: Whoops, I missed this, obviously valid comment. It's fixed in #2518.

Copy link
Member

@zetaab zetaab left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 28, 2023
@k8s-ci-robot k8s-ci-robot merged commit 858a2b0 into kubernetes:master Dec 28, 2023
dulek added a commit to shiftstack/cloud-provider-openstack that referenced this pull request Jan 9, 2024
PR kubernetes#2468 used an incorrect condition when updating the listener timeout
values and only updates them when listener's allowedCIDRs are updated.
This commit fixes this by making sure timeout values are checked too.
dulek added a commit to shiftstack/cloud-provider-openstack that referenced this pull request Jan 9, 2024
PR kubernetes#2468 used an incorrect condition when updating the listener timeout
values and only updates them when listener's allowedCIDRs are updated.
This commit fixes this by making sure timeout values are checked too.
k8s-ci-robot pushed a commit that referenced this pull request Jan 31, 2024
PR #2468 used an incorrect condition when updating the listener timeout
values and only updates them when listener's allowedCIDRs are updated.
This commit fixes this by making sure timeout values are checked too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Octavia-ingress-controller] Add configurable listener timeouts through annotations
5 participants