I have a little Go app which creates YAML ressources for me I then deploy to a Kubernetes cluster.
It worked quite well but since some hours (?) it fails saying:
error: Could not automatically download and install resource plugin 'pulumi-resource-kubernetes', install the plugin using
pulumi plugin install resource kubernetes
. Underlying error: 401 HTTP error fetching plugin from https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest
Executing pulumi plugin install resource kubernetes
manually returns the same result:
error: 401 HTTP error fetching plugin from https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest
I have no idea what's wrong; I don't really get the message and more detail is not available - as far as I can see. The link (https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest) seems to work properly. If a GitHub API throttle is the reason, I don't see where to place an API key.
I am running MacOS Ventura 13.1 (22C65) on a MacBook Pro 2019. No recent changes here. Go has version 1.19 and the lib is github.com/pulumi/pulumi-kubernetes/sdk/v3 v3.24.1
Any hint is highly appreciated.
The issue can be solved by providing a valid GitHub API token via the GITHUB_TOKEN
environment variable.
Thanks a lot Christian Nunciato for the hint.
However, if anybody knows some background about this and why this happened so surprisingly, I would be very interested in some insights/explanations.