@@ -36,6 +36,8 @@ substitutions:
3636 _TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD :
3737 _TEMPLATE_DEFAULT_CONTAINER_REGISTRY :
3838 _TEMPLATE_DEFAULT_KUBERNETES :
39+ _TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX :
40+ _TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD :
3941 _TEMPLATE_DEFAULT_POSTGRES :
4042
4143steps :
7678 export template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
7779 export template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
7880 export template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
81+ export template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
82+ export template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
7983 export template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
8084 export taito_target_env
8185 taito_target_env="$${branch_name}"
8690 source ./taito-config.sh
8791
8892 echo "- Get cluster credentials"
89- if ! gcloud container clusters get-credentials "$${kubectl_name }" \
90- --zone "$${gcloud_zone }"; then
93+ if ! gcloud container clusters get-credentials "$${kubernetes_name }" \
94+ --zone "$${taito_provider_zone }"; then
9195 echo "ERROR: Get cluster credentials failed"
9296 exit 1
9397 fi
@@ -133,6 +137,8 @@ steps:
133137 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
134138 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
135139 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
140+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
141+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
136142 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
137143
138144- id : artifact-prepare
@@ -162,6 +168,8 @@ steps:
162168 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
163169 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
164170 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
171+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
172+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
165173 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
166174
167175- id : scan
@@ -191,6 +199,8 @@ steps:
191199 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
192200 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
193201 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
202+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
203+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
194204 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
195205
196206# Build artifacts
@@ -222,6 +232,8 @@ steps:
222232 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
223233 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
224234 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
235+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
236+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
225237 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
226238
227239- id : artifact-build-admin
@@ -251,6 +263,8 @@ steps:
251263 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
252264 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
253265 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
266+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
267+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
254268 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
255269
256270- id : artifact-push-admin
@@ -280,6 +294,8 @@ steps:
280294 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
281295 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
282296 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
297+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
298+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
283299 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
284300
285301- id : artifact-build-client
@@ -309,6 +325,8 @@ steps:
309325 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
310326 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
311327 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
328+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
329+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
312330 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
313331
314332- id : artifact-push-client
@@ -338,6 +356,8 @@ steps:
338356 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
339357 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
340358 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
359+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
360+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
341361 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
342362
343363- id : artifact-build-graphql
@@ -367,6 +387,8 @@ steps:
367387 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
368388 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
369389 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
390+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
391+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
370392 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
371393
372394- id : artifact-push-graphql
@@ -396,6 +418,8 @@ steps:
396418 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
397419 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
398420 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
421+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
422+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
399423 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
400424
401425- id : artifact-build-server
@@ -425,6 +449,8 @@ steps:
425449 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
426450 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
427451 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
452+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
453+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
428454 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
429455
430456- id : artifact-push-server
@@ -454,6 +480,8 @@ steps:
454480 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
455481 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
456482 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
483+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
484+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
457485 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
458486
459487- id : artifact-build-www
@@ -483,6 +511,8 @@ steps:
483511 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
484512 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
485513 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
514+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
515+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
486516 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
487517
488518- id : artifact-push-www
@@ -512,6 +542,8 @@ steps:
512542 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
513543 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
514544 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
545+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
546+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
515547 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
516548
517549# Deploy to target environment
@@ -542,6 +574,8 @@ steps:
542574 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
543575 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
544576 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
577+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
578+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
545579 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
546580
547581- id : deployment-deploy
@@ -570,6 +604,8 @@ steps:
570604 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
571605 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
572606 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
607+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
608+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
573609 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
574610
575611# Run tests against the target environment
@@ -600,6 +636,8 @@ steps:
600636 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
601637 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
602638 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
639+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
640+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
603641 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
604642
605643- id : test
@@ -629,6 +667,8 @@ steps:
629667 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
630668 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
631669 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
670+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
671+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
632672 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
633673
634674- id : deployment-verify
@@ -657,6 +697,8 @@ steps:
657697 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
658698 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
659699 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
700+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
701+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
660702 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
661703
662704# Publish and release
@@ -687,6 +729,8 @@ steps:
687729 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
688730 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
689731 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
732+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
733+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
690734 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
691735
692736- id : artifact-release
@@ -715,4 +759,6 @@ steps:
715759 - template_default_monitoring_uptime_channels_prod=${_TEMPLATE_DEFAULT_MONITORING_UPTIME_CHANNELS_PROD}
716760 - template_default_container_registry=${_TEMPLATE_DEFAULT_CONTAINER_REGISTRY}
717761 - template_default_kubernetes=${_TEMPLATE_DEFAULT_KUBERNETES}
762+ - template_default_kubernetes_cluster_prefix=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX}
763+ - template_default_kubernetes_cluster_prefix_prod=${_TEMPLATE_DEFAULT_KUBERNETES_CLUSTER_PREFIX_PROD}
718764 - template_default_postgres=${_TEMPLATE_DEFAULT_POSTGRES}
0 commit comments