Closed spali closed 3 years ago
maybe additional information that could have an impact?:
I do not have the KUBECONFIG
variable set, nor anything else special. I just have the ~/.kube/config
with admin access to the cluster. So helm
and kubectl
can access without further configuration
sorry was a bit unfair ;)
I compared to helm install
. But the plugin is using helm template
.
With helm template I need to specify the api also manually with --api-versions networking.k8s.io/v1/IngressClass
Which I can also do in the chartInflator.yaml
with
extraArgs:
- "--api-versions=networking.k8s.io/v1/IngressClass"
That the plugin is using helm command template
makes sense due it doesn't handle deployment by design.
Maybe for the use-case to directly deploy and not only generate it would make sense to offer an option to use install
together with --dry-run
to not always have to specify the supported api's as extraArgs
.
But that is a feature request ;) so closing this for documentation.
Maybe for the use-case to directly deploy and not only generate it would make sense to offer an option to use
install
together with--dry-run
to not always have to specify the supported api's asextraArgs
. But that is a feature request ;) so closing this for documentation.
extraArgs
seems to have been removed.
How can you pass api-versions now?
To everyone stumbling across this issue and still looking for a solution. The HelmChartInflationGenerator nowadays supports a dedicated apiVersions
parameter that allows you to provide the API versions you want to use.
Example:
namespace: foo
helmCharts:
- name: bar
releaseName: bar
...
apiVersions:
- apiregistration.k8s.io/v1
...
Describe the bug
Template checking Capabilities.APIVersions fails. It seems that helm via HelmChartInflationGenerator does not get the cluster api's available.
Files that can reproduce the issue
kustomization.yaml
chartInflator.yaml
values_ingress.yaml
Expected output
helm chart yaml
Actual output
Kustomize version
Helm version
Platform
Windows 10 WSL2
Additional context
helm directly works:
cluster:
Should be anything to reproduce it, but let me know if you need something else.