Skip to content

Commit 074e084

Browse files
author
OpenShift Bot
authored
Merge pull request #10123 from guangxuli/gitserver-example
Merged by openshift-bot
2 parents f858298 + 0aa3e0b commit 074e084

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/gitserver/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ a 'git clone' of the repository.
6565
In this case, the URL of your git server will be the host name used by the route; something like:
6666
6767
```
68-
http://git-myproject.infra.openshift.com
68+
http://git-myproject.router.default.svc.cluster.local
6969
```
7070
7171
Alternatively, if your router is not functional, you can port-forward the git-server pod to your local machine.
@@ -91,7 +91,7 @@ a 'git clone' of the repository.
9191
provide credentials to the Git Server is by using a custom credential helper that will
9292
send your OpenShift token by default to the server.
9393
```sh
94-
$ git config --global credential.http://git-myproject.infra.openshift.com.helper \
94+
$ git config --global credential.http://git-myproject.router.default.svc.cluster.local.helper \
9595
'!f() { echo "username=$(oc whoami)"; echo "password=$(oc whoami -t)"; }; f'
9696
```
9797
@@ -107,7 +107,7 @@ a 'git clone' of the repository.
107107
108108
# add a remote for your git server
109109
$ cd ruby-hello-world
110-
$ git remote add openshift http://git-myproject.infra.openshift.com/ruby-hello-world.git
110+
$ git remote add openshift http://git-myproject.router.default.svc.cluster.local/ruby-hello-world.git
111111
112112
# push the code to the git server
113113
$ git push openshift master
@@ -139,7 +139,7 @@ protocol to avoid transmission of source in plain text.
139139
metadata:
140140
name: git
141141
spec:
142-
host: git-myproject.infra.openshift.com
142+
host: git-myproject.router.default.svc.cluster.local
143143
tls:
144144
termination: edge
145145
to:
@@ -150,7 +150,7 @@ protocol to avoid transmission of source in plain text.
150150
2. If using a private certificate authority, configure your git client to use the private ca.crt file:
151151
152152
```sh
153-
$ git config --global http.https://git-myproject.infra.openshift.com.sslCAInfo /path/to/ca.crt
153+
$ git config --global http.https://git-myproject.router.default.svc.cluster.local.sslCAInfo /path/to/ca.crt
154154
```
155155
156156
where the key is http.[git server URL].sslCAInfo
@@ -243,3 +243,4 @@ oc set env dc/git BUILD_STRATEGY=source
243243
```
244244

245245
Valid values for BUILD_STRATEGY are "" (empty string), `source`, and `docker`.
246+

0 commit comments

Comments
 (0)