Skip to content

Commit

Permalink
Don't use upstream servers for IPV6 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 21, 2019
1 parent 765c313 commit 4642818
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions hack/ci/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ nodes:
- role: worker
- role: worker
EOF

# mark the cluster as up for cleanup
# even if kind create fails, kind delete can clean up after it
KIND_IS_UP=true
Expand All @@ -132,6 +133,34 @@ run_tests() {
KUBECONFIG="$(kind get kubeconfig-path)"
export KUBECONFIG

if [[ "${IP_FAMILY:-ipv4}" == "ipv6" ]]; then
# Create the CoreDNS config for offline and IPv6 clusters
# https://github.com/coredns/coredns/issues/2494#issuecomment-457215452
cat <<EOF | kubectl apply -f -
---
apiVersion: v1
data:
Corefile: |
.:53 {
errors
health
rewrite name google.com my-google.default.svc.cluster.local
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
}
prometheus :9153
cache 30
reload
loadbalance
}
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
---
EOF
fi

# base kubetest args
KUBETEST_ARGS="--provider=skeleton --test --check-version-skew=false"

Expand Down

0 comments on commit 4642818

Please sign in to comment.