Hi all, I'm trying to wrap an app from kustomize (...
# kubernetes
p
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
You should also be able to use an absolute directory path instead of a relative path.
1