https://pulumi.com logo
Title
g

gorgeous-egg-16927

01/21/2020, 8:35 PM
https://github.com/pulumi/pulumi-kubernetes/releases/tag/v1.4.4 is out now. This release includes the fixes that were reverted from 1.4.2. ๐ŸŽ‰ ๐Ÿ˜’hipit: Go from this:
function addNamespace(o: any) {
    if (o !== undefined) {
        if (o.metadata !== undefined) {
            o.metadata.namespace = "my-new-namespace";
        } else {
            o.metadata = {namespace: "my-new-namespace"}
        }
    }
}

const nginxController = new k8s.helm.v2.Chart(
  "nginx-ingress",
  {
      repo: "stable",
      version: "0.31.0",
      chart: "nginx-ingress",
      transformations: [addNamespace]
  });
To this:
const nginxController = new k8s.helm.v2.Chart(
  "nginx-ingress",
  {
      repo: "stable",
      version: "0.31.0",
      chart: "nginx-ingress",
      namespace: "my-new-namespace",
  });
๐ŸŽ‰ 9
๐Ÿ˜›ulumipus-8bit: 1
๐Ÿบ 1
๐Ÿ‘ 6