From f6757c00ecd824ecef233552e90f92402d00a319 Mon Sep 17 00:00:00 2001 From: akihikokuroda Date: Fri, 13 May 2022 17:48:35 +0000 Subject: [PATCH] remove private git description Signed-off-by: akihikokuroda --- docs/git-bundles.md | 40 ++-------------------------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/docs/git-bundles.md b/docs/git-bundles.md index eaee53a8..0f6d2b49 100644 --- a/docs/git-bundles.md +++ b/docs/git-bundles.md @@ -21,44 +21,8 @@ When creating a Bundle from a git source, a reference to a particular commit, ta provisioner to know where the bundle content is stored in the repository. Only one can be specified, and it is expected that the manifests are present in the particular commit/tag/branch at the directory specified. -## Private git repositories - -A Bundle can reference content in a private git repository using HTTPS by creating a secret in the namespace that the provisioner is deployed. -The secret is expected to contain `data.username` and `data.accesstoken` for the username and personal access token, respectively. -The [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) -can be generated in the github settings. ("Setting" -> "Developer settings" -> "Personal access tokens") - -### Example steps - -1. Create the secret - -```sh -echo -n 'user name' > username.txt -echo -n 'access token' > accesstoken.txt -kubectl create secret generic gitsecret --from-file=username=./username.txt --from-file=accesstoken=./accesstoken.txt -n rukpak-system -``` - -2. Create a private repository (private-registry/combo) and copy operator-framework/combo contents into it - -3. Create a bundle referencing a private git repository: - -```bash -kubectl apply -f -<