@@ -34,14 +34,25 @@ tasks:
3434 cmds :
3535 - task : container:exec
3636 vars :
37- CMD : ' task {{.TASK}}'
37+ CMD : ' task {{.TASK}} {{.EMBEDDED}} {{.LICENSE_ID}} {{.TIMEOUT}} {{.TTL}} {{.DISTRIBUTION}} {{.K8S_VERSION}} {{.DISK_SIZE}} {{.INSTANCE_TYPE}}'
38+ vars :
39+ EMBEDDED : " {{if .EMBEDDED}}EMBEDDED={{.EMBEDDED}}{{end}}"
40+ LICENSE_ID : " {{if .LICENSE_ID}}LICENSE_ID={{.LICENSE_ID}}{{end}}"
41+ TIMEOUT : " {{if .TIMEOUT}}TIMEOUT={{.TIMEOUT}}{{end}}"
42+ TTL : " {{if .TTL}}TTL={{.TTL}}{{end}}"
43+ DISTRIBUTION : " {{if .DISTRIBUTION}}DISTRIBUTION={{.DISTRIBUTION}}{{end}}"
44+ K8S_VERSION : " {{if .K8S_VERSION}}K8S_VERSION={{.K8S_VERSION}}{{end}}"
45+ DISK_SIZE : " {{if .DISK_SIZE}}DISK_SIZE={{.DISK_SIZE}}{{end}}"
46+ INSTANCE_TYPE : " {{if .INSTANCE_TYPE}}INSTANCE_TYPE={{.INSTANCE_TYPE}}{{end}}"
3847
3948 cluster-list :
4049 desc : List the cluster
4150 cmds :
4251 - task : container:exec
4352 vars :
44- CMD : ' task {{.TASK}}'
53+ CMD : ' task {{.TASK}} {{.CLUSTER_NAME}}'
54+ vars :
55+ CLUSTER_NAME : " {{if .CLUSTER_NAME}}CLUSTER_NAME={{.CLUSTER_NAME}}{{end}}"
4556
4657 test :
4758 desc : Run a basic test suite
@@ -55,14 +66,32 @@ tasks:
5566 cmds :
5667 - task : container:exec
5768 vars :
58- CMD : ' task {{.TASK}}'
69+ CMD : ' task {{.TASK}} {{.CLUSTER_NAME}}'
70+ vars :
71+ CLUSTER_NAME : " {{if .CLUSTER_NAME}}CLUSTER_NAME={{.CLUSTER_NAME}}{{end}}"
5972
73+ # deps:
74+ # - cluster-create
75+ # - verify-kubeconfig
6076 setup-kubeconfig :
6177 desc : Get kubeconfig and prepare cluster for application deployment
6278 cmds :
6379 - task : container:exec
6480 vars :
65- CMD : ' task {{.TASK}}'
81+ CMD : ' task {{.TASK}} {{.DISTRIBUTION}} {{.EMBEDDED}} {{.LICENSE_ID}} {{.TIMEOUT}} {{.TTL}} {{.DISTRIBUTION}} {{.K8S_VERSION}} {{.DISK_SIZE}} {{.INSTANCE_TYPE}} {{.CLUSTER_NAME}}'
82+ vars :
83+ DISTRIBUTION : " {{if .DISTRIBUTION}}DISTRIBUTION={{.DISTRIBUTION}}{{end}}"
84+ # from deps cluster-create
85+ EMBEDDED : " {{if .EMBEDDED}}EMBEDDED={{.EMBEDDED}}{{end}}"
86+ LICENSE_ID : " {{if .LICENSE_ID}}LICENSE_ID={{.LICENSE_ID}}{{end}}"
87+ TIMEOUT : " {{if .TIMEOUT}}TIMEOUT={{.TIMEOUT}}{{end}}"
88+ TTL : " {{if .TTL}}TTL={{.TTL}}{{end}}"
89+ DISTRIBUTION : " {{if .DISTRIBUTION}}DISTRIBUTION={{.DISTRIBUTION}}{{end}}"
90+ K8S_VERSION : " {{if .K8S_VERSION}}K8S_VERSION={{.K8S_VERSION}}{{end}}"
91+ DISK_SIZE : " {{if .DISK_SIZE}}DISK_SIZE={{.DISK_SIZE}}{{end}}"
92+ INSTANCE_TYPE : " {{if .INSTANCE_TYPE}}INSTANCE_TYPE={{.INSTANCE_TYPE}}{{end}}"
93+ # from deps verify-kubeconfig
94+ CLUSTER_NAME : " {{if .CLUSTER_NAME}}CLUSTER_NAME={{.CLUSTER_NAME}}{{end}}"
6695
6796 dependencies-update :
6897 desc : Update Helm dependencies for all charts
@@ -76,14 +105,41 @@ tasks:
76105 cmds :
77106 - task : container:exec
78107 vars :
79- CMD : ' task {{.TASK}}'
108+ CMD : ' task {{.TASK}} {{.CLUSTER_NAME}} {{.OPERATION}}'
109+ vars :
110+ CLUSTER_NAME : " {{if .CLUSTER_NAME}}CLUSTER_NAME={{.CLUSTER_NAME}}{{end}}"
111+ # from task: utils:port-operations
112+ OPERATION : " {{if .OPERATION}}OPERATION={{.OPERATION}}{{end}}"
113+ # CLUSTER_NAME already above
80114
115+ # deps:
116+ # - setup-kubeconfig
117+ # - cluster-ports-expose
81118 helm-install :
82119 desc : Deploy all charts using helmfile
83120 cmds :
84121 - task : container:exec
85122 vars :
86- CMD : ' task {{.TASK}}'
123+ CMD : ' task {{.TASK}} {{.DISTRIBUTION}} {{.EMBEDDED}} {{.LICENSE_ID}} {{.TIMEOUT}} {{.TTL}} {{.DISTRIBUTION}} {{.K8S_VERSION}} {{.DISK_SIZE}} {{.INSTANCE_TYPE}} {{.CLUSTER_NAME}} {{.OPERATION}}'
124+ vars :
125+ # from deps setup-kubeconfig
126+ DISTRIBUTION : " {{if .DISTRIBUTION}}DISTRIBUTION={{.DISTRIBUTION}}{{end}}"
127+ # from deps cluster-create
128+ EMBEDDED : " {{if .EMBEDDED}}EMBEDDED={{.EMBEDDED}}{{end}}"
129+ LICENSE_ID : " {{if .LICENSE_ID}}LICENSE_ID={{.LICENSE_ID}}{{end}}"
130+ TIMEOUT : " {{if .TIMEOUT}}TIMEOUT={{.TIMEOUT}}{{end}}"
131+ TTL : " {{if .TTL}}TTL={{.TTL}}{{end}}"
132+ DISTRIBUTION : " {{if .DISTRIBUTION}}DISTRIBUTION={{.DISTRIBUTION}}{{end}}"
133+ K8S_VERSION : " {{if .K8S_VERSION}}K8S_VERSION={{.K8S_VERSION}}{{end}}"
134+ DISK_SIZE : " {{if .DISK_SIZE}}DISK_SIZE={{.DISK_SIZE}}{{end}}"
135+ INSTANCE_TYPE : " {{if .INSTANCE_TYPE}}INSTANCE_TYPE={{.INSTANCE_TYPE}}{{end}}"
136+ # # from deps verify-kubeconfig
137+ CLUSTER_NAME : " {{if .CLUSTER_NAME}}CLUSTER_NAME={{.CLUSTER_NAME}}{{end}}"
138+ # from deps cluster-ports-expose
139+ # # CLUSTER_NAME: "{{if .CLUSTER_NAME}}CLUSTER_NAME={{.CLUSTER_NAME}}{{end}}"
140+ # # from task: utils:port-operations
141+ OPERATION : " {{if .OPERATION}}OPERATION={{.OPERATION}}{{end}}"
142+ # # CLUSTER_NAME already above
87143
88144 cluster-delete :
89145 desc : Delete all test clusters with matching name and clean up kubeconfig
@@ -111,7 +167,7 @@ tasks:
111167 cmds :
112168 - task : container:exec
113169 vars :
114- CMD : ' task {{.TASK}}'
170+ CMD : ' task {{.TASK}} CUSTOMER_NAME={{.CUSTOMER_NAME}} CUSTOMER_EMAIL={{.CUSTOMER_EMAIL}} LICENSE_TYPE={{.LICENSE_TYPE}} EXPIRES_IN={{.EXPIRES_IN}} '
115171
116172 gcp-vm-create :
117173 desc : Create a simple GCP VM instance
0 commit comments