Skip to content

Commit

Permalink
Merge pull request #36 from fluxcd/helmrelease-v2
Browse files Browse the repository at this point in the history
Update Helm APIs to GA
  • Loading branch information
stefanprodan authored May 13, 2024
2 parents facdc76 + 35953ba commit a80c727
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
13 changes: 4 additions & 9 deletions monitoring/controllers/kube-prometheus-stack/release.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
14 changes: 9 additions & 5 deletions monitoring/controllers/kube-prometheus-stack/repository.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion monitoring/controllers/loki-stack/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta2
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: loki-stack
Expand Down
2 changes: 1 addition & 1 deletion monitoring/controllers/loki-stack/repository.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: grafana-charts
Expand Down

0 comments on commit a80c727

Please sign in to comment.