-
Notifications
You must be signed in to change notification settings - Fork 125
Description
Problem description
i’ve tried to install ingress-controller using helm.v3.Chart and it failed: it turns out it was because admission createSecret job didn’t start, -- resource was not created by Pulumi. I’ve tried to install it with helm CLI and it went fine, — “admission createSecret” job appeared and completed
I’ve cloned those charts and played around with it locally — if I remove "helm.sh/hook": pre-install,pre-upgrade from metadata/annotations in Job template than Pulumi creates the Job. It looks like those hooks are not supported properly: I got this problem while doing clean install.
After short exploration of Pulumi code i've found that helm template command is used to render YAML. However, invocation of helm template from CLI gives me valid YAML with jobs, i.e. if I apply it from Pulumi -- it does create those Jobs and other missing resources -- which is actually my workaround for this situation.
Errors & Logs
Affected product version(s)
pulumi nodejs
"@pulumi/kubernetes": "2.6.1",
"@pulumi/pulumi": "2.10.2",
Reproducing the issue
const nginxController = new k8s.helm.v3.Chart("nginx-ctrl", {
version: "3.3.0",
chart: "ingress-nginx",
fetchOpts: {
repo: "https://kubernetes.github.io/ingress-nginx"
},
values: {
controller: {
service: {
annotations: {
"external-dns.alpha.kubernetes.io/hostname": "mydomain.net"
},
externalTrafficPolicy: 'Local',
},
config: {
"use-forwarded-headers": 'true'
}
}
}
});