Skip to content

Commit

Permalink
Merge branch 'Axual:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvandisseldorp committed Sep 18, 2024
2 parents 5bf5f8c + deb39b3 commit 7fe0bcc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions packaging/helm-charts/ksml/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
*.tgz
*.tbz

workspace/
6 changes: 2 additions & 4 deletions packaging/helm-charts/ksml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ resources:

ksmlRunnerConfig:
definitions:
# generate: generator.yaml
inspect: peek.yaml
generate: generator.yaml
kafka:
application.id: example.datagen

Expand Down Expand Up @@ -266,8 +265,7 @@ resources:

ksmlRunnerConfig:
definitions:
# generate: generator.yaml
inspect: peek.yaml
generate: generator.yaml
kafka:
application.id: example.datagen

Expand Down
6 changes: 5 additions & 1 deletion packaging/helm-charts/ksml/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
Thank you for installing {{ .Chart.Name }}-{{ .Chart.Version }}
Thank you for installing {{ .Chart.Name }}-{{ .Chart.Version }}
{{ if and .Values.serviceMonitor.enabled (not .Values.prometheus.enabled) }}
The service monitor has been disabled because Prometheus is not enabled.
Use prometheus.enabled: true to enable the service monitor
{{- end }}
2 changes: 2 additions & 0 deletions packaging/helm-charts/ksml/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if .Values.prometheus.enabled }}
- port: {{ .Values.prometheus.port }}
targetPort: metrics
protocol: TCP
name: metrics
{{- end }}
selector:
{{- include "ksml.selectorLabels" . | nindent 4 }}
2 changes: 1 addition & 1 deletion packaging/helm-charts/ksml/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) .Values.serviceMonitor.enabled }}
{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) .Values.prometheus.enabled .Values.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
2 changes: 2 additions & 0 deletions packaging/helm-charts/ksml/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ spec:
- name: http
containerPort: {{ .Values.applicationServer.port }}
protocol: TCP
{{- if .Values.prometheus.enabled }}
- name: metrics
containerPort: {{ .Values.prometheus.port }}
protocol: TCP
{{- end }}
{{- if .Values.startupProbe }}
startupProbe:
{{- toYaml .Values.startupProbe | nindent 12 }}
Expand Down
4 changes: 2 additions & 2 deletions packaging/helm-charts/ksml/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ prometheus:

serviceMonitor:
# -- Enables creation of Prometheus Operator [ServiceMonitor](https://prometheus-operator.dev/docs/operator/api/#monitoring.coreos.com/v1.ServiceMonitor).
# Ignored if API `monitoring.coreos.com/v1` is not available.
enabled: true
# Ignored if API `monitoring.coreos.com/v1` is not available or if prometheus is disabled.
enabled: false
# -- Interval at which metrics should be scraped.
interval: 30s
# -- Timeout after which the scrape is ended.
Expand Down

0 comments on commit 7fe0bcc

Please sign in to comment.