stale-answer-34162
11/08/2023, 1:04 PMkubernetes:rbac.authorization.k8s.io/v1:ClusterRole (chart-ingress-nginx-mongodb-admission):
warning: This resource contains Helm hooks that are not currently supported by Pulumi. The resource will be created, but any hooks will not be executed. Hooks support is tracked at <https://github.com/pulumi/pulumi-kubernetes/issues/555> -- This warning can be disabled by setting the PULUMI_K8S_SUPPRESS_HELM_HOOK_WARNINGS environment variable
charts.forEach((chart) => {
new helm.v3.Chart(
`chart-${chart.name}-${namespaceName}`,
{
namespace: namespaceName,
chart: chart.name,
fetchOpts: { repo: chart.repo },
values: load(readFileSync(`src/charts/system/${chart.name}/${chart.file}`, 'utf8')) as Input<any>,
},
{ provider: k8sProvider, dependsOn: [eksCluster, eksNodeGroup, namespace] },
)
})
steep-toddler-94095
11/08/2023, 5:30 PMhelm.v3.Release
instead of Chart
stale-answer-34162
11/08/2023, 5:30 PMsteep-toddler-94095
11/08/2023, 5:32 PMChart
. the difference is Chart
just applies the evaluated yaml, whereas Release
basically does helm install
so you get all the features of Helm with your installationstale-answer-34162
11/08/2023, 5:32 PMsteep-toddler-94095
11/08/2023, 5:33 PMRelease
instead of Chart
. So change new helm.v3.Chart(
to new helm.v3.Release(
stale-answer-34162
11/08/2023, 5:34 PMsteep-toddler-94095
11/08/2023, 5:38 PMdry-keyboard-94795
11/08/2023, 6:12 PMstale-answer-34162
11/08/2023, 7:59 PMpulumi.all([eksCluster, eksNodeGroup]).apply(([eksCluster, eksNodeGroup]) => {
const datadogRelease = new helm.v3.Release(
'release-datadog',
{
namespace: 'datadog',
chart: 'datadog',
repositoryOpts: { repo: '<https://helm.datadoghq.com>' },
createNamespace: true,
},
{ provider: k8sProvider },
)
})
dry-keyboard-94795
11/08/2023, 8:01 PM.apply
, as pulumi can't always track the resource.
Given you're not using the inputs, you can just unwrap it and it'll workstale-answer-34162
11/08/2023, 8:04 PMdry-keyboard-94795
11/08/2023, 8:08 PMstale-answer-34162
11/08/2023, 8:08 PM