Is there any way to get pulumi to auto update helm...
# general
c
Is there any way to get pulumi to auto update helm repos?
Or is it just expected to have to
helm update
and
helm repo add
and all that all the time?
w
Not sure exactly what you mean? I don't think you should have to do either of these.
c
Pulumi never updates the repo, therefore if I specify a new version of a chart, it won’t work.
Error: chart "memcached" matching version "2.9.0" not found in stable index. (try 'helm repo update'). No chart version found for memcached-2.9.0
for example
error: Error: Command failed: helm fetch stable/memcached --untar --version 2.9.0 --destination /tmp/tmp-2634JcP47N5dmFKY
w
Could you share a snippet of how you are specifying the chart?
c
Sure.
Copy code
export const memcached = new k8s.helm.v2.Chart('memcached', {
  repo: 'stable',
  chart: 'memcached',
  version: '2.9.0',
  namespace: namespace.metadata.name,
  values: {
    fullNameOverride: 'memcached',
    memcached: {
      maxItemMemory: 4096,
      extraArgs: ['-c 20240', '-I 1m', '-t 48']
    },
    imagePullPolicy: 'IfNotPresent'
  },
  transformations: [
    (resource: any) => {
      if (resource != null && resource.metadata != null) {
        resource.metadata.namespace = namespace.metadata.name;
      }
    }
  ]
});