Skip to content

Commit f9be059

Browse files
committed
refactor: update Taskfile.yaml to set silent mode for various tasks
This commit modifies the Taskfile.yaml by setting the 'silent' attribute to true for several tasks, enhancing the output control during task execution. The changes aim to streamline the task execution experience by reducing unnecessary output for specific operations.
1 parent 40f9ec4 commit f9be059

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

applications/wg-easy/Taskfile.yaml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ vars:
4949
CMX_VM_USER: '{{.CMX_VS_USER}}'
5050
CMX_VM_PUBLIC_KEY: '{{.CMX_VM_PUBLIC_KEY}}'
5151

52+
silent: true
53+
5254
tasks:
5355
default:
5456
desc: Show available tasks
55-
silent: true
5657
cmds:
5758
- task --list
5859

5960
cluster-create:
6061
desc: Create a test cluster using Replicated Compatibility Matrix (use EMBEDDED=true for embedded clusters)
6162
run: once
62-
silent: false
6363
vars:
6464
EMBEDDED: '{{.EMBEDDED | default "false"}}'
6565
TIMEOUT: '{{if eq .EMBEDDED "true"}}420{{else}}300{{end}}'
@@ -98,7 +98,6 @@ tasks:
9898
9999
test:
100100
desc: Run a basic test suite
101-
silent: false
102101
cmds:
103102
- echo "Running basic tests..."
104103
- echo "This is a placeholder for actual tests"
@@ -107,7 +106,6 @@ tasks:
107106

108107
verify-kubeconfig:
109108
desc: Verify kubeconfig
110-
silent: false
111109
run: once
112110
cmds:
113111
- |
@@ -125,7 +123,6 @@ tasks:
125123
126124
setup-kubeconfig:
127125
desc: Get kubeconfig and prepare cluster for application deployment
128-
silent: false
129126
run: once
130127
cmds:
131128
- task: utils:get-kubeconfig
@@ -147,7 +144,6 @@ tasks:
147144

148145
dependencies-update:
149146
desc: Update Helm dependencies for all charts
150-
silent: false
151147
run: once
152148
cmds:
153149
- echo "Updating Helm dependencies for all charts..."
@@ -161,7 +157,6 @@ tasks:
161157

162158
cluster-ports-expose:
163159
desc: Expose configured ports for a cluster and capture exposed URLs
164-
silent: false
165160
run: once
166161
status:
167162
- |
@@ -190,7 +185,6 @@ tasks:
190185

191186
helm-preflight:
192187
desc: Run preflight checks on Helm charts using preflight CLI (use DRY_RUN=true for dry-run)
193-
silent: false
194188
vars:
195189
DRY_RUN: '{{.DRY_RUN | default "false"}}'
196190
cmds:
@@ -209,7 +203,6 @@ tasks:
209203

210204
helm-install:
211205
desc: Install all charts using helmfile
212-
silent: true
213206
vars:
214207
HELM_ENV: '{{.HELM_ENV | default "default"}}'
215208
cmds:
@@ -235,7 +228,6 @@ tasks:
235228

236229
helm-uninstall:
237230
desc: Uninstall all charts using helm uninstall
238-
silent: false
239231
cmds:
240232
- echo "Uninstalling all charts via helm"
241233
- |
@@ -257,7 +249,6 @@ tasks:
257249

258250
cluster-delete:
259251
desc: Delete all test clusters with matching name and clean up kubeconfig
260-
silent: false
261252
cmds:
262253
- echo "Deleting clusters named {{.CLUSTER_NAME}}..."
263254
- |
@@ -281,7 +272,6 @@ tasks:
281272

282273
release-prepare:
283274
desc: Prepare release files by copying replicated YAML files and packaging Helm charts
284-
silent: false
285275
cmds:
286276
- echo "Preparing release files..."
287277
- rm -rf ./release
@@ -346,7 +336,6 @@ tasks:
346336

347337
release-create:
348338
desc: Create and promote a release using the Replicated CLI
349-
silent: false
350339
run: once
351340
vars:
352341
RELEASE_CHANNEL: '{{.RELEASE_CHANNEL | default "Unstable"}}'
@@ -366,7 +355,6 @@ tasks:
366355

367356
customer-create:
368357
desc: Create a new customer or get existing customer with matching name and return their ID
369-
silent: false
370358
run: once
371359
vars:
372360
CUSTOMER_NAME: '{{.CUSTOMER_NAME | default "test-customer"}}'
@@ -413,7 +401,6 @@ tasks:
413401
414402
gcp-vm-create:
415403
desc: Create a simple GCP VM instance
416-
silent: false
417404
vars:
418405
GCP_MACHINE_TYPE: '{{.GCP_MACHINE_TYPE | default "e2-standard-2"}}'
419406
GCP_DISK_SIZE: '{{.GCP_DISK_SIZE | default "100"}}'
@@ -434,7 +421,6 @@ tasks:
434421

435422
gcp-vm-delete:
436423
desc: Delete the GCP VM instance for K8s and VPN
437-
silent: false
438424
status:
439425
- "! gcloud compute instances describe {{.VM_NAME}} --project={{.GCP_PROJECT}} --zone={{.GCP_ZONE}} &>/dev/null"
440426
cmds:
@@ -447,7 +433,6 @@ tasks:
447433

448434
embedded-cluster-setup:
449435
desc: Setup Replicated embedded cluster on the GCP VM
450-
silent: false
451436
vars:
452437
RELEASE_CHANNEL: '{{.RELEASE_CHANNEL | default "Unstable"}}'
453438
AUTH_TOKEN: '{{.AUTH_TOKEN | default "2usDXzovcJNcpn54yS5tFQVNvCq"}}'
@@ -470,7 +455,6 @@ tasks:
470455

471456
customer-ls:
472457
desc: List customers for the application
473-
silent: false
474458
vars:
475459
OUTPUT_FORMAT: '{{.OUTPUT_FORMAT | default "table"}}'
476460
requires:
@@ -481,7 +465,6 @@ tasks:
481465

482466
customer-delete:
483467
desc: Archive a customer by ID
484-
silent: false
485468
vars:
486469
CUSTOMER_ID: '{{.CUSTOMER_ID}}'
487470
requires:
@@ -507,7 +490,6 @@ tasks:
507490
508491
clean:
509492
desc: Remove temporary Helm directories, chart dependencies, and release folder
510-
silent: false
511493
cmds:
512494
- echo "Cleaning temporary directories and dependencies..."
513495
- |
@@ -535,7 +517,6 @@ tasks:
535517

536518
full-test-cycle:
537519
desc: Create cluster, get kubeconfig, expose ports, update dependencies, deploy charts, test, and delete, and clean up build artifacts
538-
silent: false
539520
cmds:
540521
- task: cluster-create
541522
- task: setup-kubeconfig
@@ -549,7 +530,6 @@ tasks:
549530
cmx-vm-create:
550531
desc: Create a CMX VM instance using Replicated CLI
551532
run: once
552-
silent: true
553533
status:
554534
- |
555535
# Check if VM is running
@@ -575,15 +555,13 @@ tasks:
575555
576556
cmx-vm-delete:
577557
desc: Delete a CMX VM instance
578-
silent: true
579558
cmds:
580559
- |
581560
echo "Deleting CMX VM {{.CMX_VM_NAME}}..."
582561
replicated vm rm {{.CMX_VM_NAME}}
583562
584563
cmx-vm-install:
585564
desc: Download and install the app as Embedded Cluster on CMX VM
586-
silent: true
587565
requires:
588566
vars: [REPLICATED_LICENSE_ID]
589567
vars:

0 commit comments

Comments
 (0)