Skip to content

Deployment nodes name is wrong derived from instanceOf #2387

@MLNW

Description

@MLNW

Relates to

VSCode extension

Version you are using

1.44.0

Describe the issue

I'm creating a deployment diagram that documents deployments in a Kubernetes cluster. I defined a kubernetesNamespace deploymentNode and want to show what is deployed into them.

specification {
  deploymentNode kubernetesNamespace {
    style {
      color blue
      icon tech:kubernetes
    }
  }
}

The relevant parts from the deployment model:

deployment {
...
          cert_manager = kubernetesNamespace "cert-manager" {
            instanceOf ca {
              technology "Cert Manager"
            }
          }

          keycloak = kubernetesNamespace "keycloak" {
            instanceOf identity
          }
...
}

And the relevant parts from my model:

model {
...
  identity = external_system "Identity Provider" {
    summary "A service for handling identity management."
    technology "Keycloak"
    icon https://www.keycloak.org/resources/favicon.svg
  }

  ca = external_system "Certificate Authority" {
    summary "A certificate authority for digital certificates that enable HTTPs."
    technology "Lets Encrypt"
    icon https://letsencrypt.org/favicon.ico
  }
...
}

What I would expect is that each namespace is titled as defined in the deployment model but that is not always the case. The keycloak namespace is named after the element:

Image

Interestingly the cert-manager namespaces behaves as expected:

Image

I reproduced the issue and added a link to the playground.

If possible, include link to the playground with example

https://playground.likec4.dev/share/kM9R3BddsW/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions