https://pulumi.com logo
#typescript
Title
# typescript
i

important-ram-83431

02/19/2020, 11:32 AM
Last part doesn't work, because ConfigFileOpts.file expects a string. I've tried:
Copy code
rancherCluster.clusterRegistrationToken.manifestUrl.apply((manifestUrl) => {
    new k8s.yaml.ConfigFile(name + "-import", {
        file: manifestUrl
    }, {
        provider: cluster.provider,
        dependsOn: [cluster, rancherCluster]
    });
});
t

tall-librarian-49374

02/19/2020, 11:43 AM
Yeah, this is unfortunate about the current
ConfigFile
implementation. I’m working on the .NET SDK now and I made it
Input<string>
rather than string. I believe the same needs to happen in node.
i

important-ram-83431

02/19/2020, 12:05 PM
Do you know if I can help in anyway? May I contact someone to raise the issue and offer my help?
In the meantime, do you know a dark workaround I can use to avoid that behavior?
t

tall-librarian-49374

02/19/2020, 12:23 PM
You can definitely raise an issue at https://github.com/pulumi/pulumi-kubernetes
It shouldn’t be too difficult to fix
i

important-ram-83431

02/19/2020, 12:24 PM
Many thanks Mikhail
t

tall-librarian-49374

02/19/2020, 12:25 PM
If “create in apply” doesn’t work, the only workaround I know is to hard-code it somehow