This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 672e3b8e24fac83c96ddceb04b87d98992f86839 Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Mon Mar 8 20:42:56 2021 +0100 fix(ci): Use systemd-resolved instead of resolveconf --- .github/workflows/openshift.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/openshift.yml b/.github/workflows/openshift.yml index 4911139..5f254e9 100644 --- a/.github/workflows/openshift.yml +++ b/.github/workflows/openshift.yml @@ -73,6 +73,11 @@ jobs: export OPENSHIFT_COMMIT=0cbc58b export MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + sudo rm -f /etc/resolv.conf + sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf + sudo sh -c 'echo "DNS=8.8.8.8 4.4.4.4" >> /etc/systemd/resolved.conf' + sudo service systemd-resolved restart + # set docker0 to promiscuous mode sudo ip link set docker0 promisc on @@ -120,33 +125,6 @@ jobs: exit 1 fi - # Configure DNS - oc cluster down - - echo "nameserver 8.8.8.8" >> openshift.local.clusterup/kubedns/resolv.conf - echo "nameserver 4.4.4.4" >> openshift.local.clusterup/kubedns/resolv.conf - - # Restart OpenShift - oc cluster up - oc login -u system:admin - - # Wait until we have a ready node in openshift - TIMEOUT=0 - TIMEOUT_COUNT=60 - until [ $TIMEOUT -eq $TIMEOUT_COUNT ]; do - if [ -n "$(oc get nodes | grep Ready)" ]; then - break - fi - echo "openshift is not up yet" - TIMEOUT=$((TIMEOUT+1)) - sleep 5 - done - - if [ $TIMEOUT -eq $TIMEOUT_COUNT ]; then - echo "Failed to start openshift" - exit 1 - fi - echo "openshift is deployed and reachable" - name: Info