https://pulumi.com logo
#kubernetes
Title
# kubernetes
p

prehistoric-kite-30979

12/17/2020, 4:49 PM
Hi all, I'm trying to wrap an app from kustomize (would have the same problem with basic Kube import as well) as a library, so I'm not loading in the directory/manifests in the directory where the main is running.
Copy code
func New(ctx *pulumi.Context, options ...pulumi.ResourceOption) error {
	_, err := kustomize.NewDirectory(ctx, "vault", kustomize.DirectoryArgs{
		Directory: pulumi.String("./kustomize"),
	})
	return err
}
It appears that local directories are always relative to the main.go, not the library. I think my only option here is to do a full import into Pulumi, right?
g

gorgeous-egg-16927

12/17/2020, 9:41 PM
You should also be able to use an absolute directory path instead of a relative path.
1
4 Views