brash-gigabyte-81569
11/15/2022, 9:22 PMargs.cluster.eksCluster.endpoint
. Everything compiles and builds but when I go to use that endpoint value it is outputting it as empty. I’ve tried doing things like args.cluster.eksCluster.endpoint.apply(endpoint => endpoint)
and args.cluster.eksCluster.apply(cluster => cluster.endpoint)
. I can’t think of anything else I should try and it is probably something simple I am missing.billowy-army-68599
11/15/2022, 9:24 PMbrash-gigabyte-81569
11/15/2022, 9:26 PMexport interface ComponentArgs {
cluster: eks.Cluster;
}
export class Component extends pulumi.ComponentResource {
constructor(name: string, args: ComponentArgs, opts?: pulumi.ComponentResourceOptions) {
super("blah:index:Component", name, args, opts);
const componentRelease = new k8s.helm.v3.Release("component", {
chart: "{chart_goes_here}",
version: "{version_goes_here}",
namespace: "{namespace_goes_here}",
values: {
"clusterEndpoint": args.cluster.eksCluster.endpoint,
},
createNamespace: true,
}, {
parent: this,
});
this.registerOutputs({});
}
}
billowy-army-68599
11/15/2022, 9:30 PMcore
args.cluster.eksCluster.core.endpoitn
little-cartoon-10569
11/15/2022, 9:31 PMcluster
is an eks.Cluster.. I don't see a property eksCluster
on that. https://www.pulumi.com/registry/packages/aws/api-docs/eks/cluster/. Should that line be clusterEndpoint: args.cluster.endpoint
?brash-gigabyte-81569
11/15/2022, 9:36 PMlittle-cartoon-10569
11/16/2022, 9:04 PMbrash-gigabyte-81569
11/16/2022, 9:09 PMlittle-cartoon-10569
11/16/2022, 9:09 PMbrash-gigabyte-81569
11/16/2022, 9:09 PMlittle-cartoon-10569
11/16/2022, 9:10 PMbrash-gigabyte-81569
11/16/2022, 9:12 PMlittle-cartoon-10569
11/16/2022, 9:14 PMargs.cluster
is that class, args.cluster.eksCluster
is from @pulumi/aws/eks
, and endpoint is undefined? How did you create the @pulumi/eks
cluster? That certainly looks okay to me...brash-gigabyte-81569
11/16/2022, 9:15 PMcluster, err := eks.NewCluster(ctx, "cluster", &eks.ClusterArgs{
little-cartoon-10569
11/16/2022, 9:17 PMcluster.eksCluster.id
would be good to check...brash-gigabyte-81569
11/16/2022, 9:17 PMlittle-cartoon-10569
11/16/2022, 9:22 PMbrash-gigabyte-81569
11/16/2022, 9:24 PMlittle-cartoon-10569
11/16/2022, 9:26 PMbrash-gigabyte-81569
11/17/2022, 5:47 PMClusterEndpoint: cluster.EksCluster.Endpoint(),
ClusterName: cluster.EksCluster.Name(),
Cluster: cluster,
plain: true
in the schema, and I can’t seem to get the Cluster
from pulumi-eks to resolve correctly when passed to a component. No compilation errors on the component, no errors when running pulumi up, but the fields I am trying to set using values from the Cluster just don’t output or get created. Is there a trick to getting these resources to work when being passed to a component that I am missing?* This is a variant of `Cluster` that is used for the MLC `Cluster`. We don't just use `Cluster`,
* because not all of its output properties are typed as `Output<T>`, which prevents it from being
* able to be correctly "rehydrated" from a resource reference. So we use this copy instead rather
* than modifying the public surface area of the existing `Cluster` class, which is still being
* used directly by users using the Node.js SDK. Once we move Node.js over to the generated MLC SDK,
* we can clean all this up. Internally, this leverages the same `createCluster` helper method that
* `Cluster` uses.
billowy-army-68599
12/01/2022, 9:18 PMbrash-gigabyte-81569
12/01/2022, 9:19 PM