straight-fireman-55591
08/04/2023, 11:14 AMgke-cluster:
type: gcp:container:Cluster
.
.
.
# Now crating a namespace:
ray-system:
type: kubernetes:core/v1:Namespace
properties:
metadata:
name: ray-system
options:
provider: ${gke-cluster}
dependsOn:
- ${gke-cluster}
# This gets me an error:
error: resource passed as Provider was not a provider resource '&{{{{{%!s(int32=0) %!s(uint32=0)} %!s(uint32=0) %!s(uint32=0) %!s(int32=0) %!s(int32=0)} {%!s(*pulumi.OutputState=&{0x140005a46c0 0x140004083f0 0 <nil> <nil> false false 0x101cc4480 [0x140006c02a0]})} {%!s(*pulumi.OutputState=&{0x140005a4680 0x140004083f0 0 <nil> <nil> false false 0x101bd6980 [0x140006c02a0]})} map[] map[] <nil> [] gke-cluster [] %!s(bool=false)} {%!s(*pulumi.OutputState=&{0x140005a4640 0x140004083f0 0 <nil> <nil> false false 0x101cc42c0 [0x140006c02a0]})}} gke-cluster {%!s(*pulumi.OutputState=&{0x140005a4600 0x140004083f0 0 <nil> <nil> false false 0x101bf6dc0 [0x140006c02a0]})}}'
# If I try:
provider: ${gke-cluster.name}
or provider: ${gke-cluster.id}
I get an error: return: error: resource cannot be an output
I'n not sure how to create a provider for above gke cluster using: type: pulumi:providers:gcp
salmon-account-74572
08/04/2023, 3:14 PMsalmon-account-74572
08/04/2023, 3:20 PM