Skip to content

Commit 82fb7b4

Browse files
committed
Add GitHub PAT doc
Signed-off-by: Aniruddha Basak <[email protected]>
1 parent fd11302 commit 82fb7b4

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

docs/book/src/clusterctl/commands/init.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ If this happens, there are no guarantees about the proper functioning of `cluste
181181

182182
Cluster API providers require a cert-manager version supporting the `cert-manager.io/v1` API to be installed in the cluster.
183183

184-
While doing init, clusterctl checks if there is a version of cert-manager already installed. If not, clusterctl will
184+
While doing init, clusterctl checks if there is a version of cert-manager already installed. If not, clusterctl will
185185
install a default version (currently cert-manager v1.9.1). See [clusterctl configuration](../configuration.md) for
186186
available options to customize this operation.
187187

@@ -190,8 +190,11 @@ available options to customize this operation.
190190
<h1>Warning</h1>
191191

192192
Please note that, if clusterctl installs cert-manager, it will take care of its lifecycle, eventually upgrading it
193-
during clusterctl upgrade. Instead, if cert-manager is provided by the users, the user is responsible for
193+
during clusterctl upgrade. Instead, if cert-manager is provided by the users, the user is responsible for
194194
upgrading this component when required.
195195

196196
</aside>
197197

198+
## Avoiding GitHub rate limiting
199+
200+
Follow [this](../overview.md#avoiding-github-rate-limiting)

docs/book/src/clusterctl/configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ If no value is specified, or the format is invalid, the default value of 10 minu
9595

9696
Please note that the configuration above will be considered also when doing `clusterctl upgrade plan` or `clusterctl upgrade plan`.
9797

98+
## Avoiding GitHub rate limiting
99+
100+
Follow [this](./overview.md#avoiding-github-rate-limiting)
101+
98102
## Overrides Layer
99103

100104
<aside class="note warning">

docs/book/src/clusterctl/overview.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ Below you can find a list of main clusterctl commands:
2222

2323
For the full list of clusterctl commands please refer to [commands](commands/commands.md).
2424

25+
### Avoiding GitHub rate limiting
26+
27+
While using providers hosted on GitHub, clusterctl is calling GitHub API which are rate limited; for normal usage free tier is enough but when using clusterctl extensively users might hit the rate limit.
28+
29+
To avoid rate limiting for the public repos set the `GITHUB_TOKEN` environment variable. To generate a token [follow this](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) documentation. The token only needs `repo` scope for clusterctl.
30+
2531
# Installing clusterctl
2632
Instructions are available in the [Quick Start](../user/quick-start.md#install-clusterctl).
2733

2834
<!-- links -->
2935
[management cluster]: ../reference/glossary.md#management-cluster
30-
[provider components]: ../reference/glossary.md#provider-components
36+
[provider components]: ../reference/glossary.md#provider-components

0 commit comments

Comments
 (0)