Skip to content

Commit

Permalink
Fix SSH docs to use 2 dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Nov 9, 2020
1 parent 0e80245 commit a2fa689
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a2fa689

Please sign in to comment.