rapid-soccer-18092
09/22/2021, 7:54 AMInput<string>
and I need to assign it to an object
type in my values object map, but implicit typing doesn't kick in so the assigned value is Input<T>. See below... the args.DatadogApiKey
is `Input<string>`:
var datadogChart = new Chart("datadog-chart",
new ChartArgs
{
Chart = "datadog",
Version = args.DatadogChartVersion,
Namespace = "default",
Values = new Dictionary<string, object>
{
["datadog"] = new Dictionary<string, object>
{
["apiKey"] = args.DatadogApiKey,
["site"] = "<http://datadoghq.eu|datadoghq.eu>"
},
}
});
tall-librarian-49374
09/22/2021, 7:55 AMargs.DatadogApiKey.Apply(v => (object)v)
rapid-soccer-18092
09/22/2021, 7:59 AMstring datadogApiKey;
args.DatadogApiKey.Apply(x =>
{
datadogApiKey = x;
return x;
});
tall-librarian-49374
09/22/2021, 8:02 AMrapid-soccer-18092
09/22/2021, 8:03 AMtall-librarian-49374
09/22/2021, 8:04 AMrapid-soccer-18092
09/22/2021, 8:06 AMGrpc.Core.RpcException: Status(StatusCode="Unknown", Detail="invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to create chart from template: template: datadog/templates/NOTES.txt:1:56: executing "datadog/templates/NOTES.txt" at <eq .Values.datadog.apiKey "<DATADOG_API_KEY>">: error calling eq: uncomparable type map[string]interface {}: map[]", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1632296140.606362300","description":"Error received from peer ipv4:127.0.0.1:38555","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to create chart from template: template: datadog/templates/NOTES.txt:1:56: executing "datadog/templates/NOTES.txt" at <eq .Values.datadog.apiKey "<DATADOG_API_KEY>">: error calling eq: uncomparable type map[string]interface {}: map[]","grpc_status":2}")
tall-librarian-49374
09/22/2021, 8:07 AMValues = args.DatadogApiKey.Apply(apiKey => new Dictionary<string, object>
{
["datadog"] = new Dictionary<string, object>
{
["apiKey"] = apiKey,
["site"] = "<http://datadoghq.eu|datadoghq.eu>"
},
})
rapid-soccer-18092
09/22/2021, 8:14 AMOutput<T>