sparse-intern-71089
03/11/2021, 7:46 PMred-match-15116
03/11/2021, 7:50 PMlimited-rainbow-51650
03/11/2021, 7:56 PMred-match-15116
03/11/2021, 7:57 PMred-match-15116
03/11/2021, 8:03 PMI guess I’m missing something about your suggestion. Do you have a small code snippet to expand on your thinking?I think the issue I linked might be helpful to understand what goes on, but essentially to set a map you would have to set the top-level config key
s.Workspace().SetConfig(ctx, s.Name, "myTopLevelKey", ConfigValue{Value: "{'inner': 'foo', 'another': 'bar}", Secret: false})
To get that config, you would have to get the top-level config:
s.Workspace().GetConfig(ctx, s.Name, "myTopLevelKey")
And then Unmarshal the resulting json string into a struct and then access the inner keys.red-match-15116
03/11/2021, 8:05 PMlimited-rainbow-51650
03/11/2021, 8:08 PMConfigMap
at the right depth of my struct type so unmarshalling would be based on the ConfigMap
type. But I guess I will have to intercept with a custom JSON marshaller.limited-rainbow-51650
03/11/2021, 8:09 PMlimited-rainbow-51650
03/11/2021, 8:12 PMparams
I receive, would be additional stack config I would pass as-is via stack.SetAllConfig
. At least, that was my intent.red-match-15116
03/11/2021, 8:19 PMbored-oyster-3147
03/18/2021, 1:05 PM