update grafana module (https://git.kvazaric.ru/gstykalin/kube-forge/-/issues/7)
This commit is contained in:
@@ -149,8 +149,8 @@ type Visualization struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Grafana struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Image string `yaml:"image" env-default:"grafana/grafana"`
|
||||
Tag string `yaml:"tag" env-default:"10.4.1"`
|
||||
Image string `yaml:"image" env-default:"harbor.kvazaric.ru/kube-forge/grafana"`
|
||||
Tag string `yaml:"tag" env-default:"10.4.1-v2"`
|
||||
Expose struct {
|
||||
Type string `yaml:"type" env-default:"ingress"`
|
||||
Domain string `yaml:"domain" env-default:""`
|
||||
|
||||
@@ -245,6 +245,7 @@
|
||||
{{- if and .Modules.Observability.Enabled .Modules.Observability.Logging.Enabled }}
|
||||
- name: Kube-loki
|
||||
type: loki
|
||||
uid: P2895588539814C92
|
||||
access: proxy
|
||||
url: http://loki:3100
|
||||
editable: false
|
||||
@@ -288,7 +289,7 @@
|
||||
exporters: [otlphttp]
|
||||
|
||||
ingress:
|
||||
{{- if eq .Modules.Observability.Visualization.Grafana.Expose.Type "ingress" }}
|
||||
{{- if and .Modules.Observability.Visualization.Grafana.Enabled (eq .Modules.Observability.Visualization.Grafana.Expose.Type "ingress") }}
|
||||
enabled: true
|
||||
{{- else }}
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user