Skip to content
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

add token for provider to flux-apps secret #3

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,13 @@ a Kubernetes secret in the `flux-system` namespace with the tenant's GitHub PAT:
```shell
export APPS_GITHUB_TOKEN=<Flux bot apps PAT>

flux create secret git flux-apps \
--namespace=flux-system \
--label=toolkit.fluxcd.io/tenant=apps \
--url=https://github.com \
--username=git \
--password=$APPS_GITHUB_TOKEN
kubectl create secret generic flux-apps \
--namespace flux-system \
--from-literal=username=git \
--from-literal=password=$APPS_GITHUB_TOKEN \
--from-literal=token=$APPS_GITHUB_TOKEN \
&& kubectl label secret flux-apps "toolkit.fluxcd.io/tenant=apps" \
--namespace flux-system
```

The tenant GitHub PAT secret is propagated from the `flux-system` namespace to all namespaces
Expand Down Expand Up @@ -390,12 +391,13 @@ To kick off the reconciliation of the tenant applications, the platform team mus
```shell
export APPS_GITHUB_TOKEN=<Flux apps PAT>

flux create secret git flux-apps \
--namespace=flux-system \
--label=toolkit.fluxcd.io/tenant=apps \
--url=https://github.com \
--username=git \
--password=$APPS_GITHUB_TOKEN
kubectl create secret generic flux-apps \
--namespace flux-system \
--from-literal=username=git \
--from-literal=password=$APPS_GITHUB_TOKEN \
--from-literal=token=$APPS_GITHUB_TOKEN \
&& kubectl label secret flux-apps "toolkit.fluxcd.io/tenant=apps" \
--namespace flux-system
```

After the `d1-infra` repository reconciles, Flux will proceed to reconcile the tenant applications
Expand Down
Loading