Skip to content

Commit 835c589

Browse files
committed
Add visualizer app to CAPI Tilt
1 parent 0f2f85c commit 835c589

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

Tiltfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,15 @@ def deploy_observability():
354354
k8s_yaml(read_file("./.tiltbuild/yaml/prometheus.observability.yaml"), allow_duplicates = True)
355355
k8s_resource(workload = "prometheus-server", new_name = "prometheus", port_forwards = "9090", extra_pod_selectors = [{"app": "prometheus"}], labels = ["observability"])
356356

357+
if "visualizer" in settings.get("deploy_observability", []):
358+
k8s_yaml(read_file("./.tiltbuild/yaml/visualizer.observability.yaml"), allow_duplicates = True)
359+
k8s_resource(
360+
workload = "capi-visualizer",
361+
new_name = "visualizer",
362+
port_forwards = [port_forward(local_port = 8000, container_port = 8081, name = "View visualization")],
363+
labels = ["observability"],
364+
)
365+
357366
def prepare_all():
358367
allow_k8s_arg = ""
359368
if settings.get("allowed_contexts"):

docs/book/src/developer/tilt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ kustomize_substitutions:
173173
{{#/tabs }}
174174

175175
**deploy_observability** ([string], default=[]): If set, installs on the dev cluster one of more observability
176-
tools. Supported values are `grafana`, `loki`, `promtail` and/or `prometheus` (Note: the UI for `grafana` and `prometheus` will be accessible via a link in the tilt console).
176+
tools. Supported values are `grafana`, `loki`, `visualizer`, `promtail` and/or `prometheus` (Note: the UI for `grafana`, `prometheus`, and `visualizer` will be accessible via a link in the tilt console).
177177
Important! This feature requires the `helm` command to be available in the user's path.
178178

179179
**debug** (Map{string: Map} default{}): A map of named configurations for the provider. The key is the name of the provider.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resources:
2+
- ../namespace.yaml
3+
4+
helmCharts:
5+
- name: cluster-api-visualizer
6+
repo: https://raw.githubusercontent.com/Jont828/cluster-api-visualizer/main/helm/repo
7+
releaseName: visualizer
8+
namespace: observability
9+
valuesFile: values.yaml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
replicas: 1
2+
3+
image:
4+
repository: ghcr.io/jont828
5+
name: cluster-api-visualizer
6+
pullPolicy: Always
7+
# Overrides the image tag whose default is the chart appVersion.
8+
tag: "v0.1.0-alpha.2"
9+
10+
label:
11+
key: app
12+
value: visualizer

0 commit comments

Comments
 (0)