ingress-nginx
ingress-nginx copied to clipboard
Admission webhooks vol add
What this PR does / why we need it:
This change helps add extraVolumes and extraVolumeMounts for the AdmissionsWebhooks Job-Patch createSecret and patchwebhook Jobs. Currently if automountServiceAccountToken is set to false in both the jobs, the jobs will fail. That was our initial issue. By merging the current PR, it provides an approach to manually add extraVolumes and extraVolumeMounts so that the jobs run smoothly.
This PR helps resolve Issue: https://github.com/kubernetes/ingress-nginx/issues/13031.
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] CVE Report (Scanner found CVE and adding report)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation only
Which issue/s this PR fixes
How Has This Been Tested?
We had tested this in our local and dev Kubernetes clusters. We manually downloaded the latest HELM charts and applied these changes and tested.
We had tested this in our local and dev K8s cluster environments.
Currently if automountServiceAccountToken is set to false in both the jobs, the jobs will fail. That was our initial issue. By merging the current PR, it provides an approach to manually add extraVolumes and extraVolumeMounts so that the jobs run smoothly.
Checklist:
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I've read the CONTRIBUTION guide
- [x] I have added unit and/or e2e tests to cover my changes.
- [ ] All new and existing tests passed.