File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -204,21 +204,17 @@ integration-test-java:
204204 code : |
205205 #!/bin/bash
206206
207- # cp /etc/hosts $WERCKER_PIPELINE_DIR/hosts
208- # sed -i "$ a ${OCI_K8S_WORKER0_IP} ${OCI_K8S_WORKER0_HOSTNAME}" $WERCKER_PIPELINE_DIR/hosts
209- # cp $WERCKER_PIPELINE_DIR/hosts /etc/hosts
207+ cp /etc/hosts $WERCKER_PIPELINE_DIR/hosts
208+ sed -i "$ a ${OCI_K8S_WORKER0_IP} ${OCI_K8S_WORKER0_HOSTNAME}" $WERCKER_PIPELINE_DIR/hosts
209+ cp $WERCKER_PIPELINE_DIR/hosts /etc/hosts
210210
211211 # Update KUBECONFIG for K8S cluster
212- # export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
213- export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_IP}"
212+ export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
214213 sed -i -e "s,%ADDRESS%,https://$OCI_K8S_MASTER_IP:443,g" $WERCKER_SOURCE_DIR/build/kube.config
215214 sed -i -e "s,%CLIENT_CERT_DATA%,$OCI_K8S_CLIENT_CERT_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
216215 sed -i -e "s,%CLIENT_KEY_DATA%,$OCI_K8S_CLIENT_KEY_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
217216 export KUBECONFIG="$WERCKER_SOURCE_DIR/build/kube.config"
218217
219- echo "KUBECONFIG $KUBECONFIG"
220- cat $KUBECONFIG
221- echo "KUBECONFIG END"
222218 # running on Wercker
223219 export WERCKER="true"
224220
You can’t perform that action at this time.
0 commit comments