Skip to content

Commit

Permalink
Revert "feat: remove database integration for AMF (#43)"
Browse files Browse the repository at this point in the history
This reverts commit 6250de3.
  • Loading branch information
dariofaccin authored Jun 17, 2024
1 parent 6250de3 commit a441752
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/external/mongodb-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ module "mongodb-operator" {
Create the integrations, for instance:

```text
resource "juju_integration" "nrf-db" {
resource "juju_integration" "amf-db" {
model = var.model_name
application {
name = module.nrf.app_name
endpoint = module.nrf.database_endpoint
name = module.amf.app_name
endpoint = module.amf.database_endpoint
}
application {
Expand Down
1 change: 1 addition & 0 deletions modules/sdcore-control-plane-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Integration provider Requirer Interface
amf:metrics-endpoint grafana-agent:metrics-endpoint prometheus_scrape regular
grafana-agent:logging-provider mongodb:logging loki_push_api regular
grafana-agent:peers grafana-agent:peers grafana_agent_replica peer
mongodb:database amf:database mongodb_client regular
mongodb:database nrf:database mongodb_client regular
mongodb:database smf:database mongodb_client regular
mongodb:database udr:database mongodb_client regular
Expand Down
14 changes: 14 additions & 0 deletions modules/sdcore-control-plane-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@ resource "juju_integration" "ausf-fiveg-nrf" {

# Integrations for `database` endpoint

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

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

application {
name = module.mongodb.app_name
endpoint = module.mongodb.database_endpoint
}
}

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

Expand Down
1 change: 1 addition & 0 deletions modules/sdcore-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Integration provider Requirer Interface
amf:metrics-endpoint grafana-agent:metrics-endpoint prometheus_scrape regular
grafana-agent:logging-provider mongodb:logging loki_push_api regular
grafana-agent:peers grafana-agent:peers grafana_agent_replica peer
mongodb:database amf:database mongodb_client regular
mongodb:database nrf:database mongodb_client regular
mongodb:database smf:database mongodb_client regular
mongodb:database udr:database mongodb_client regular
Expand Down
14 changes: 14 additions & 0 deletions modules/sdcore-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,20 @@ resource "juju_integration" "ausf-fiveg-nrf" {

# Integrations for `database` endpoint

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

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

application {
name = module.mongodb.app_name
endpoint = module.mongodb.database_endpoint
}
}

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

Expand Down

0 comments on commit a441752

Please sign in to comment.