File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -207,21 +207,17 @@ integration-test-java:
207207 code : |
208208 #!/bin/bash
209209
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-
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+
214214 # Update KUBECONFIG for K8S cluster
215- # export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
216- export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_IP}"
215+ export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
217216 sed -i -e "s,%ADDRESS%,https://$OCI_K8S_MASTER_IP:443,g" $WERCKER_SOURCE_DIR/build/kube.config
218217 sed -i -e "s,%CLIENT_CERT_DATA%,$OCI_K8S_CLIENT_CERT_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
219218 sed -i -e "s,%CLIENT_KEY_DATA%,$OCI_K8S_CLIENT_KEY_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
220219 export KUBECONFIG="$WERCKER_SOURCE_DIR/build/kube.config"
221220
222- echo "KUBECONFIG $KUBECONFIG"
223- cat $KUBECONFIG
224- echo "KUBECONFIG END"
225221 # running on Wercker
226222 export WERCKER="true"
227223
You can’t perform that action at this time.
0 commit comments