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 @@ -204,17 +204,21 @@ integration-test-java:
204
204
code : |
205
205
#!/bin/bash
206
206
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
210
- echo "DOCKER_PASSWORD $DOCKER_PASSWORD"
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
210
+
211
211
# Update KUBECONFIG for K8S cluster
212
- export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
212
+ # export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_HOSTNAME}"
213
+ export K8S_NODEPORT_HOST="${OCI_K8S_WORKER0_IP}"
213
214
sed -i -e "s,%ADDRESS%,https://$OCI_K8S_MASTER_IP:443,g" $WERCKER_SOURCE_DIR/build/kube.config
214
215
sed -i -e "s,%CLIENT_CERT_DATA%,$OCI_K8S_CLIENT_CERT_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
215
216
sed -i -e "s,%CLIENT_KEY_DATA%,$OCI_K8S_CLIENT_KEY_DATA,g" $WERCKER_SOURCE_DIR/build/kube.config
216
217
export KUBECONFIG="$WERCKER_SOURCE_DIR/build/kube.config"
217
218
219
+ echo "KUBECONFIG $KUBECONFIG"
220
+ cat $KUBECONFIG
221
+ echo "KUBECONFIG END"
218
222
# running on Wercker
219
223
export WERCKER="true"
220
224
You can’t perform that action at this time.
0 commit comments