Skip to content

Commit

Permalink
chore: Add sdcore_config integrations for PCF and UDR (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici authored Jun 6, 2024
1 parent 8446c9e commit fff7cdf
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 @@ -362,6 +362,20 @@ resource "juju_integration" "nssf-sdcore-config" {
}
}

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
}
}

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

Expand Down Expand Up @@ -390,6 +404,20 @@ 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
}
}

# 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 @@ -369,6 +369,20 @@ resource "juju_integration" "nssf-sdcore-config" {
}
}

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
}
}

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

Expand Down Expand Up @@ -397,6 +411,20 @@ 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
}
}

# Integrations for `metrics` endpoint

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

0 comments on commit fff7cdf

Please sign in to comment.