Skip to content

Commit

Permalink
add banners (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks authored Apr 11, 2024
1 parent 299098e commit 322daf4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.12.4
version: 0.12.5
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
3 changes: 3 additions & 0 deletions charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ spec:
fieldRef:
fieldPath: status.hostIP

- name: BANNERS
value: "{{ toJson .Values.global.banners }}"

{{- if ne .Values.traceRatio 0.0 }}
- name: GORILLA_TRACER
value: "otlp+grpc://{{ .Release.Name }}-otel:4317?trace_ratio={{ .Values.traceRatio }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ spec:
value: {{ $.Release.Namespace }}
- name: PROMETHEUS_SERVER
value: "http://{{ $.Release.Name }}-prometheus-server"
- name: BANNERS
value: "{{ toJson .Values.global.banners }}"

- name: G_HOST_IP
valueFrom:
Expand Down
12 changes: 12 additions & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ global:

storageClass: ""

banners:
{}
# banner1:
# type: warning | error | info
# message: "This is a warning message"
# heading: "This is a warning"
# dismissable: true
# banner2:
# type: warning | error | info
# message: "This is a warning message"
# heading: "This is a warning"

common:
labels: {}
annotations: {}
Expand Down

0 comments on commit 322daf4

Please sign in to comment.