sparse-intern-71089
03/25/2022, 10:58 PMworried-city-86458
03/25/2022, 10:58 PMworried-city-86458
03/25/2022, 10:59 PMworried-city-86458
03/25/2022, 11:01 PMKubeConfig = Output.Tuple(cluster.Name, clusterEndpoint, cluster.CertificateAuthority.Apply(ca => ca.Data!))
.Apply(((string ClusterName, string ClusterEndpoint, string ClusterCa) tuple) =>
RenderTemplate("KubeConfig.yaml", ReadResource, new { tuple.ClusterName, tuple.ClusterEndpoint, tuple.ClusterCa, EnvName, AwsConfig.Iam.DeployerRoleArn }))
.Apply(Output.CreateSecret);
To:
KubeConfig = Output.Tuple(cluster.Name, clusterEndpoint, cluster.CertificateAuthorities.Apply(authorities => authorities[0].Data!))
.Apply(((string ClusterName, string ClusterEndpoint, string ClusterCa) tuple) =>
RenderTemplate("KubeConfig.yaml", ReadResource, new { tuple.ClusterName, tuple.ClusterEndpoint, tuple.ClusterCa, EnvName, AwsConfig.Iam.DeployerRoleArn }))
.Apply(Output.CreateSecret);
worried-city-86458
03/25/2022, 11:01 PMDiagnostics:
pulumi:pulumi:Stack (aws-eks-alpha):
error: Running program '' failed with an unhandled exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at T System.Collections.Immutable.ImmutableArray<T>.get_Item(int index)
at Pharos.Gemini.Aws.EksStack(IOptions<Config> options, ILogger<EksStack> logger)+(ImmutableArray<ClusterCertificateAuthority> cas) => { }
at Output<U> Pulumi.Output<T>.Apply<U>(Func<T, U> func)+(T t) => { }
at async Task<OutputData<U>> Pulumi.Output<T>.ApplyHelperAsync<U>(Task<OutputData<T>> dataTask, Func<T, Output<U>> func)
worried-city-86458
03/25/2022, 11:04 PMCertificateAuthorities
is nullworried-city-86458
03/25/2022, 11:04 PMcertificateAuthority
not certificateAuthorities
so is there something else I need to do to upgrade to v5?worried-city-86458
03/25/2022, 11:21 PMworried-city-86458
03/25/2022, 11:27 PMIdentities
is handled which works fine and makes me think pulumi needs to do something else to map the certificate authoritiesworried-city-86458
03/28/2022, 6:21 PMworried-city-86458
04/03/2022, 8:26 PM