famous-kite-69533
03/23/2020, 12:10 PMk8s.helm.v2.Chart(...)
but even with v2 Pulumi gives me skipping unknown hook: "crd-install"
. How can I ensure the CRDs are installed? I can't find a setting or something like that in the docs. Thanks!acoustic-leather-88378
03/23/2020, 12:25 PMChart
resource basically just does a helm template
(see https://github.com/pulumi/pulumi-kubernetes/blob/de362a8aa0a039257d6d8235f379c11559ee5cf1/pkg/gen/nodejs-templates/helm/v2/helm.ts#L121), the CRD hook never actually runs. I.e. helm install
is never really called/used...
The warning message is therefore sort of expected.
I had to get around this by installing the local CRD's (after unpacking the chart) manually before installing the Chart.
Although, I am also just starting out, so perhaps there is a better way...famous-kite-69533
03/23/2020, 12:27 PMacoustic-leather-88378
03/23/2020, 12:28 PMfamous-kite-69533
03/23/2020, 12:29 PMacoustic-leather-88378
03/23/2020, 12:32 PM// Install the CRD's manually
new k8s.yaml.ConfigGroup("postgres-operator-crds", {
files: [nodepath.join("<name of chart>/crds", "*.yaml")],
});
or something similar. Directory is cleaned up afterwards...famous-kite-69533
03/23/2020, 12:42 PM<https://vmware-tanzu.github.io/helm-charts/velero/velero-2.9.4.tgz>
gives me a not found<https://vmware-tanzu.github.io/helm-charts>
is the repo, velero
is the chart and 2.9.4
is the versionacoustic-leather-88378
03/23/2020, 3:29 PMfamous-kite-69533
03/25/2020, 6:57 PMcrdValues
to load the values file. However I would like to override some of those settings (such as for logical backups), so I would like to merge the values-crd.yaml file and my custom settings. How can I do that? I am totally new to Typescript and I am fighting with it 😄acoustic-leather-88378
03/25/2020, 7:17 PMcrdValues
just create the CRD's definitions here https://github.com/zalando/postgres-operator/tree/master/charts/postgres-operator/crds
They should not be modifiedfamous-kite-69533
03/25/2020, 7:18 PMacoustic-leather-88378
03/25/2020, 7:18 PMhelm template --values values-crd.yml
(see https://github.com/zalando/postgres-operator/blob/master/charts/postgres-operator/values-crd.yaml)famous-kite-69533
03/25/2020, 7:19 PMacoustic-leather-88378
03/25/2020, 7:19 PMfamous-kite-69533
03/25/2020, 7:19 PMacoustic-leather-88378
03/25/2020, 7:20 PMvalues-crd.yml
in your current directory or a directory within your Pulumi program and make the necessary changes and then use that file in that methodfamous-kite-69533
03/25/2020, 7:20 PMacoustic-leather-88378
03/25/2020, 7:22 PMvalues.yml
based on https://github.com/pulumi/pulumi-kubernetes/blob/0e5ea9fb3117f28b9e9bd9d46dd4e91a503268cd/pkg/gen/nodejs-templates/helm/v2/helm.ts#L175-L179famous-kite-69533
03/25/2020, 7:22 PMacoustic-leather-88378
03/25/2020, 7:23 PMfamous-kite-69533
03/25/2020, 7:23 PMacoustic-leather-88378
03/25/2020, 7:24 PMfamous-kite-69533
03/25/2020, 7:24 PMacoustic-leather-88378
03/25/2020, 7:25 PMfamous-kite-69533
03/25/2020, 7:25 PMacoustic-leather-88378
03/25/2020, 7:25 PMfamous-kite-69533
03/25/2020, 7:32 PM