File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -207,17 +207,21 @@ integration-test-java:
207
207
code : |
208
208
#!/bin/bash
209
209
210
- cp /etc/hosts $WERCKER_PIPELINE_DIR/hosts
211
- sed -i "$ a ${OCI_K8S_WORKER0_IP} ${OCI_K8S_WORKER0_HOSTNAME}" $WERCKER_PIPELINE_DIR/hosts
212
- cp $WERCKER_PIPELINE_DIR/hosts /etc/hosts
213
- echo "DOCKER_PASSWORD $DOCKER_PASSWORD"
210
+ # cp /etc/hosts $WERCKER_PIPELINE_DIR/hosts
211
+ # sed -i "$ a ${OCI_K8S_WORKER0_IP} ${OCI_K8S_WORKER0_HOSTNAME}" $WERCKER_PIPELINE_DIR/hosts
212
+ # cp $WERCKER_PIPELINE_DIR/hosts /etc/hosts
213
+
214
214
# Update KUBECONFIG for K8S cluster
215
- export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
215
+ # export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
216
+ export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_IP}"
216
217
sed -i -e "s,%ADDRESS%,https://$OCI_K8S_MASTER_IP:443,g" $WERCKER_SOURCE_DIR/build/kube.config
217
218
sed -i -e "s,%CLIENT_CERT_DATA%,$OCI_K8S_CLIENT_CERT_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
218
219
sed -i -e "s,%CLIENT_KEY_DATA%,$OCI_K8S_CLIENT_KEY_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
219
220
export KUBECONFIG="$WERCKER_SOURCE_DIR/build/kube.config"
220
221
222
+ echo "KUBECONFIG $KUBECONFIG"
223
+ cat $KUBECONFIG
224
+ echo "KUBECONFIG END"
221
225
# running on Wercker
222
226
export WERCKER="true"
223
227
You can’t perform that action at this time.
0 commit comments