Skip to content

Commit

Permalink
Adds sdcore-config integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold committed Jun 4, 2024
1 parent bb7031f commit 7fc25cf
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions modules/sdcore-control-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,36 @@ resource "juju_integration" "webui-common-database" {
}
}

# Integrations for `sdcore-config` endpoint

resource "juju_integration" "amf-sdcore-config" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.amf.app_name
endpoint = module.amf.sdcore_config_endpoint
}

application {
name = module.webui.app_name
endpoint = module.webui.sdcore_config_endpoint
}
}

resource "juju_integration" "ausf-sdcore-config" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.ausf.app_name
endpoint = module.ausf.sdcore_config_endpoint
}

application {
name = module.webui.app_name
endpoint = module.webui.sdcore_config_endpoint
}
}

# Integrations for `metrics` endpoint

resource "juju_integration" "amf-metrics" {
Expand Down
30 changes: 30 additions & 0 deletions modules/sdcore-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,36 @@ resource "juju_integration" "webui-common-database" {
}
}

# Integrations for `sdcore-config` endpoint

resource "juju_integration" "amf-sdcore-config" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.amf.app_name
endpoint = module.amf.sdcore_config_endpoint
}

application {
name = module.webui.app_name
endpoint = module.webui.sdcore_config_endpoint
}
}

resource "juju_integration" "ausf-sdcore-config" {
model = var.create_model == true ? juju_model.sdcore[0].name : var.model_name

application {
name = module.ausf.app_name
endpoint = module.ausf.sdcore_config_endpoint
}

application {
name = module.webui.app_name
endpoint = module.webui.sdcore_config_endpoint
}
}

# Integrations for `metrics` endpoint

resource "juju_integration" "amf-metrics" {
Expand Down

0 comments on commit 7fc25cf

Please sign in to comment.