sparse-intern-71089
11/15/2022, 9:22 PMbillowy-army-68599
brash-gigabyte-81569
11/15/2022, 9:26 PMbrash-gigabyte-81569
11/15/2022, 9:26 PMexport interface ComponentArgs {
cluster: eks.Cluster;
}
brash-gigabyte-81569
11/15/2022, 9:28 PMexport 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
core
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:38 PMbrash-gigabyte-81569
11/15/2022, 11:10 PMbrash-gigabyte-81569
11/16/2022, 9:03 PMlittle-cartoon-10569
11/16/2022, 9:04 PMlittle-cartoon-10569
11/16/2022, 9:08 PMbrash-gigabyte-81569
11/16/2022, 9:09 PMlittle-cartoon-10569
11/16/2022, 9:09 PMbrash-gigabyte-81569
11/16/2022, 9:09 PMbrash-gigabyte-81569
11/16/2022, 9:10 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 PMbrash-gigabyte-81569
11/16/2022, 9:19 PMlittle-cartoon-10569
11/16/2022, 9:22 PMbrash-gigabyte-81569
11/16/2022, 9:24 PMbrash-gigabyte-81569
11/16/2022, 9:24 PMbrash-gigabyte-81569
11/16/2022, 9:25 PMlittle-cartoon-10569
11/16/2022, 9:26 PMbrash-gigabyte-81569
11/17/2022, 5:47 PMbrash-gigabyte-81569
11/17/2022, 5:47 PMClusterEndpoint: cluster.EksCluster.Endpoint(),
ClusterName: cluster.EksCluster.Name(),
brash-gigabyte-81569
11/17/2022, 5:48 PMCluster: cluster,
brash-gigabyte-81569
12/01/2022, 7:34 PMplain: 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?brash-gigabyte-81569
12/01/2022, 8:21 PMbrash-gigabyte-81569
12/01/2022, 8:58 PM* 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.
brash-gigabyte-81569
12/01/2022, 8:59 PMbillowy-army-68599
brash-gigabyte-81569
12/01/2022, 9:19 PMbrash-gigabyte-81569
12/01/2022, 9:20 PMbrash-gigabyte-81569
12/01/2022, 9:21 PMbrash-gigabyte-81569
12/02/2022, 1:55 AM