Skip to content
Snippets Groups Projects

GONRG-5061-refactor-comm-pipe

Merged Siarhei Symanovich (EPAM) requested to merge GONRG-5061-refactor-comm-pipe into master
Files
2
@@ -2,27 +2,18 @@ variables:
OSDU_GCP_ENABLE_BOOTSTRAP: "true"
OSDU_GCP_SERVICE: wks
OSDU_GCP_VENDOR: gcp
OSDU_GCP_WKS_MAPPING: WksMapping
OSDU_GCP_HELM_CONFIG_SERVICE_VARS: >
--set data.wks_gcp_audiences=$GOOGLE_AUDIENCE
--set data.shared_tenant_name=$OSDU_GCP_TENANT
--set data.project_id=$OSDU_GCP_PROJECT
--set data.wks_gcp_storage_bucket_name=$OSDU_GCP_WKS_BUCKET
--set data.wks_gcp_redis_host=$REDIS_SEARCH_HOST
OSDU_GCP_HELM_CONFIG_SERVICE_VARS_DEV2: >
--set data.wks_gcp_audiences=$GOOGLE_AUDIENCE
--set data.project_id=$OSDU_GCP_PROJECT
--set data.shared_tenant_name=$OSDU_GCP_TENANT
--set data.wks_gcp_storage_bucket_name=$OSDU_GCP_WKS_BUCKET
--set data.wks_gcp_redis_host=$REDIS_SEARCH_HOST
OSDU_GCP_HELM_DEPLOYMENT_SERVICE_VARS: >
--set data.image=$CI_REGISTRY_IMAGE/osdu-gcp-$OSDU_GCP_SERVICE:$CI_COMMIT_SHORT_SHA
--set data.serviceAccountName=$OSDU_GCP_SERVICE-k8s
--set data.bootstrapServiceAccountName=$OSDU_GCP_BOOTSTRAP_SERVICE_ACCOUNT
--set data.bootstrap_image=$CI_REGISTRY_IMAGE/osdu-gcp-bootstrap-$OSDU_GCP_SERVICE:$CI_COMMIT_SHORT_SHA
OSDU_GCP_HELM_CONFIG_SERVICE: wks-config
OSDU_GCP_HELM_DEPLOYMENT_SERVICE: wks-deploy
OSDU_GCP_DEPLOYMENTS_SUBDIR: "deployments/scripts/gcp"
osdu-gcp-dev2-deploy-deployment:
needs:
- osdu-gcp-containerize-gitlab
- osdu-gcp-containerize-bootstrap-gitlab
- osdu-gcp-anthos-deploy-configmap
osdu-gcp-test:
variables:
@@ -31,33 +22,3 @@ osdu-gcp-test:
osdu-gcp-dev2-test:
variables:
OS_TARGET_SCHEMA_KIND_TENANT: $OSDU_GCP_OS_TARGET_SCHEMA_KIND_TENANT
osdu-gcp-deploy-deployment:
variables:
OSDU_GCP_BOOTSTRAP_SERVICE: wks-bootstrap
OSDU_GCP_BOOTSTRAP_SERVICE_ACCOUNT: "datafier-workload-identity-gke"
needs:
[
"osdu-gcp-containerize-gitlab",
"osdu-gcp-containerize-bootstrap-gitlab",
"osdu-gcp-deploy-configmap",
]
after_script:
- >
if [[ "$OSDU_GCP_ENABLE_BOOTSTRAP" == "true" ]];
then echo ----- Verify Bootstrap -----;
kubectl rollout status deployment.v1.apps/$OSDU_GCP_SERVICE-bootstrap -n $OSDU_GCP_HELM_NAMESPACE --timeout=900s;
POD=$(kubectl get pod --sort-by=.metadata.creationTimestamp -n $OSDU_GCP_HELM_NAMESPACE | grep $OSDU_GCP_SERVICE-bootstrap | tail -1 | awk '{print $1}');
STATUS=$(kubectl wait -n $OSDU_GCP_HELM_NAMESPACE --for=condition=Ready pod/$POD --timeout=300s);
echo $STATUS;
if [[ "$STATUS" != *"met"* ]];
then echo "POD didn't start correctly"; exit 1; fi;
fi
osdu-gcp-dev2-deploy-deployment:
needs:
[
"osdu-gcp-containerize-gitlab",
"osdu-gcp-containerize-bootstrap-gitlab",
"osdu-gcp-dev2-deploy-configmap",
]
Loading