From a2fa6892964300b882591bce8474936dadbd647f Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Fri, 6 Nov 2020 20:12:44 -0800 Subject: [PATCH] Fix SSH docs to use 2 dashes --- docs/ssh.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/ssh.md b/docs/ssh.md index b805e37..9b93e59 100644 --- a/docs/ssh.md +++ b/docs/ssh.md @@ -69,9 +69,9 @@ Secret (e.g. "git-creds" used in both above examples). ## Step 3: Configure git-sync container In your git-sync container configuration, mount the Secret volume at -"/etc/git-secret". Ensure that the `-repo` flag (or the GIT_SYNC_REPO +"/etc/git-secret". Ensure that the `--repo` flag (or the GIT_SYNC_REPO environment variable) is set to use the SSH protocol (e.g. -git@github.com/foo/bar) , and set the `-ssh` flags (or set GIT_SYNC_SSH to +git@github.com/foo/bar) , and set the `--ssh` flags (or set GIT_SYNC_SSH to "true"). You will also need to set your container's `securityContext` to run as user ID "65533" which is created for running git-sync as non-root. @@ -81,10 +81,10 @@ as user ID "65533" which is created for running git-sync as non-root. - name: git-sync image: k8s.gcr.io/git-sync:v3.1.5 args: - - "-ssh" - - "-repo=git@github.com:foo/bar" - - "-link=bar" - - "-branch=master" + - "--ssh" + - "--repo=git@github.com:foo/bar" + - "--link=bar" + - "--branch=master" volumeMounts: - name: git-secret mountPath: /etc/git-secret @@ -140,11 +140,11 @@ spec: - name: git-sync image: k8s.gcr.io/git-sync:v3.1.5 args: - - "-ssh" - - "-repo=git@github.com:torvalds/linux" - - "-link=linux" - - "-branch=master" - - "-depth=1" + - "--ssh" + - "--repo=git@github.com:torvalds/linux" + - "--link=linux" + - "--branch=master" + - "--depth=1" securityContext: runAsUser: 65533 # git-sync user volumeMounts: