@@ -12,6 +12,12 @@ ifndef TF_VAR_TEST_ID
12
12
$(error TF_VAR_TEST_ID is not defined)
13
13
endif
14
14
15
+ check-env-domain :
16
+ ifndef TF_VAR_domain
17
+ $(error TF_VAR_domain is not defined)
18
+ endif
19
+
20
+
15
21
check-env-cloud :
16
22
ifndef cloud
17
23
$(error cloud is not defined)
@@ -328,7 +334,7 @@ generate-kots-config: cloud_storage = $(if $(findstring external,$(storage)),$(c
328
334
generate-kots-config : cloud_registry = $(if $(findstring external,$(registry ) ) ,$(cloud ) ,incluster)
329
335
generate-kots-config : cloud_db = $(if $(findstring external,$(db ) ) ,$(cloud ) ,incluster)
330
336
# # generate-kots-config: Generate the kots config based on test config
331
- generate-kots-config : select-workspace check-env-cloud get-base-config
337
+ generate-kots-config : select-workspace check-env-cloud get-base-config check-env-domain check-env-sub-domain
332
338
$(MAKE ) storage-config-${cloud_storage}
333
339
$(MAKE ) db-config-${cloud_db}
334
340
$(MAKE ) registry-config-${cloud_registry}
@@ -352,6 +358,8 @@ kots-install: preflight-flag = $(if $(preflights:true=),--skip-preflights,)
352
358
kots-install : license-file = $(if $(license_community_$(channel ) ) ,$(license_community_$(channel ) ) ,"../licenses/$(channel ) .yaml")
353
359
kots-install : install-kots-cli
354
360
kubectl kots remove ${app} -n gitpod --force --kubeconfig=${KUBECONFIG} || echo " No kots app existing, Installing"
361
+ $(MAKE ) destroy-gitpod
362
+ export KUBECONFIG=${KUBECONFIG} && \
355
363
kubectl kots install ${app} /${channel} \
356
364
--skip-rbac-check ${version-flag} ${preflight-flag} \
357
365
--wait-duration " 10m" \
@@ -361,7 +369,7 @@ kots-install: install-kots-cli
361
369
--no-port-forward \
362
370
--config-values tmp_config.yml
363
371
364
- time_to_sleep_azure := 600 # azure seem to take more time to fullfil DNS propogation
372
+ time_to_sleep_azure := 800 # azure seem to take more time to fullfil DNS propogation
365
373
time_to_sleep := 300
366
374
367
375
wait_time := 180
0 commit comments