UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit ae36a44d authored by Zachariah Dzielinski's avatar Zachariah Dzielinski
Browse files

Fixed k3d cluster creation resource check issue

parent 7f007219
No related branches found
No related tags found
1 merge request!159Draft: Umbrella release on merge into master, other small fixes
Pipeline #137900 failed
......@@ -97,14 +97,14 @@ clean install:
stage: smoke tests
extends:
- .k3d
variables:
CLUSTER_NAME: "clean-${CI_COMMIT_SHORT_SHA}"
script:
- ./scripts/k3d_list_images.sh > images-initial.txt
- *deploy_bigbang
- *test_bigbang
- ./scripts/k3d_list_images.sh > images-all.txt
- grep -v -F -f images-initial.txt images-all.txt | sort > images.txt
- cat images-initial.txt
- cat images-all.txt
- cat images.txt
artifacts:
paths:
......@@ -123,8 +123,6 @@ upgrade:
when: never
# run pipeline on merge request events
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
variables:
CLUSTER_NAME: "clean-${CI_COMMIT_SHORT_SHA}"
script:
- if $CHART_BREAKING_CHANGE; then echo "Breaking change detected by chart version difference, skipping job"; exit 0; fi
- echo "Install Big Bang from ${CI_DEFAULT_BRANCH}"
......
......@@ -3,13 +3,18 @@
- docker run -d -p 53:53/udp -p 53:53 registry.dsop.io/platform-one/big-bang/pipeline-templates/pipeline-templates/go-dnsmasq:0eddd476
- echo "nameserver 127.0.0.1" >> /etc/resolv.conf
# Standup cluster
- k3d cluster create ${CLUSTER_NAME} --k3s-server-arg "--disable=traefik" --k3s-server-arg "--disable=metrics-server" -p 80:80@loadbalancer -p 443:443@loadbalancer --wait --agents $N_AGENTS --servers $N_SERVERS
- while ! (kubectl get node | grep "server" > /dev/null); do sleep 3; done
- kubectl get nodes
- k3d node list
- k3d cluster create --k3s-server-arg "--disable=traefik" --k3s-server-arg "--disable=metrics-server" -p 80:80@loadbalancer -p 443:443@loadbalancer --wait --agents $N_AGENTS --servers $N_SERVERS
# Wait for core resources to become available
- while ! (kubectl get node | grep -q "server"); do sleep 3; done
- kubectl wait -n kube-system --for=condition=Ready $(kubectl get no -o name)
- while ! (kubectl get po -n kube-system -o name | grep -q "pod/local-path-provisioner"); do sleep 3; done
- while ! (kubectl get po -n kube-system -o name | grep -q "pod/local-coredns"); do sleep 3; done
- kubectl wait -n kube-system --for=condition=Ready $(kubectl get no -o name)
- kubectl wait -n kube-system --for=condition=Ready $(kubectl get po -o name -n kube-system)
- kubectl get no; kubectl get po -A
.k3d_after_script: &k3d_after_script
- k3d cluster delete ${CLUSTER_NAME}
- k3d cluster delete --all
.k3d:
image: registry.dsop.io/platform-one/big-bang/pipeline-templates/pipeline-templates/k3d-builder:045fb1c2
......@@ -23,7 +28,6 @@
DOCKER_HOST: tcp://localhost:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
CLUSTER_NAME: ${CI_COMMIT_REF_SLUG}
N_SERVERS: 1
N_AGENTS: 0
before_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment