Skip to content

Commit

Permalink
fixing readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaiShalevRH committed Nov 27, 2024
1 parent 12e036b commit 3c22f80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scaffolder-templates/gitops/bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ Before applying the manifests, there is a need to replace the `__REPLACE_SSH_PRI
Either manually edit the file or login to the target cluster and run the following command:

```
# Change the Git host to the one you are using, for example, github.com, gitlab.cee.redhat.com, gitlab.gitlab, etc.
git clone https://github.com/${{ values.orgName }}/${{ values.repoName }}.git
cd ${{ values.repoName }}/bootstrap
# Optionally, if edited the file manually
SSH_PRIVATE_KEY=$(oc get secrets -n orchestrator-gitops git-ssh-credentials -o jsonpath='{.data.id_rsa}')
SSH_PRIVATE_KEY=$(oc get secrets -n orchestrator-gitops git-ssh-credentials -o jsonpath='{.data.id_rsa}')
# For a gitlab client, use gitlab-ssh-credentials instead.
sed -i "s/__REPLACE_SSH_PRIVATE_KEY__/$SSH_PRIVATE_KEY/" ${{values.workflowId}}-argocd-repo.yaml
kubectl apply -f .
Expand All @@ -20,7 +23,7 @@ kubectl apply -f .
**Note:** If you're not logged into the repository, you need to provide a personal access token (PAT) as part of the clone URL.

```
git clone https://<PAT>@github.com/${{ values.orgName }}/${{ values.repoName }}.git
git clone https://<PAT>@github/${{ values.orgName }}/${{ values.repoName }}.git
```

Replace `<PAT>` with your personal access token. Ensure the token has the necessary permissions to access the repository.
Expand Down

0 comments on commit 3c22f80

Please sign in to comment.