has anyone successfully managed to get a values ob...
# kubernetes
w
has anyone successfully managed to get a values object for helm to include an output in typescript? whatever I do it's just trying to .toString() it, which doesn't work.
t
I have - do you have an example block?
w
I haven't right now, if looks something like
Copy code
Const values = { "newValue": args.outputValue }
t
Hm - I've used outputs directly in the
values
input in both the helm chart and the helm release resource. Where are you trying to use
values
?
w
In helm v3 release, in the values portion.
t
Yeah, without a more detailed code snippet I won't be able to help much. In something like:
Copy code
new k8s.helm.v3.Release(
  "foo",
  {
    ...,
    values: {
      foo: someOtherResource.metadata.namespace
    }
  }
)
where
someOtherResource
is just another k8s resource, and its namespace is an output, this has worked fine for me before
w
Hmm, that's pretty much the code, but the values is coming from a variable, not inline. I'll dump an example tomorrow, I'm on my phone right now.
t
Sounds good!