@@ -65,7 +65,7 @@ a 'git clone' of the repository.
65
65
In this case, the URL of your git server will be the host name used by the route; something like:
66
66
67
67
```
68
- http://git-myproject.infra.openshift.com
68
+ http://git-myproject.router.default.svc.cluster.local
69
69
```
70
70
71
71
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.
91
91
provide credentials to the Git Server is by using a custom credential helper that will
92
92
send your OpenShift token by default to the server.
93
93
```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 \
95
95
' ! f() { echo " username=$( oc whoami) " ; echo " password=$( oc whoami -t) " ; }; f'
96
96
```
97
97
@@ -107,7 +107,7 @@ a 'git clone' of the repository.
107
107
108
108
# add a remote for your git server
109
109
$ 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
111
111
112
112
# push the code to the git server
113
113
$ git push openshift master
@@ -139,7 +139,7 @@ protocol to avoid transmission of source in plain text.
139
139
metadata:
140
140
name: git
141
141
spec:
142
- host: git-myproject.infra.openshift.com
142
+ host: git-myproject.router.default.svc.cluster.local
143
143
tls:
144
144
termination: edge
145
145
to:
@@ -150,7 +150,7 @@ protocol to avoid transmission of source in plain text.
150
150
2. If using a private certificate authority, configure your git client to use the private ca.crt file:
151
151
152
152
```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
154
154
```
155
155
156
156
where the key is http.[git server URL].sslCAInfo
@@ -243,3 +243,4 @@ oc set env dc/git BUILD_STRATEGY=source
243
243
` ` `
244
244
245
245
Valid values for BUILD_STRATEGY are " " (empty string), ` source` , and ` docker` .
246
+
0 commit comments