https://pulumi.com logo
q

quaint-queen-45003

01/30/2019, 8:43 PM
hello - im trying to use the
namespace
param in
ChartOps
to deploy a chart from a public repo into a specific name space but it ended up in default rather than the specified name space. has anyone had any luck with this?
g

gorgeous-egg-16927

01/30/2019, 8:48 PM
ChartOps.transformations
q

quaint-queen-45003

01/30/2019, 8:52 PM
hmm ill give it a shot. thanks a bunch for the help!
👍 1
g

gorgeous-egg-16927

01/30/2019, 8:57 PM
Added a workaround example to that issue
q

quaint-queen-45003

01/30/2019, 8:59 PM
awesome! trying it shortly
c

creamy-potato-29402

01/30/2019, 9:01 PM
@quaint-queen-45003 we’re basically semantically equivalent to
helm template
, btw. Not sure if we should change this — helm is moving away from Tiller, so in the medium term these charts will need to support this too.
q

quaint-queen-45003

01/30/2019, 9:02 PM
gotcha. good to know!
in the provided example, can I pass in a param to
addNamespace
so that we can reuse that function?
i think i'm missing something with
transformations
i'm trying
transformations: [addNamespace("kube-system")]
and added it into the method signature
Copy code
161 function addNamespace(o: any, namespace: string) {
162     if (o !== undefined) {
163         if (o.metadata !== undefined) {
164             o.metadata.namespace = namespace;
165         } else {
166             o.metadata = {namespace: namespace}
167         }
168     }
169 }
bug on my side 🤦 will work it out
thanks again for all the help!
c

creamy-potato-29402

01/30/2019, 10:17 PM
@quaint-queen-45003 just got back from a meeting, sorry.
glad you worked something out.
q

quaint-queen-45003

01/30/2019, 10:18 PM
haven't worked it out quite yet but have an idea on how to do it
new to typescript 😅
c

creamy-potato-29402

01/31/2019, 12:28 AM
Yeah. It’s like this whole thing.