Skip to content
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

pass arguments down to the helm chart inflator #5829

Open
wibed opened this issue Jan 3, 2025 · 2 comments
Open

pass arguments down to the helm chart inflator #5829

wibed opened this issue Jan 3, 2025 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@wibed
Copy link

wibed commented Jan 3, 2025

What happened?

i want to be able to pass arguments, such as --set installCRDs=false down to the inflator from within the command:
kustomize build --enable-helm --load-restrictor=LoadRestrictionsNone . | kubectl apply -f -

how would i do this?

What did you expect to happen?

to find a solution

How can we reproduce it (as minimally and precisely as possible)?

it seems not to be possible

Expected output

Actual output

Kustomize version

v5.5.0

Operating system

MacOS

@wibed wibed added the kind/bug Categorizes issue or PR as related to a bug. label Jan 3, 2025
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 3, 2025
@k8s-ci-robot
Copy link
Contributor

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. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@isarns
Copy link
Contributor

isarns commented Mar 4, 2025

You can pass Helm chart value overrides directly in your Kustomize manifest using the valuesInline field. This method lets you declare inline values that will be applied during the Helm chart rendering process, removing the need to append flags like --set installCRDs=false on the command line.

For example, to disable the installation of CRDs for the Kafka chart, you can configure it as follows:

helmCharts:
  - name: kafka
    releaseName: kafka
    namespace: kafka
    repo: https://charts.bitnami.com/bitnami
    valuesInline:
      installCRDs: false

When you run:

kustomize build --enable-helm --load-restrictor=LoadRestrictionsNone . | kubectl apply -f -

Kustomize will process the inline values and pass them to the inflator, ensuring that the Helm chart is rendered with installCRDs set to false. This approach keeps your configuration fully declarative and easier to manage, especially as your deployments grow more complex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants