Skip to content

Commit

Permalink
feat: add TLS integration to the NMS (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciareinoso authored Nov 18, 2024
1 parent f8eacba commit 09920eb
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 @@ -617,6 +617,34 @@ resource "juju_integration" "udr-certificates" {
}
}

resource "juju_integration" "nms-certificates" {
model = data.juju_model.sdcore.name

application {
name = module.nms.app_name
endpoint = module.nms.requires.certificates
}

application {
name = module.self-signed-certificates.app_name
endpoint = module.self-signed-certificates.certificates_endpoint
}
}

resource "juju_integration" "traefik-certificates" {
model = data.juju_model.sdcore.name

application {
name = module.traefik.app_name
endpoint = module.traefik.requires.certificates
}

application {
name = module.self-signed-certificates.app_name
endpoint = module.self-signed-certificates.certificates_endpoint
}
}

# Integrations for `ingress` endpoint

resource "juju_integration" "nms-ingress" {
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 @@ -638,6 +638,34 @@ resource "juju_integration" "udr-certificates" {
}
}

resource "juju_integration" "nms-certificates" {
model = data.juju_model.sdcore.name

application {
name = module.nms.app_name
endpoint = module.nms.requires.certificates
}

application {
name = module.self-signed-certificates.app_name
endpoint = module.self-signed-certificates.certificates_endpoint
}
}

resource "juju_integration" "traefik-certificates" {
model = data.juju_model.sdcore.name

application {
name = module.traefik.app_name
endpoint = module.traefik.requires.certificates
}

application {
name = module.self-signed-certificates.app_name
endpoint = module.self-signed-certificates.certificates_endpoint
}
}

# Integrations for `ingress` endpoint

resource "juju_integration" "nms-ingress" {
Expand Down

0 comments on commit 09920eb

Please sign in to comment.