Hello - I'm doing a POC to use Pulumi and running ...
# kubernetes
Hello - I'm doing a POC to use Pulumi and running into a problem with
(python). I'm getting an error when trying to retrieve a kustomize directory from Github. The Github Repo is private, and SSO is configured. The code works if the repo is public. Here is my code:
Copy code
image_tag = "main-xxxxx-xxxxxxx"
crds = k8s.kustomize.Directory(
Here is the error:
Copy code
Exception: invoke of kubernetes:kustomize:directory failed: invocation of kubernetes:kustomize:directory returned an error: failed to retrieve specified kustomize directory: "<https://github.com/some-org/some-repo/tree/main-xxxxx-xxxxxxx/config/crd>": failed to get git ref: authentication required
Wasn't sure if it was strictly necessary, but as part of troubleshooting I installed
, created a new token and made sure to authorize it. I then set the token using the following:
pulumi config set github:token XXXXXXXXXXXXXX --secret
I found a github issue, but it's unclear whether using kustomize and targetting a private repo is unsupported, or if there is a bug. Has anybody gotten the above scenario to work?
I don’t believe this is supported yet. You might be able to work around it by passing the token as a header, but it isn't something that has come up before. Could you file an issue for it?
As a heads up, GitHub provider works by creating/managing github resources, so won’t help here
No worries for Github provider, noticed that when I looked into further. Commented on an existing issue and someone responded. Here it is for reference: https://github.com/pulumi/pulumi-kubernetes/issues/1966
Any news on this?