Commit b29f5455 authored by Igor Zimovets (EPAM)'s avatar Igor Zimovets (EPAM)
Browse files

Update path to helm charts inn configmap and deploy

parent 0216b8a8
Pipeline #76850 passed with stage
in 1 minute and 7 seconds
locals {
seismic_store_name = "seismic-store"
seismic_store_image = "community.opengroup.org:5555/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/osdu-gcp"
seismic_store_roles_name = [
"roles/datastore.owner",
"roles/iam.serviceAccountTokenCreator"
]
}
module "seismic_store_workload_identity" {
depends_on = [google_container_node_pool.cluster_node_pool]
source = "./modules/workload_identity"
google_project = var.service_google_project
workload_service_account = local.seismic_store_name
kubernetes_namespace = "default"
google_service_account_iam_roles = local.seismic_store_roles_name
}
# Apply configmap from helm chart
resource "helm_release" "seismic-store-config" {
depends_on = [
helm_release.ent-configmap,
kubernetes_service.k8s-redis-cache-ddms
]
name = "seismic-store-configmap"
repository = "https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/-/jobs/artifacts/gcp-helm-release-0-1/raw/helm-charts/?job=osdu-gcp-helm-charts"
chart = "gcp-seismic-store-configmap"
namespace = "default"
recreate_pods = true
# To-do - Some values require refactoring and cooperation with application developers
set {
name = "data.log_level"
value = var.log_level
}
set {
name = "cloudprovider"
value = "google"
}
set {
name = "data.des_service_host_partition"
value = "http://${local.partition_name}/api/partition/v1"
}
set {
name = "entitlement_base_url_path"
value = "/entitlements/v2"
}
set {
name = "data.data_partition_rest_header_key"
value = "data-partition-id"
}
set {
name = "data.des_service_host_storage"
value = "http://${local.storage_name}.default.svc.cluster.local/api/storage/v2"
}
set {
name = "des_service_host_compliance"
value = "http://${local.legal_name}.default.svc.cluster.local/api/legal/v1"
}
set {
name = "data.seistore_des_target_audience"
value = var.audiences
}
set {
name = "data.service_cloud_project"
value = var.service_google_project
}
set {
name = "data.app_environment_identifier"
value = var.data_partition_id
}
set {
name = "data.imp_service_account_signer"
value = local.seismic_store_name
}
set {
name = "data.des_service_host_entitlement"
value = "http://${local.ent_name}.default.svc.cluster.local/api"
}
set {
name = "data.seistore_des_appkey"
value = "na"
}
set {
name = "data.des_redis_instance_address"
value = "${kubernetes_service.k8s-redis-cache-ddms.metadata[0].name}.${kubernetes_service.k8s-redis-cache-ddms.metadata[0].namespace}.svc.cluster.local"
}
set {
name = "data.locksmap_redis_instance_address"
value = "${kubernetes_service.k8s-redis-cache-ddms.metadata[0].name}.${kubernetes_service.k8s-redis-cache-ddms.metadata[0].namespace}.svc.cluster.local"
}
}
# Apply deploy from helm chart
resource "helm_release" "seismic-store-deploy" {
depends_on = [
helm_release.storage-deploy,
helm_release.seismic-store-config,
module.seismic_store_workload_identity
]
name = "seismic-store-deploy"
repository = "https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/-/jobs/artifacts/gcp-helm-release-0-1/raw/helm-charts/?job=osdu-gcp-helm-charts"
chart = "gcp-seismic-store-deploy"
namespace = "default"
recreate_pods = true
set {
name = "data.image"
value = local.seismic_store_image
}
set {
name = "data.serviceAccountName"
value = module.seismic_store_workload_identity.service_account
}
set {
name = "conf.app_name"
value = local.seismic_store_name
}
}
locals {
seismic_store_name = "seismic-store"
seismic_store_image = "community.opengroup.org:5555/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/osdu-gcp"
seismic_store_roles_name = [
"roles/datastore.owner",
"roles/iam.serviceAccountTokenCreator"
]
}
module "seismic_store_workload_identity" {
depends_on = [google_container_node_pool.cluster_node_pool]
source = "./modules/workload_identity"
google_project = var.service_google_project
workload_service_account = local.seismic_store_name
kubernetes_namespace = "default"
google_service_account_iam_roles = local.seismic_store_roles_name
}
# Apply configmap from helm chart
resource "helm_release" "seismic-store-config" {
depends_on = [
helm_release.ent-configmap,
kubernetes_service.k8s-redis-cache-ddms
]
name = "seismic-store-configmap"
repository = "https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/-/jobs/artifacts/gcp-helm-release-0-1/raw/helm-charts/?job=sdms_osdu-gcp-helm-charts"
chart = "gcp-seismic-store-configmap"
namespace = "default"
recreate_pods = true
# To-do - Some values require refactoring and cooperation with application developers
set {
name = "data.log_level"
value = var.log_level
}
set {
name = "cloudprovider"
value = "google"
}
set {
name = "data.des_service_host_partition"
value = "http://${local.partition_name}/api/partition/v1"
}
set {
name = "entitlement_base_url_path"
value = "/entitlements/v2"
}
set {
name = "data.data_partition_rest_header_key"
value = "data-partition-id"
}
set {
name = "data.des_service_host_storage"
value = "http://${local.storage_name}.default.svc.cluster.local/api/storage/v2"
}
set {
name = "des_service_host_compliance"
value = "http://${local.legal_name}.default.svc.cluster.local/api/legal/v1"
}
set {
name = "data.seistore_des_target_audience"
value = var.audiences
}
set {
name = "data.service_cloud_project"
value = var.service_google_project
}
set {
name = "data.app_environment_identifier"
value = var.data_partition_id
}
set {
name = "data.imp_service_account_signer"
value = local.seismic_store_name
}
set {
name = "data.des_service_host_entitlement"
value = "http://${local.ent_name}.default.svc.cluster.local/api"
}
set {
name = "data.seistore_des_appkey"
value = "na"
}
set {
name = "data.des_redis_instance_address"
value = "${kubernetes_service.k8s-redis-cache-ddms.metadata[0].name}.${kubernetes_service.k8s-redis-cache-ddms.metadata[0].namespace}.svc.cluster.local"
}
set {
name = "data.locksmap_redis_instance_address"
value = "${kubernetes_service.k8s-redis-cache-ddms.metadata[0].name}.${kubernetes_service.k8s-redis-cache-ddms.metadata[0].namespace}.svc.cluster.local"
}
}
# Apply deploy from helm chart
resource "helm_release" "seismic-store-deploy" {
depends_on = [
helm_release.storage-deploy,
helm_release.seismic-store-config,
module.seismic_store_workload_identity
]
name = "seismic-store-deploy"
repository = "https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/seismic/seismic-dms-suite/seismic-store-service/-/jobs/artifacts/gcp-helm-release-0-1/raw/helm-charts/?job=sdms_osdu-gcp-helm-charts"
chart = "gcp-seismic-store-deploy"
namespace = "default"
recreate_pods = true
set {
name = "data.image"
value = local.seismic_store_image
}
set {
name = "data.serviceAccountName"
value = module.seismic_store_workload_identity.service_account
}
set {
name = "conf.app_name"
value = local.seismic_store_name
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment