...

Text file src/github.com/datawire/ambassador/v2/build-aux/ci.mk

Documentation: github.com/datawire/ambassador/v2/build-aux

     1include $(dir $(lastword $(MAKEFILE_LIST)))tools.mk
     2
     3K3S_VERSION      = 1.22.2+k3s1
     4K3D_CLUSTER_NAME =
     5K3D_ARGS         = --k3s-server-arg=--no-deploy=traefik --k3s-server-arg=--kubelet-arg=max-pods=255
     6# This is modeled after
     7# https://github.com/nolar/setup-k3d-k3s/blob/v1.0.7/action.sh#L70-L77 and
     8# https://github.com/nolar/setup-k3d-k3s/blob/v1.0.7/action.yaml#L34-L46
     9ci/setup-k3d: $(tools/k3d) $(tools/kubectl)
    10	$(tools/k3d) cluster create --wait --image=docker.io/rancher/k3s:v$(subst +,-,$(K3S_VERSION)) $(K3D_ARGS)
    11	while ! $(tools/kubectl) get serviceaccount default >/dev/null; do sleep 1; done
    12	$(tools/kubectl) version
    13.PHONY: ci/setup-k3d
    14
    15ci/teardown-k3d: $(tools/k3d)
    16	$(tools/k3d) cluster delete || true
    17.PHONY: ci/teardown-k3d

View as plain text