Last part doesn't work, because ConfigFileOpts.fil...
# typescript
i
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
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
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
You can definitely raise an issue at https://github.com/pulumi/pulumi-kubernetes
It shouldn’t be too difficult to fix
i
Many thanks Mikhail
t
If “create in apply” doesn’t work, the only workaround I know is to hard-code it somehow