Skip to content

Commit a2fa689

Browse files
committed
Fix SSH docs to use 2 dashes
1 parent 0e80245 commit a2fa689

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/ssh.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ Secret (e.g. "git-creds" used in both above examples).
6969
## Step 3: Configure git-sync container
7070

7171
In your git-sync container configuration, mount the Secret volume at
72-
"/etc/git-secret". Ensure that the `-repo` flag (or the GIT_SYNC_REPO
72+
"/etc/git-secret". Ensure that the `--repo` flag (or the GIT_SYNC_REPO
7373
environment variable) is set to use the SSH protocol (e.g.
74-
[email protected]/foo/bar) , and set the `-ssh` flags (or set GIT_SYNC_SSH to
74+
[email protected]/foo/bar) , and set the `--ssh` flags (or set GIT_SYNC_SSH to
7575
"true"). You will also need to set your container's `securityContext` to run
7676
as user ID "65533" which is created for running git-sync as non-root.
7777

@@ -81,10 +81,10 @@ as user ID "65533" which is created for running git-sync as non-root.
8181
- name: git-sync
8282
image: k8s.gcr.io/git-sync:v3.1.5
8383
args:
84-
- "-ssh"
85-
- "[email protected]:foo/bar"
86-
- "-link=bar"
87-
- "-branch=master"
84+
- "--ssh"
85+
- "--[email protected]:foo/bar"
86+
- "--link=bar"
87+
- "--branch=master"
8888
volumeMounts:
8989
- name: git-secret
9090
mountPath: /etc/git-secret
@@ -140,11 +140,11 @@ spec:
140140
- name: git-sync
141141
image: k8s.gcr.io/git-sync:v3.1.5
142142
args:
143-
- "-ssh"
144-
- "[email protected]:torvalds/linux"
145-
- "-link=linux"
146-
- "-branch=master"
147-
- "-depth=1"
143+
- "--ssh"
144+
- "--[email protected]:torvalds/linux"
145+
- "--link=linux"
146+
- "--branch=master"
147+
- "--depth=1"
148148
securityContext:
149149
runAsUser: 65533 # git-sync user
150150
volumeMounts:

0 commit comments

Comments
 (0)