-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Chart: Add activeDeadlineSeconds
.
#13497
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
Conversation
Hi @hrdkmshra. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not set this by default and tell your PR "optional". 🙂
I'd suggest only rendering this if the value is set to something greater than 0. Otherwise you're not only adding a new property, but also change existing behavior. IIRC tools like Helm already timeout properly and with your change it might "succeed" even though the job didn't.
Please also update the documentation (helm-docs
) and add unit tests in the tests/
directory.
/triage accepted |
activeDeadlineSeconds
parameter configuration for admission webhook jobscontroller.admissionWebhooks.*Job.activeDeadlineSeconds
.
controller.admissionWebhooks.*Job.activeDeadlineSeconds
.activeDeadlineSeconds
.
Understood :)) ,I've updated the PR with correct wording.
I have followed the suggested approach. To only render, if greater than 0.
Thank you for pointing this out, |
charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased your branch on top of main
. Apart from that: LGTM!
/lgtm
The linter errors are my bad, gonna fix them for you. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Gacko, hrdkmshra 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 |
The failing tests are not your fault. We are relying on an external service for resolving hostnames to private IPs and this service sometimes isn't 100% reliable. |
What this PR does / why we need it:
activeDeadlineSeconds : 0
iningress-nginx/charts/ingress-nginx/values.yaml
.activeDeadlineSeconds
is only included in the Job spec when explicitly set greater than 0.ingress-nginx/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-createSecret_test.yaml
&ingress-nginx/charts/ingress-nginx/tests/admission-webhooks/job-patch/job-patchWebhook_test.yaml
helm-docs
#13000
Types of changes
Which issue/s this PR fixes
fixes #13000
How Has This Been Tested?
cd ingress-nginx/charts/ingress-nginx
Checklist: