stocky-hair-65085
01/28/2021, 2:33 PMOutput.all()
• In a python lambda create a dict with the needed structure. and dump it using yaml.dump
.
• This string is passed to Kubernetes Secret which is mounted into the needed pod.
I'm not fully happy with this approach because the numbered arguments in the lambda of Output.all()
are error-prone when you have more than a few resources.billowy-army-68599
01/28/2021, 6:14 PMquiet-leather-94755
01/29/2021, 6:34 PMred-match-15116
02/18/2021, 12:01 AMOutput.all()
to create a dict. This is included in v2.21.0 of the SDK.
It is now possible to do the following:
Output.all(name=output1, name2=output2).apply(lambda x: x['name'])
billowy-army-68599
02/18/2021, 12:03 AM