diff --git a/charts/iperf3-monitor/Chart.yaml b/charts/iperf3-monitor/Chart.yaml index fc274f9..6169cdb 100644 --- a/charts/iperf3-monitor/Chart.yaml +++ b/charts/iperf3-monitor/Chart.yaml @@ -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" diff --git a/charts/iperf3-monitor/values.yaml b/charts/iperf3-monitor/values.yaml index 4c4314d..2393df7 100644 --- a/charts/iperf3-monitor/values.yaml +++ b/charts/iperf3-monitor/values.yaml @@ -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"