Skip to content

Graph

This example shows how to use the graph command with the --graph-width flag.

helmwave.yml
name: "Example: graph"
version: "0.32.3"

# OCI: modern way to get chart from registry
registries:
  - host: registry-1.docker.io

.options: &options
  namespace: my-namespace
  create_namespace: true
  wait: true
  timeout: 1m
  max_history: 3 # best practice
  offline_kube_version: 1.22.2
  chart:
    # For example, we will use bitnami/nats chart, because it's small and fast
    name: oci://registry-1.docker.io/bitnamicharts/nats
    version: 7.8.3 # best practice

# We will install 2 releases with the same options
releases:
  - name: short-name
    <<: *options
    depends_on:
      - long-name-with-very-long-name

  - name: long-name-with-very-long-name
    <<: *options
helmwave graph --graph-width 20
[🙃 aka INFO]: show graph:
┌──────────────────┐   ┌──────────────────┐
│ short-name@my... ├───┤ long-name-wit... │
└──────────────────┘   └──────────────────┘
helmwave graph --graph-width 15
[🙃 aka INFO]: show graph:
┌──────────────────┐   ┌──────────────────┐
│ short-name@my... ├───┤ long-name-wit... │
└──────────────────┘   └──────────────────┘
helmwave graph --graph-width -15
[🙃 aka INFO]: show graph:
┌─────────────────────────┐   ┌─────────────────────────┐
│ short-name@my-namespace ├───┤ long-name-with-very-... │
└─────────────────────────┘   └─────────────────────────┘
helmwave graph --graph-width -5
[🙃 aka INFO]: show graph:
┌─────────────────────────┐   ┌───────────────────────────────────┐
│ short-name@my-namespace ├───┤ long-name-with-very-long-name@... │
└─────────────────────────┘   └───────────────────────────────────┘