Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Helm APIs to GA #36

Merged
merged 3 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading