aws-samples / aws-samples/eks-multi-cluster-gitops

Unnecessary use of GitHub API for management cluster Flux bootstrap

Open
#56 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
234
Forks
58
Avg merge
15m
Merged PRs (30d)
11

Description

Current instructions for GitHub Flux bootstrap requires the use of a GitHub PAT. This is because the bootstrap is being performed using the GitHub API i.e. using `flux bootstrap github`.

This can be avoided by using the Git protocol with the existing ssh key instead of the GitHub API e.g.
```
flux bootstrap git \
--url=ssh://git@github.com/rizblie/gitops-system.git \
--private-key-file=/home/ubuntu/.ssh/gitops \
--components-extra=image-reflector-controller,image-automation-controller \
--namespace=flux-system \
--branch=main \
--path=clusters/mgmt
```

This is a more generic solution as it does not rely on a GitHub-specific API and can be used with other Git hosting services.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.