feat(charts): add hostAliases support#5866
Conversation
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>
WalkthroughAdds optional hostAliases support to the external-secrets Helm chart: new values and schema entries, conditional hostAliases rendering in controller, webhook, and cert-controller Deployment templates, updated defaults and README, and tests verifying presence, fallback, and precedence behavior. Changes
Possibly related issues
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Any news here? Or am I missing something? |
|
Sorry, I was away for a while. :) I'll try and get to this on Friday. |
Skarlso
left a comment
There was a problem hiding this comment.
Actually, this looks okay to me. Well done.
|
/ok-to-test sha=42e626de2cacf90c47e759dbcbf3e451a7af60e2 |
|
|
@Skarlso no worries! Thanks for merging |
…2 (#3782) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [external-secrets/external-secrets](https://github.com/external-secrets/external-secrets) | major | `v1.3.2` → `v2.0.0` | --- ### Release Notes <details> <summary>external-secrets/external-secrets (external-secrets/external-secrets)</summary> ### [`v2.0.0`](https://github.com/external-secrets/external-secrets/releases/tag/v2.0.0) [Compare Source](external-secrets/external-secrets@v1.3.2...v2.0.0) ### BREAKING CHANGE Please note that this release removed two of the unsupported and unmaintained providers Alibaba and Device42. Image: `ghcr.io/external-secrets/external-secrets:v2.0.0` Image: `ghcr.io/external-secrets/external-secrets:v2.0.0-ubi` Image: `ghcr.io/external-secrets/external-secrets:v2.0.0-ubi-boringssl` <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### General - chore: bump charts to 1.3.2 by [@​gusfcarvalho](https://github.com/gusfcarvalho) in [#​5923](external-secrets/external-secrets#5923) - feat(charts): add hostAliases support by [@​janlauber](https://github.com/janlauber) in [#​5866](external-secrets/external-secrets#5866) - chore: remove unmaintained secret stores by [@​Skarlso](https://github.com/Skarlso) in [#​5918](external-secrets/external-secrets#5918) - docs(infisical): document al provider auth methods by [@​varonix0](https://github.com/varonix0) in [#​5929](external-secrets/external-secrets#5929) - chore: Get validating webhook failurePolicy for Secretstore dynamically by [@​LochanRn](https://github.com/LochanRn) in [#​5605](external-secrets/external-secrets#5605) #### New Contributors - [@​LochanRn](https://github.com/LochanRn) made their first contribution in [#​5605](external-secrets/external-secrets#5605) **Full Changelog**: <external-secrets/external-secrets@v1.3.2...v2.0.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zLjYiLCJ1cGRhdGVkSW5WZXIiOiI0My4zLjYiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImltYWdlIl19--> Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/3782 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [external-secrets](https://github.com/external-secrets/external-secrets) | major | `1.3.2` → `2.0.0` | --- ### Release Notes <details> <summary>external-secrets/external-secrets (external-secrets)</summary> ### [`v2.0.0`](https://github.com/external-secrets/external-secrets/releases/tag/v2.0.0) [Compare Source](external-secrets/external-secrets@v1.3.2...v2.0.0) ### BREAKING CHANGE Please note that this release removed two of the unsupported and unmaintained providers Alibaba and Device42. Image: `ghcr.io/external-secrets/external-secrets:v2.0.0` Image: `ghcr.io/external-secrets/external-secrets:v2.0.0-ubi` Image: `ghcr.io/external-secrets/external-secrets:v2.0.0-ubi-boringssl` <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### General - chore: bump charts to 1.3.2 by [@​gusfcarvalho](https://github.com/gusfcarvalho) in [#​5923](external-secrets/external-secrets#5923) - feat(charts): add hostAliases support by [@​janlauber](https://github.com/janlauber) in [#​5866](external-secrets/external-secrets#5866) - chore: remove unmaintained secret stores by [@​Skarlso](https://github.com/Skarlso) in [#​5918](external-secrets/external-secrets#5918) - docs(infisical): document al provider auth methods by [@​varonix0](https://github.com/varonix0) in [#​5929](external-secrets/external-secrets#5929) - chore: Get validating webhook failurePolicy for Secretstore dynamically by [@​LochanRn](https://github.com/LochanRn) in [#​5605](external-secrets/external-secrets#5605) #### New Contributors - [@​LochanRn](https://github.com/LochanRn) made their first contribution in [#​5605](external-secrets/external-secrets#5605) **Full Changelog**: <external-secrets/external-secrets@v1.3.2...v2.0.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zLjYiLCJ1cGRhdGVkSW5WZXIiOiI0My4zLjYiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImNoYXJ0Il19--> Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/3788 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch> Co-authored-by: Gergely Bräutigam <skarlso777@gmail.com> Signed-off-by: Nattapong Ekudomsuk <nuttapong_mos@hotmail.com>
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch> Co-authored-by: Gergely Bräutigam <skarlso777@gmail.com> Signed-off-by: Nattapong Ekudomsuk <nuttapong_mos@hotmail.com>
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [external-secrets](https://github.com/external-secrets/external-secrets) | major | `1.3.2` → `2.0.0` | --- ### Release Notes <details> <summary>external-secrets/external-secrets (external-secrets)</summary> ### [`v2.0.0`](https://github.com/external-secrets/external-secrets/releases/tag/v2.0.0) [Compare Source](external-secrets/external-secrets@v1.3.2...v2.0.0) ### BREAKING CHANGE Please note that this release removed two of the unsupported and unmaintained providers Alibaba and Device42. Image: `ghcr.io/external-secrets/external-secrets:v2.0.0` Image: `ghcr.io/external-secrets/external-secrets:v2.0.0-ubi` Image: `ghcr.io/external-secrets/external-secrets:v2.0.0-ubi-boringssl` <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### General - chore: bump charts to 1.3.2 by [@​gusfcarvalho](https://github.com/gusfcarvalho) in [#​5923](external-secrets/external-secrets#5923) - feat(charts): add hostAliases support by [@​janlauber](https://github.com/janlauber) in [#​5866](external-secrets/external-secrets#5866) - chore: remove unmaintained secret stores by [@​Skarlso](https://github.com/Skarlso) in [#​5918](external-secrets/external-secrets#5918) - docs(infisical): document al provider auth methods by [@​varonix0](https://github.com/varonix0) in [#​5929](external-secrets/external-secrets#5929) - chore: Get validating webhook failurePolicy for Secretstore dynamically by [@​LochanRn](https://github.com/LochanRn) in [#​5605](external-secrets/external-secrets#5605) #### New Contributors - [@​LochanRn](https://github.com/LochanRn) made their first contribution in [#​5605](external-secrets/external-secrets#5605) **Full Changelog**: <external-secrets/external-secrets@v1.3.2...v2.0.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40LjAiLCJ1cGRhdGVkSW5WZXIiOiI0My40LjAiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://kubara.git.onstackit.cloud/STACKIT/kubara/pulls/283
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch> Co-authored-by: Gergely Bräutigam <skarlso777@gmail.com>



Problem Statement
The external-secrets Helm chart currently doesn't support adding custom hostAliases to pods, which is needed for DNS resolution in air-gapped environments or when custom hostname mappings are required.
Related Issue
#5865
Proposed Changes
Add support for
hostAliasesconfiguration in the Helm chart, allowing users to add custom entries to/etc/hostsfor all three deployments (controller, webhook, cert-controller).The implementation follows the existing pattern used for other pod-level configurations like
tolerationsandnodeSelector, supporting both:global.hostAliaseshostAliases,webhook.hostAliases, andcertController.hostAliasesFormat
PR title follows format:
feat(charts): add hostAliases supportChecklist
git commit --signoffmake helm.test(166 tests passed)make reviewable(can be done after PR creation if CI passes)Summary
Adds
hostAliasessupport to the Helm chart to allow adding custom entries to pod /etc/hosts (useful for air-gapped environments and custom hostname mappings).Changes
Configuration:
hostAliasesat global (global.hostAliases), root/controller (hostAliases), and component levels (webhook.hostAliases,certController.hostAliases).hostAliasesarrays and values.schema.json with newhostAliasesproperties.Templates:
hostAliasesblocks to controller (root deployment), webhook, and cert-controller deployment templates. Each uses component-level value with fallback toglobal.hostAliases.Testing:
Documentation:
hostAliasesoptions.