Fix SSH docs to use 2 dashes

This commit is contained in:
Tim Hockin 2020-11-06 20:12:44 -08:00
parent 0e802450ee
commit a2fa689296
1 changed files with 11 additions and 11 deletions

View File

@ -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: