hello - im trying to use the `namespace` param in ...
# general
q
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
ChartOps.transformations
q
hmm ill give it a shot. thanks a bunch for the help!
👍 1
g
Added a workaround example to that issue
q
awesome! trying it shortly
c
@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
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
@quaint-queen-45003 just got back from a meeting, sorry.
glad you worked something out.
q
haven't worked it out quite yet but have an idea on how to do it
new to typescript 😅
c
Yeah. It’s like this whole thing.