https://pulumi.com logo
#announcements
Title
# announcements
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. 🎉 shipit Go from this:
Copy code
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:
Copy code
const nginxController = new k8s.helm.v2.Chart(
  "nginx-ingress",
  {
      repo: "stable",
      version: "0.31.0",
      chart: "nginx-ingress",
      namespace: "my-new-namespace",
  });
🎉 9
pulumipus 8bit 1
🍺 1
👍 6