kyverno / kyverno

Cloud Native Policy Management
https://kyverno.io
Apache License 2.0
6.02k stars 943 forks source link

[Feature] Add a helm template that creates the imagePullSecret #12002

Open docbyte86 opened 2 weeks ago

docbyte86 commented 2 weeks ago

Problem Statement

I need to create the namespace manually and add the secret to the namespace.

Solution Description

A secret for the imagePullSecrets will be created during installation of the helm chart.

Example:

https://github.com/longhorn/longhorn/blob/master/chart/templates/registry-secret.yaml

privateRegistry:
  # -- Setting that allows you to create a private registry secret.
  createSecret: ~
  # -- URL of a private registry. When unspecified, Longhorn uses the default system registry.
  registryUrl: ~
  # -- User account used for authenticating with a private registry.
  registryUser: ~
  # -- Password for authenticating with a private registry.
  registryPasswd: ~
  # -- Kubernetes secret that allows you to pull images from a private registry. This setting applies only when creation of private registry secrets is enabled. You must include the private registry name in the secret name.
  registrySecret: ~

Alternatives

No response

Additional Context

No response

Slack discussion

No response

Research

welcome[bot] commented 2 weeks ago

Thanks for opening your first issue here! Be sure to follow the issue template!

RehanFazal77 commented 2 weeks ago

Hi @docbyte86 , I’d like to work on this issue and contribute the Helm template for automating imagePullSecret creation. My Plan:

Before I submit the PR, I’d like to confirm: Does this approach align with your vision for the solution? Are there any specific design or security considerations I should address? I’ll start drafting the changes and share a PR for review shortly. Let me know if there’s anything I should adjust upfront!

docbyte86 commented 2 weeks ago

Hi @RehanFazal77 , that sounds fine. Thank your very much.

kushal9897 commented 1 week ago

hi @docbyte86 , I’d like to work on this issue and contribute the Helm template for automating imagePullSecret creation.