diff --git a/scaffolder-templates/gitops/bootstrap/README.md b/scaffolder-templates/gitops/bootstrap/README.md index 65c0e19..a0fa5b8 100644 --- a/scaffolder-templates/gitops/bootstrap/README.md +++ b/scaffolder-templates/gitops/bootstrap/README.md @@ -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 . @@ -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://@github.com/${{ values.orgName }}/${{ values.repoName }}.git +git clone https://@github/${{ values.orgName }}/${{ values.repoName }}.git ``` Replace `` with your personal access token. Ensure the token has the necessary permissions to access the repository.