diff --git a/charts/base-cluster/templates/weave/gitops.yaml b/charts/base-cluster/templates/weave/gitops.yaml new file mode 100644 index 0000000000..f0bb215731 --- /dev/null +++ b/charts/base-cluster/templates/weave/gitops.yaml @@ -0,0 +1,24 @@ +{{- if .Values.weaveworks.enabled }} +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + annotations: + metadata.weave.works/description: This is the Weave GitOps Dashboard. It provides + a simple way to get insights into your GitOps workloads. + name: weave-dashboard + namespace: weave +spec: + chart: + spec: + chart: weave-gitops + sourceRef: + kind: HelmRepository + name: weaveworks + interval: 5m + values: + ingress: + enabled: false + host: "" + metrics: + enabled: {{ and .Values.weaveworks.metrics.enabled .Values.monitoring.prometheus.enabled }} +{{- end }} \ No newline at end of file diff --git a/charts/base-cluster/values.schema.json b/charts/base-cluster/values.schema.json index 287ed29718..907076f2cb 100644 --- a/charts/base-cluster/values.schema.json +++ b/charts/base-cluster/values.schema.json @@ -1263,6 +1263,60 @@ }, "additionalProperties": false }, + "weaveworks": { + "type": "object", + "description": "Values for the gitops-chart", + "properties": { + "enabled": { + "type": "boolean" + }, + "ingress": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "host": { + "type": "string" + }, + "tls": { + "type": "array" + } + } + }, + "oidcSecret": { + "type": "object", + "properties": { + "additionalKeys": { + "type": "object" + }, + "create": { + "type": "boolean" + } + } + }, + "replicaCount": { + "type": "integer" + }, + "rbac": { + "additionalRules": { + "type": "array" + }, + "create": { + "type": "boolean" + }, + "impersonationResourceNames": { + "type": "array" + }, + "impersonationResources": { + "type": "array" + }, + "viewSecretsResourceNames": { + "type": "array" + } + } + } + }, "common": { "type": "object", "description": "Values for sub-chart" diff --git a/charts/base-cluster/values.yaml b/charts/base-cluster/values.yaml index 3430cfdcfb..bd0bf4691f 100644 --- a/charts/base-cluster/values.yaml +++ b/charts/base-cluster/values.yaml @@ -151,6 +151,11 @@ global: charts: velero: 5.x condition: "{{ .Values.backup.enabled }}" + weaveworks: + url: oci://ghcr.io/weaveworks/charts + charts: + weave-gitops: 4.x.x + condition: "{{ .Values.weaveworks.enabled }}" open-telemetry: url: https://open-telemetry.github.io/opentelemetry-helm-charts charts: @@ -444,3 +449,6 @@ backup: limits: cpu: 500m memory: 500Mi + +weaveworks: + enabled: false \ No newline at end of file