diff --git a/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml b/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml index fa8b091..9918b20 100644 --- a/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml +++ b/monitoring/controllers/kube-prometheus-stack/kube-state-metrics-config.yaml @@ -54,7 +54,7 @@ kube-state-metrics: source_name: [ spec, sourceRef, name ] - groupVersionKind: group: helm.toolkit.fluxcd.io - version: v2beta2 + version: v2 kind: HelmRelease metricNamePrefix: gotk metrics: @@ -69,8 +69,10 @@ kube-state-metrics: exported_namespace: [ metadata, namespace ] ready: [ status, conditions, "[type=Ready]", status ] suspended: [ spec, suspend ] - revision: [ status, lastAppliedRevision ] - chart_name: [ spec, chart, spec, chart ] + revision: [ status, history, "0", chartVersion ] + chart_name: [ status, history, "0", chartName ] + chart_app_version: [ status, history, "0", appVersion ] + chart_ref_name: [ spec, chartRef, name ] chart_source_name: [ spec, chart, spec, sourceRef, name ] - groupVersionKind: group: source.toolkit.fluxcd.io @@ -113,7 +115,7 @@ kube-state-metrics: bucket_name: [ spec, bucketName ] - groupVersionKind: group: source.toolkit.fluxcd.io - version: v1beta2 + version: v1 kind: HelmRepository metricNamePrefix: gotk metrics: @@ -132,7 +134,7 @@ kube-state-metrics: url: [ spec, url ] - groupVersionKind: group: source.toolkit.fluxcd.io - version: v1beta2 + version: v1 kind: HelmChart metricNamePrefix: gotk metrics: diff --git a/monitoring/controllers/kube-prometheus-stack/release.yaml b/monitoring/controllers/kube-prometheus-stack/release.yaml index 3302d1b..1f9263f 100644 --- a/monitoring/controllers/kube-prometheus-stack/release.yaml +++ b/monitoring/controllers/kube-prometheus-stack/release.yaml @@ -1,17 +1,12 @@ -apiVersion: helm.toolkit.fluxcd.io/v2beta2 +apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: kube-prometheus-stack spec: interval: 1h - chart: - spec: - version: "58.x" - chart: kube-prometheus-stack - sourceRef: - kind: HelmRepository - name: prometheus-community - interval: 1h + chartRef: + kind: OCIRepository + name: kube-prometheus-stack install: crds: Create upgrade: diff --git a/monitoring/controllers/kube-prometheus-stack/repository.yaml b/monitoring/controllers/kube-prometheus-stack/repository.yaml index f14b884..7a1f809 100644 --- a/monitoring/controllers/kube-prometheus-stack/repository.yaml +++ b/monitoring/controllers/kube-prometheus-stack/repository.yaml @@ -1,8 +1,12 @@ apiVersion: source.toolkit.fluxcd.io/v1beta2 -kind: HelmRepository +kind: OCIRepository metadata: - name: prometheus-community + name: kube-prometheus-stack spec: - interval: 12h - type: oci - url: oci://ghcr.io/prometheus-community/charts + interval: 1h + url: oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack + ref: + semver: "58.x" + layerSelector: + mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" + operation: copy diff --git a/monitoring/controllers/loki-stack/release.yaml b/monitoring/controllers/loki-stack/release.yaml index dbd30f5..52a7c0c 100644 --- a/monitoring/controllers/loki-stack/release.yaml +++ b/monitoring/controllers/loki-stack/release.yaml @@ -1,4 +1,4 @@ -apiVersion: helm.toolkit.fluxcd.io/v2beta2 +apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: loki-stack diff --git a/monitoring/controllers/loki-stack/repository.yaml b/monitoring/controllers/loki-stack/repository.yaml index 49f58cd..d3e086e 100644 --- a/monitoring/controllers/loki-stack/repository.yaml +++ b/monitoring/controllers/loki-stack/repository.yaml @@ -1,4 +1,4 @@ -apiVersion: source.toolkit.fluxcd.io/v1beta2 +apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: grafana-charts