Compare commits

1 Commits

Author SHA1 Message Date
8d51afc24e Feat: Add optional TrueCharts Prometheus Operator dependency (#8)
This commit introduces a configurable dependency for the Prometheus Operator,
allowing you to choose between the standard kube-prometheus-stack and
the TrueCharts version of prometheus-operator.

Changes include:

1.  **values.yaml:**
    *   Added a `dependencies` section with the following new values:
        *   `useTrueChartsPrometheusOperator` (boolean, default: false):
            Controls which operator dependency is enabled.
        *   `trueChartsPrometheusOperatorRepository` (string, default:
            "oci://tccr.io/truecharts"): Repository for the TrueCharts operator.
        *   `trueChartsPrometheusOperatorVersion` (string, default: "8.11.1"):
            Chart version for the TrueCharts operator.

2.  **Chart.yaml:**
    *   The `kube-prometheus-stack` dependency condition is updated to
        `"serviceMonitor.enabled, !values.dependencies.useTrueChartsPrometheusOperator"`.
    *   A new dependency for `prometheus-operator` (TrueCharts) is added:
        *   `name: prometheus-operator`
        *   `version: "{{ .Values.dependencies.trueChartsPrometheusOperatorVersion }}"`
        *   `repository: "{{ .Values.dependencies.trueChartsPrometheusOperatorRepository }}"`
        *   `condition: "serviceMonitor.enabled, values.dependencies.useTrueChartsPrometheusOperator"`

This provides you with more flexibility in choosing your Prometheus
Operator stack while using the iperf3-monitor chart.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-06-20 13:25:30 +05:30
9 changed files with 22 additions and 235 deletions

View File

@@ -27,4 +27,8 @@ dependencies:
- name: kube-prometheus-stack # Example dependency if you package the whole stack
version: ">=30.0.0" # Specify a compatible version range
repository: https://prometheus-community.github.io/helm-charts
condition: serviceMonitor.enabled # Only include if ServiceMonitor is enabled (assuming Prometheus Operator)
condition: "serviceMonitor.enabled, !values.dependencies.useTrueChartsPrometheusOperator"
- name: prometheus-operator
version: "{{ .Values.dependencies.trueChartsPrometheusOperatorVersion }}"
repository: "{{ .Values.dependencies.trueChartsPrometheusOperatorRepository }}"
condition: "serviceMonitor.enabled, values.dependencies.useTrueChartsPrometheusOperator"

View File

@@ -118,3 +118,20 @@ networkPolicy:
namespaceSelector: {}
# -- Specify pod selectors if needed.
podSelector: {}
# -----------------------------------------------------------------------------
# Dependency Configuration
# -----------------------------------------------------------------------------
dependencies:
# -- Set to true to use the TrueCharts Prometheus Operator instead of kube-prometheus-stack.
# This chart's ServiceMonitor resources require a Prometheus Operator to be functional.
# If serviceMonitor.enabled is true, one of these two dependencies will be pulled based on this flag.
useTrueChartsPrometheusOperator: false
# -- Repository for the TrueCharts Prometheus Operator.
# Only used if dependencies.useTrueChartsPrometheusOperator is true.
trueChartsPrometheusOperatorRepository: "oci://tccr.io/truecharts"
# -- Chart version for the TrueCharts Prometheus Operator.
# Only used if dependencies.useTrueChartsPrometheusOperator is true.
trueChartsPrometheusOperatorVersion: "8.11.1"

View File

@@ -1,234 +0,0 @@
apiVersion: v1
entries:
iperf3-monitor:
- annotations:
artifacthub.io/category: networking
artifacthub.io/changes: |
- Add initial Helm chart structure.
apiVersion: v2
appVersion: 0.1.9
created: "2025-07-01T20:10:45.681665311Z"
dependencies:
- condition: dependencies.install, serviceMonitor.enabled, !dependencies.useTrueChartsPrometheusOperator
name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: '>=30.0.0'
- condition: dependencies.install, serviceMonitor.enabled, dependencies.useTrueChartsPrometheusOperator
name: prometheus-operator
repository: oci://tccr.io/truecharts
version: '>=8.11.1'
description: A Helm chart for deploying a Kubernetes-native iperf3 network performance
monitoring service with Prometheus and Grafana.
digest: ba71668f2e79f143971758eddf2c1ccb81e8fa8dd681748f4a34718af83c523c
home: https://github.com/malarinv/iperf3-monitor
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png
keywords:
- iperf3
- network
- performance
- monitoring
- kubernetes
- prometheus
- grafana
maintainers:
- email: malarkannan.invention@gmail.com
name: Malar Invention
name: iperf3-monitor
sources:
- https://github.com/malarinv/iperf3-monitor
type: application
urls:
- https://malarinv.github.io/iperf3-monitor/iperf3-monitor-0.1.9.tgz
version: 0.1.9
- annotations:
artifacthub.io/category: networking
artifacthub.io/changes: |
- Add initial Helm chart structure.
apiVersion: v2
appVersion: 0.1.8
created: "2025-06-20T20:43:41.906216787Z"
dependencies:
- condition: dependencies.install, serviceMonitor.enabled, !dependencies.useTrueChartsPrometheusOperator
name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: '>=30.0.0'
- condition: dependencies.install, serviceMonitor.enabled, dependencies.useTrueChartsPrometheusOperator
name: prometheus-operator
repository: oci://tccr.io/truecharts
version: '>=8.11.1'
description: A Helm chart for deploying a Kubernetes-native iperf3 network performance
monitoring service with Prometheus and Grafana.
digest: dd1707ef16c06a1a3c4979983a0141c0f19bbd51b7b95a3bda22033780a517ba
home: https://github.com/malarinv/iperf3-monitor
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png
keywords:
- iperf3
- network
- performance
- monitoring
- kubernetes
- prometheus
- grafana
maintainers:
- email: malarkannan.invention@gmail.com
name: Malar Invention
name: iperf3-monitor
sources:
- https://github.com/malarinv/iperf3-monitor
type: application
urls:
- https://malarinv.github.io/iperf3-monitor/iperf3-monitor-0.1.8.tgz
version: 0.1.8
- annotations:
artifacthub.io/category: networking
artifacthub.io/changes: |
- Add initial Helm chart structure.
apiVersion: v2
appVersion: 0.1.6
created: "2025-06-20T19:36:24.8256252Z"
dependencies:
- condition: dependencies.install, serviceMonitor.enabled, !dependencies.useTrueChartsPrometheusOperator
name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: '>=30.0.0'
- condition: dependencies.install, serviceMonitor.enabled, dependencies.useTrueChartsPrometheusOperator
name: prometheus-operator
repository: oci://tccr.io/truecharts
version: '>=8.11.1'
description: A Helm chart for deploying a Kubernetes-native iperf3 network performance
monitoring service with Prometheus and Grafana.
digest: e23e2801a298edf8c345fcce210f7186a2304cf8321f315a244e44f0ef83e4bd
home: https://github.com/malarinv/iperf3-monitor
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png
keywords:
- iperf3
- network
- performance
- monitoring
- kubernetes
- prometheus
- grafana
maintainers:
- email: malarkannan.invention@gmail.com
name: Malar Invention
name: iperf3-monitor
sources:
- https://github.com/malarinv/iperf3-monitor
type: application
urls:
- https://malarinv.github.io/iperf3-monitor/iperf3-monitor-0.1.6.tgz
version: 0.1.6
- annotations:
artifacthub.io/category: networking
artifacthub.io/changes: |
- Add initial Helm chart structure.
apiVersion: v2
appVersion: 0.1.5
created: "2025-06-20T13:41:15.223267266Z"
dependencies:
- condition: dependencies.install, serviceMonitor.enabled, !dependencies.useTrueChartsPrometheusOperator
name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: '>=30.0.0'
- condition: dependencies.install, serviceMonitor.enabled, dependencies.useTrueChartsPrometheusOperator
name: prometheus-operator
repository: oci://tccr.io/truecharts
version: '>=8.11.1'
description: A Helm chart for deploying a Kubernetes-native iperf3 network performance
monitoring service with Prometheus and Grafana.
digest: 565b4615cbfa166cb5b158d43bc0f79fb2482c6213e8d9c67b32cd2e2dac6103
home: https://github.com/malarinv/iperf3-monitor
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png
keywords:
- iperf3
- network
- performance
- monitoring
- kubernetes
- prometheus
- grafana
maintainers:
- email: malarkannan.invention@gmail.com
name: Malar Invention
name: iperf3-monitor
sources:
- https://github.com/malarinv/iperf3-monitor
type: application
urls:
- https://malarinv.github.io/iperf3-monitor/iperf3-monitor-0.1.5.tgz
version: 0.1.5
- annotations:
artifacthub.io/category: networking
artifacthub.io/changes: |
- Add initial Helm chart structure.
apiVersion: v2
appVersion: 0.1.4
created: "2025-06-20T12:13:54.388432454Z"
dependencies:
- condition: serviceMonitor.enabled, !dependencies.useTrueChartsPrometheusOperator
name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: '>=30.0.0'
- condition: serviceMonitor.enabled, dependencies.useTrueChartsPrometheusOperator
name: prometheus-operator
repository: oci://tccr.io/truecharts
version: '>=8.11.1'
description: A Helm chart for deploying a Kubernetes-native iperf3 network performance
monitoring service with Prometheus and Grafana.
digest: 6c0dbe54f696cdc2d98ecb54cff5c5b3c9eaea913e3caa798ad81c587ef5d199
home: https://github.com/malarinv/iperf3-monitor
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png
keywords:
- iperf3
- network
- performance
- monitoring
- kubernetes
- prometheus
- grafana
maintainers:
- email: malarkannan.invention@gmail.com
name: Malar Invention
name: iperf3-monitor
sources:
- https://github.com/malarinv/iperf3-monitor
type: application
urls:
- https://malarinv.github.io/iperf3-monitor/iperf3-monitor-0.1.4.tgz
version: 0.1.4
- annotations:
artifacthub.io/category: networking
artifacthub.io/changes: |
- Add initial Helm chart structure.
apiVersion: v2
appVersion: 0.1.1
created: "2025-06-19T21:43:47.560731092Z"
dependencies:
- condition: serviceMonitor.enabled
name: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
version: '>=30.0.0'
description: A Helm chart for deploying a Kubernetes-native iperf3 network performance
monitoring service with Prometheus and Grafana.
digest: e334d11e50f6303486830cc1384bfe21eecfe803f665868eaeb294d5ef168559
home: https://github.com/malarinv/iperf3-monitor
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png
keywords:
- iperf3
- network
- performance
- monitoring
- kubernetes
- prometheus
- grafana
maintainers:
- email: malarkannan.invention@gmail.com
name: Malar Invention
name: iperf3-monitor
sources:
- https://github.com/malarinv/iperf3-monitor
type: application
urls:
- https://malarinv.github.io/iperf3-monitor/iperf3-monitor-0.1.1.tgz
version: 0.1.1
generated: "2025-07-01T20:10:45.613763939Z"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.