Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

chore(nginx-ingress): fix hpa issue #21361

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

askhalil
Copy link
Contributor

This will fix the issue where the HPA isn't able to read the metrics even when the resources of the controllers are set because the resources of the default-backend aren't set and both are using the same selectors

@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 10, 2020
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 10, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @askhalil. Thanks for your PR.

I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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/test-infra repository.

@askhalil askhalil force-pushed the nginx-ingress-fix branch from 7c14acb to 3930377 Compare March 10, 2020 13:48
@helm-bot helm-bot added the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label Mar 10, 2020
@ChiefAlexander
Copy link
Collaborator

Selector labels on deployments are immutable and cannot be updated. This would be a major breaking change. Currently, there is work in progress to move this chart into the ingress-nginx repo and we are taking this opportunity to make breaking changes like this. Feel free to add this change there if it is not already fixed.

@askhalil
Copy link
Contributor Author

@ChiefAlexander what if we make it as optional so people who will be using the chart for the first time they have the ability to allow it.

@ChiefAlexander
Copy link
Collaborator

That would be fine by me
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 10, 2020
@askhalil askhalil force-pushed the nginx-ingress-fix branch from 3930377 to f6e868a Compare March 10, 2020 17:59
@askhalil
Copy link
Contributor Author

@ChiefAlexander I have updated the PR accordingly, so please have a look and approve it if it is okay

@askhalil askhalil force-pushed the nginx-ingress-fix branch from f6e868a to ef88bd3 Compare March 10, 2020 18:15
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 10, 2020
Copy link
Collaborator

@ChiefAlexander ChiefAlexander left a comment

Choose a reason for hiding this comment

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

This looks good. Other than the comment that I left can you also update the readme for this change. Once those two are resolved i'm good with this change.

@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.33.5
version: 1.33.6
Copy link
Collaborator

Choose a reason for hiding this comment

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

As we have added a feature to the chart please bump the minor version.

Suggested change
version: 1.33.6
version: 1.34.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ChiefAlexander I have addressed both of you comments but please have a look at the readme file after the upadte

@askhalil askhalil force-pushed the nginx-ingress-fix branch from ef88bd3 to 86796c9 Compare March 15, 2020 14:36
Signed-off-by: Abdulrahman Khalil <a.skhalil93@gmail.com>
@askhalil askhalil force-pushed the nginx-ingress-fix branch from 86796c9 to e7f38f8 Compare March 15, 2020 14:42
@ChiefAlexander
Copy link
Collaborator

/retest

@ChiefAlexander
Copy link
Collaborator

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 17, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: askhalil, ChiefAlexander

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 Mar 17, 2020
@k8s-ci-robot k8s-ci-robot merged commit 7a0bbcd into helm:master Mar 17, 2020
@askhalil askhalil deleted the nginx-ingress-fix branch March 17, 2020 21:21
@otterley
Copy link

Unfortunately this introduced a regression that broke the connection between the controller service and the pods (the selector no longer matches). Can you please revert this change or fix forward? Also, please add a regression test so that this does not recur.

fowlie pushed a commit to fowlie/charts that referenced this pull request Mar 20, 2020
Signed-off-by: Abdulrahman Khalil <a.skhalil93@gmail.com>
@dennybaa
Copy link
Contributor

This is a regression. Breaks service monitor for instance #21873. Only half of the component labels have been changed why? If to change then to change all labels... Moreover app.kubernetes.io/component breaks prometheus and prometheus operator servicemonitor.

irlevesque pushed a commit to quantopian/charts that referenced this pull request Jul 13, 2020
Signed-off-by: Abdulrahman Khalil <a.skhalil93@gmail.com>
includerandom pushed a commit to includerandom/helm_charts that referenced this pull request Jul 19, 2020
Signed-off-by: Abdulrahman Khalil <a.skhalil93@gmail.com>
li-adrienloiseau pushed a commit to li-adrienloiseau/charts that referenced this pull request Jul 29, 2020
Signed-off-by: Abdulrahman Khalil <a.skhalil93@gmail.com>
Signed-off-by: Adrien Loiseau <adrien.loiseau@logic-immo.com>
mmingorance-dh pushed a commit to mmingorance-dh/charts that referenced this pull request Aug 28, 2020
Signed-off-by: Abdulrahman Khalil <a.skhalil93@gmail.com>
Signed-off-by: Miguel Mingorance <miguel.mingorance@deliveryhero.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. ok-to-test size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants