This message was deleted.
# general
s
This message was deleted.
g
Yep, it looks like you already found the related issue: https://github.com/pulumi/pulumi-kubernetes/issues/861 I’ll respond there with a workaround you can use until we’ve fixed the root cause.
f
Hmm this isn't a chart though.
but does seem related
g
Yeah, the problem is with
ComponentResource
classes in pulumi, which is what Chart uses
f
Ah makes sense
g
The workaround is to depend on the subresource from the
ComponentResource
f
So how can I return the list of resources from the component so that another resource can depend on it? It does not let me return Outputs that are not " String, Boolean, Int32, Double, Nullable<...>, ImmutableArray<...> and ImmutableDictionary<string, ...> or a class explicitly marked with the [OutputTypeAttribute]" from ComponentResource classes.
I tried to return a ImmutableArray<Resource> as an Output but that also gave me the error.
g
@tall-librarian-49374 might know. I’m not familiar with the .NET SDK
t
[Output] public ImmutableArray<Resource> Resources {get;set;}
should work
Hmm, well, it might indeed fail for
Resource
. Which error are you getting?
s
Do you have any ETA for mentioned issue? Looks like it is something really difficult, lasts from October…
f
When I tried Resource I got the same error saying I could not pass it.
Copy code
[Output]
public Output<ImmutableArray<Resource>> Resources { get; set; }
this.Resources = Output.Create(new ImmutableArray<Resource> {(Resource)systemAddOnsProject, (Resource)systemAddOnNamespace});

 contains invalid type Pulumi.Resource. Allowed types are:
        String, Boolean, Int32, Double,
        Nullable<...>, ImmutableArray<...> and ImmutableDictionary<string, ...> or
        a class explicitly marked with the [OutputTypeAttribute].
@tall-librarian-49374 Should I log an issue for this where the output cannot return a Resource or a ImmutableArray of Resource?
t
However, have you tried making it a non-output? Just a property that you assign without marking as
[Output]
?
f
That worked.
Maybe I shouldn't be using [Outputs] for most of my components outputs anyways since they don't need to be retrieved outside the stack.