kubernetes-sigs / kustomize

Customization of kubernetes YAML configurations
Apache License 2.0
10.7k stars 2.22k forks source link

Allow using Helm charts as bases and values.yaml file patching in overlays #5714

Open pentago opened 2 weeks ago

pentago commented 2 weeks ago

Eschewed features

What would you like to have added?

I'd like to have ability to use Helm charts as regular base and allow patching of that base with different values.yaml as patches in overlays, like this:

.
├── base
│   ├── Chart.yaml
│   ├── kustomization.yaml
│   └── values.yaml
└── environments
    ├── dev
    │   ├── kustomization.yaml
    │   └── prod-values.yaml
    ├── prod
    │   ├── kustomization.yaml
    │   └── prod-values.yaml
    └── stage
        ├── kustomization.yaml
        └── stage-values.yaml

Why is this needed?

Something like this would make Helm charts first-class citizens in Kustomize projects and allow for uniform patching to standard Kubernetes YAML manifests.

Can you accomplish the motivating task without this feature, and if so, how?

Only by using a lot of duplication like using full values.yaml for each overlay.

What other solutions have you considered?

Not aware of anything else doing this and would love to get this thing done with only Kustomize.

Anything else we should know?

No response

Feature ownership

k8s-ci-robot commented 2 weeks ago

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.