I’m using fetchOpts.repo to install helm charts ou...
# kubernetes
p
I’m using fetchOpts.repo to install helm charts out of custom repo’s, but i now have to install https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus which needs 2 repo’s so it can install dependencies. Any idea how to configure pulumi for these two repo’s?
c
You could do something like this:
Copy code
const kubestatemetrics = new k8s.helm.v3.Chart("kubestatemetrics",  {
    version: "1.2.1",
    namespace: metricsnamespace.metadata.name,
    chart: "kube-state-metrics",
    fetchOpts: {
        repo: "<https://charts.bitnami.com/bitnami>",
    }, 

}, { provider: k8sProvider });

const prometheus = new k8s.helm.v3.Chart("prometheus",  {
    version: "13.3.2",
    namespace: metricsnamespace.metadata.name,
    chart: "prometheus",
    fetchOpts: {
        repo: "<https://prometheus-community.github.io/helm-charts>",
    },
}, { provider: k8sProvider });
p
thx, i did that and it works