Skip to content

feat: Enhance Image Handling and Add Private Registry Support in Vault Helm Chart #299

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

JuryA
Copy link
Contributor

@JuryA JuryA commented Jun 16, 2025

Overview

This pull request introduces significant updates to the Vault Helm chart, focusing on enhancing image handling, improving configuration flexibility, and adding support for private registries. The most important changes include the addition of helper templates for consistent image rendering, updates to YAML files to support imagePullSecrets, and new configuration options in values.yaml for global settings.

Enhancements to image handling:

  • vault/templates/_images.tpl: Added helper templates (vault.images.image, vault.images.renderPullSecrets, and vault.images.version) to standardize Docker image rendering, including handling tags, digests, and registry secrets.
  • vault/templates/_helpers.tpl: Introduced the vault.imagePullSecrets template to dynamically generate Docker registry secret names.

Updates to Kubernetes manifests:

Configuration improvements:

  • vault/values.yaml: Added global configuration options for imagePullSecrets and imageRegistry, enabling better support for private registries and overriding registry settings.

These changes collectively improve the flexibility, maintainability, and compatibility of the Vault Helm chart, especially in environments requiring private registry support.

Fixes #275 (partly)

Notes for reviewer

Signed-off-by: Jiří Altman [email protected]

@github-actions github-actions bot added the size/M Denotes a PR that changes 100-499 lines label Jun 16, 2025
@JuryA JuryA changed the title Enhance Image Handling and Add Private Registry Support in Vault Helm Chart feat: Enhance Image Handling and Add Private Registry Support in Vault Helm Chart Jun 16, 2025
@JuryA JuryA marked this pull request as ready for review June 16, 2025 10:28
@Copilot Copilot AI review requested due to automatic review settings June 16, 2025 10:28
@JuryA JuryA requested a review from a team as a code owner June 16, 2025 10:28
@JuryA JuryA requested review from sagikazarmark and removed request for a team June 16, 2025 10:28
Copilot

This comment was marked as outdated.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances image handling and adds support for private container registries in the Vault Helm chart by introducing new helper templates and configuration options. Key changes include:

  • New helper templates for standardizing image rendering and generating image pull secret references in multiple manifests.
  • Updates to Kubernetes manifests (statefulset, secret-cleanup, tests) to use these templates and support private registry configurations.
  • Expanded configuration options in values.yaml and corresponding documentation updates in the README.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vault/values.yaml Added new global and image-specific pull secret and registry options with expanded comments.
vault/templates/tests/test-vault-status.yaml Updated test manifest to use new helper templates for image and pull secret handling.
vault/templates/statefulset.yaml Revised container image and pull secret definitions to utilize new helper templates.
vault/templates/secret-cleanup.yaml Modified image and pull secret configuration to leverage helper templates.
vault/templates/_images.tpl Introduced helper templates to build image names, versions, and pull secret renderings.
vault/templates/_helpers.tpl Added a new template for rendering Docker image pull secrets dynamically.
vault/README.md Updated configuration table to include new parameters and adjust parameter ordering.
Comments suppressed due to low confidence (2)

vault/values.yaml:9

  • Consider expanding the comments for 'imagePullSecrets' (and similarly for 'imageRegistry') with a clear example usage to help users understand the expected format and use cases.
  imagePullSecrets: []

vault/README.md:146

  • [nitpick] Ensure that the descriptions in the README clearly differentiate between global image pull secret configuration and image-level pull secret settings, and provide guidance on how they interact.
| `global.imagePullSecrets` | list | `[]` | Specify image pull secrets to use for pulling images from private registries |

@JuryA
Copy link
Contributor Author

JuryA commented Jun 19, 2025

@sagikazarmark Have you had a chance to review my code request? Thank you! 😎

@csatib02 csatib02 moved this to 👀 In review in Community contributions Jun 23, 2025
@csatib02 csatib02 added the kind/enhancement Categorizes issue or PR as related to an improvement. label Jun 23, 2025
JuryA and others added 10 commits July 3, 2025 20:50
…age.registry`) for Vault, unsealer, secret-cleanup Job, and StatsD exporter

Signed-off-by: Jiří Altman <[email protected]>
…d (`image.pullSecrets`) for Vault, unsealer, secret-cleanup Job, and StatsD exporter

Signed-off-by: Jiří Altman <[email protected]>
…l secrets handling

- compatible s Bitnami's common `_image.tpl`

Signed-off-by: Jiří Altman <[email protected]>
…t, and test-vault-status templates

Signed-off-by: Jiří Altman <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jiří Altman <[email protected]>
- Add new parameters for affinity, certManager, extra containers, image pull secrets, and more.
- Enhance documentation for better clarity on configuration options.

Signed-off-by: Jiří Altman <[email protected]>
@JuryA JuryA force-pushed the image-enhancement branch from ecc9bc9 to 9405ea5 Compare July 3, 2025 18:59
@JuryA
Copy link
Contributor Author

JuryA commented Jul 5, 2025

@sagikazarmark Could you please prioritise reviewing this? It has already passed the initial classification, but I've been waiting for feedback for some time. I'm about to leave on an extended trip without computer access, so I'd really appreciate it if we could get this finalised beforehand. Otherwise, it risks getting stuck indefinitely, which I'd like to avoid.

/cc @csatib02

@csatib02 csatib02 requested a review from ramizpolic July 14, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Categorizes issue or PR as related to an improvement. size/M Denotes a PR that changes 100-499 lines
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

Missing Support for Configurable imagePullSecrets and securityContext in Helm Chart
2 participants