11# https://taskfile.dev/
2- version : ' 3 '
2+ version : " 3 "
33
44tasks :
5-
65 k0s-create-cluster :
76 # internal: true
87 # deps:
98 # - task: check-go-tool
109 # vars:
1110 # TOOL: KIND
1211 silent : true
13- desc : ' create a k0s cluster with controller'
12+ desc : " create a k0s cluster with controller"
1413 status :
1514 - task check-if-ci-env # check if we are in CI_ENV, if we are, skip this task
1615 vars :
17- kind : ' {{.TMP}}/kind/{{.KIND_VERSION}}/kind'
18- dir : ' ci/k0s' # this file is imported so its fine
16+ kind : " {{.TMP}}/kind/{{.KIND_VERSION}}/kind"
17+ dir : " ci/k0s" # this file is imported so its fine
1918 cmds :
2019 # - docker-compose down --volumes --remove-orphans || true
2120 # - docker compose up -d
@@ -29,12 +28,12 @@ tasks:
2928 # vars:
3029 # TOOL: KIND
3130 silent : true
32- desc : ' create a k0s cluster with controller'
31+ desc : " create a k0s cluster with controller"
3332 status :
3433 - task check-if-ci-env # check if we are in CI_ENV, if we are, skip this task
3534 vars :
36- kind : ' {{.TMP}}/kind/{{.KIND_VERSION}}/kind'
37- dir : ' ci/k0s' # this file is imported so its fine
35+ kind : " {{.TMP}}/kind/{{.KIND_VERSION}}/kind"
36+ dir : " ci/k0s" # this file is imported so its fine
3837 cmds :
3938 - echo -n "Waiting for k0s to be ready "
4039 - |
@@ -63,15 +62,15 @@ tasks:
6362 - kubectl get pods -A
6463
6564 k0s-controller-build :
66- desc : ' '
65+ desc : " "
6766 internal : true
6867 dir : cmd/controller
6968 cmds :
7069 - CGO_ENABLED=0 go build -buildvcs=true -o ../../build/kubernetes-controller .
7170
7271 k0s-build-controller-image-dev :
7372 # internal: true
74- desc : ' build docker image of controller'
73+ desc : " build docker image of controller"
7574 deps :
7675 - task : k0s-controller-build
7776 status :
8281
8382 k0s-build-controller-image-build-in-docker :
8483 # internal: true
85- desc : ' build docker image of controller'
84+ desc : " build docker image of controller"
8685 deps :
8786 - task : k0s-controller-build
8887 status :
@@ -93,17 +92,17 @@ tasks:
9392
9493 k0s-build-echo-image :
9594 internal : true
96- desc : ' build docker image of echo service'
95+ desc : " build docker image of echo service"
9796 dir : ci/http-echo
9897 status :
99- - ' [ -f ../../.local/tar/echo.tar ]'
98+ - " [ -f ../../.local/tar/echo.tar ]"
10099 cmds :
101100 - pwd
102101 - docker build --build-arg TARGETPLATFORM={{.TARGETPLATFORM}} -t haproxytech/http-echo .
103102
104103 k0s-delete :
105- desc : ' delete a k0s cluster'
106- dir : ' ci/k0s' # this file is imported so its fine
104+ desc : " delete a k0s cluster"
105+ dir : " ci/k0s" # this file is imported so its fine
107106 silent : true
108107 cmds :
109108 - sh stop-k0s.sh
@@ -113,29 +112,29 @@ tasks:
113112 internal : true
114113 deps :
115114 - task : k0s-build-echo-image
116- desc : ' create tar of echo image'
115+ desc : " create tar of echo image"
117116 status :
118- - ' [ -f .local/tar/echo.tar ]'
117+ - " [ -f .local/tar/echo.tar ]"
119118 cmds :
120119 - mkdir -p .local/tar
121120 - docker save haproxytech/http-echo:latest -o .local/tar/echo.tar
122121
123122 k0s-echo-upload :
124- desc : ' upload echo image to k0s cluster'
123+ desc : " upload echo image to k0s cluster"
125124 silent : true
126125 internal : true
127126 cmds :
128127 - docker cp .local/tar/echo.tar k0s-hug-controller:/tmp/
129128 - docker exec k0s-hug-controller k0s ctr images import /tmp/echo.tar
130129
131130 k0s-create :
132- desc : ' create a k0s cluster with HUG and one example app'
131+ desc : " create a k0s cluster with HUG and one example app"
133132 silent : true
134133 vars :
135134 # can be set to 'k0s-build-controller-image-build-in-docker' if you want to build in the docker image
136- CONTROLLER_BUILD_TASK : ' k0s-build-controller-image-dev'
137- kubectl : ' {{.TMP}}/kubectl/{{.KUBECTL_VERSION}}/kubectl'
138- kind : ' {{.TMP}}/kind/{{.KIND_VERSION}}/kind'
135+ CONTROLLER_BUILD_TASK : " k0s-build-controller-image-dev"
136+ kubectl : " {{.TMP}}/kubectl/{{.KUBECTL_VERSION}}/kubectl"
137+ kind : " {{.TMP}}/kind/{{.KIND_VERSION}}/kind"
139138 deps :
140139 - task : check-go-tool
141140 vars :
@@ -145,7 +144,7 @@ tasks:
145144 - task : delimiter
146145 - task : k0s-create-cluster
147146 - task : delimiter
148- - task : ' {{ .CONTROLLER_BUILD_TASK }}'
147+ - task : " {{ .CONTROLLER_BUILD_TASK }}"
149148 - docker save haproxytech/haproxy-unified-gateway:latest -o hug.tar
150149 - task : k0s-echo-create-tar
151150 # - task: delimiter
@@ -164,7 +163,8 @@ tasks:
164163 - task : delimiter
165164 - echo "Install custom resource definitions ..."
166165 - echo "Install Gateway API CRDs"
167- - /{{.kubectl}} apply -f {{.GATEWAYAPI_CRDS_DOWNLOAD_URL}}
166+ - /{{.kubectl}} apply -f {{.GATEWAYAPI_STANDARD_CRDS_DOWNLOAD_URL}}
167+ - /{{.kubectl}} apply -f {{.GATEWAYAPI_EXPERIMENTAL_CRDS_DOWNLOAD_URL}}
168168 - echo "Install Gateway API Controller CRDs"
169169 - /{{.kubectl}} apply -f {{.CONFIG_DIR}}/crd-update/rbac.yaml
170170 - /{{.kubectl}} apply -f {{.CONFIG_DIR}}/crd-update/job-crd.yaml
@@ -187,11 +187,11 @@ tasks:
187187 vars :
188188 TOOL : KIND
189189 - task : check-kubectl
190- desc : ' redeploy a KinD cluster with IC'
190+ desc : " redeploy a KinD cluster with IC"
191191 silent : true
192192 vars :
193- kubectl : ' {{.TMP}}/kubectl/{{.KUBECTL_VERSION}}/kubectl'
194- kind : ' {{.TMP}}/kind/{{.KIND_VERSION}}/kind'
193+ kubectl : " {{.TMP}}/kubectl/{{.KUBECTL_VERSION}}/kubectl"
194+ kind : " {{.TMP}}/kind/{{.KIND_VERSION}}/kind"
195195 cmds :
196196 - task : k0s-build-controller-image-dev
197197 - task : delimiter
0 commit comments