Skip to content

Commit

Permalink
Add sdcore_config integrations for PCF and UDR
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici committed Jun 6, 2024
1 parent 8446c9e commit 2737bed
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions modules/sdcore-control-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,34 @@ resource "juju_integration" "udm-sdcore-config" {
}
}

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

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

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

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

application {
name = module.pcf.app_name
endpoint = module.pcf.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
28 changes: 28 additions & 0 deletions modules/sdcore-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,34 @@ resource "juju_integration" "udm-sdcore-config" {
}
}

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

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

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

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

application {
name = module.pcf.app_name
endpoint = module.pcf.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 2737bed

Please sign in to comment.