-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set GITHUB_TOKEN during clusterctl init command #6128
Comments
ghp_ should be fine. You don't need a specific scope, but it shouldn't hurt. Maybe you have to export the token with quotes I'm just using something like the following (that is of course not my actual token :)): export GITHUB_TOKEN=ghp_65adfadsf234r234dsvyhjklgfdg3g35gsdgfds P.S. It should be absolutely unrelated to your issue, but you have to use clusterctl v1.0.4. cert-manager was moved to a new repo and we fixed clusterctl accordingly in v1.0.4 (https://github.com/kubernetes-sigs/cluster-api/releases/tag/v1.0.4) |
I updated to v1.0.4 version.
|
@moluzhui So should we close the issue for now? |
Is it documented somewhere that we must update CAPA to at least 1.0.4 to avoid this issue that we have with 1.0.1, 1.0.2 ... ? @sbueringer NOTE: The issue is still there even using 1.0.4
and the workaround is to pass its own GITHUB_TOKEN
|
This is the expected behavior at this time. For discussions about potential alternative implementations please see: #3982 |
What steps did you take and what happened:
[A clear and concise description on how to REPRODUCE the bug.]
When executing
clusterctl init --infrastructure docker -v 5
, the followingerror
is returnedThen I applied for
Personal Access Tokens
ofrepo scope
in GithubDeveloper Settings
Finally, run
export GITHUB_TOKEN=<my_token>
.Init command
is executed again, but the above error is still reportedWhat did you expect to happen:
Break rate limit and create the content you need
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.12", GitCommit:"7cd5e9086de8ae25d6a1514d0c87bac67ca4a481", GitTreeState:"archive", BuildDate:"2021-05-25T03:24:12Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-21T23:01:33Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
/etc/os-release
):Centos 7
/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: