Skip to content

Commit 9e03909

Browse files
committed
style: tasks name
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
1 parent c7aab82 commit 9e03909

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/bake_targets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
143143
- name: Set up environment
144144
run: |
145-
task e2e:env-setup
145+
task e2e:setup-env
146146
task e2e:export-kubeconfig
147147
148148
- name: Generate Chainsaw testing values

Taskfile.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ tasks:
167167
status:
168168
- test "$(docker inspect -f {{`'{{json .State.Running}}'`}} {{ .DAGGER_ENGINE_NAME }})" == "true"
169169

170-
e2e:kind-setup:
170+
e2e:setup-kind:
171171
desc: Setup Kind cluster for E2E tests
172172
deps:
173173
- e2e:start-container-registry
@@ -198,11 +198,11 @@ tasks:
198198
test "$(dagger call -m github.com/aweris/daggerverse/kind@{{ .DAGGER_KIND_SHA }}
199199
--socket {{ .DOCKER_SOCKET }} cluster --name {{ .KIND_CLUSTER_NAME }} exist)" == "true"
200200
201-
e2e:cnpg-install:
201+
e2e:install-cnpg:
202202
desc: Install CloudNativePG operator in the Kind cluster
203203
deps:
204204
- e2e:start-dagger-engine
205-
- e2e:kind-setup
205+
- e2e:setup-kind
206206
internal: true
207207
vars:
208208
# TODO: renovate
@@ -224,23 +224,23 @@ tasks:
224224
--socket {{ .DOCKER_SOCKET }} container \
225225
with-exec --args "kind","get","kubeconfig","--internal","--name","{{ .KIND_CLUSTER_NAME }}" stdout)
226226
227-
dagger core container from --address=alpine/kubectl:{{ .K8S_VERSION }}
227+
dagger core container from --address=alpine/kubectl:{{ .K8S_VERSION }} \
228228
with-new-file --contents "${kubeconfig}" --path /root/.kube/config --expand \
229229
with-env-variable --name=CACHEBUSTER --value="$(date)" \
230230
with-exec --args="apply","--server-side","-f","{{ .CNPG_MANIFEST }}" --use-entrypoint sync
231231
232-
dagger core container from --address=alpine/kubectl:{{ .K8S_VERSION }}
232+
dagger core container from --address=alpine/kubectl:{{ .K8S_VERSION }} \
233233
with-new-file --contents "${kubeconfig}" --path /root/.kube/config --expand \
234234
with-env-variable --name=CACHEBUSTER --value="$(date)" \
235-
with-exec
236-
--args="wait","--for=condition=Available","--timeout=2m","-n","cnpg-system","deployments","cnpg-controller-manager"
235+
with-exec \
236+
--args="wait","--for=condition=Available","--timeout=2m","-n","cnpg-system","deployments","cnpg-controller-manager" \
237237
--use-entrypoint sync
238238
239239
e2e:export-kubeconfig:
240240
desc: Export Kind cluster kubeconfig at path defined by KUBECONFIG_PATH var (default ~/.kube/config)
241241
deps:
242242
- e2e:start-dagger-engine
243-
- e2e:kind-setup
243+
- e2e:setup-kind
244244
vars:
245245
# TODO: renovate
246246
DAGGER_KIND_SHA: dadbc09a1e0790ccbf1d88f796308b26a12f0488
@@ -257,15 +257,15 @@ tasks:
257257
mkdir -p $(dirname {{ .KUBECONFIG_PATH }})
258258
echo "${CONFIG}" > {{ .KUBECONFIG_PATH }}
259259
260-
e2e:env-setup:
260+
e2e:setup-env:
261261
desc: Setup E2E environment
262262
silent: true
263263
deps:
264264
- e2e:create-docker-network
265265
- e2e:start-container-registry
266266
- e2e:start-dagger-engine
267-
- e2e:kind-setup
268-
- e2e:cnpg-install
267+
- e2e:setup-kind
268+
- e2e:install-cnpg
269269
cmds:
270270
- echo -e "{{.GREEN}}--- E2E environment setup complete ---{{.NC}}"
271271

0 commit comments

Comments
 (0)