diff --git a/charts/prometheus-kafka-exporter/Chart.yaml b/charts/prometheus-kafka-exporter/Chart.yaml index 85f2e8af6b6d..1939f6c7e4b8 100644 --- a/charts/prometheus-kafka-exporter/Chart.yaml +++ b/charts/prometheus-kafka-exporter/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "v1.7.0" description: A Helm chart to export the metrics from Kafka in Prometheus format using the kafka-exporter from https://github.com/danielqsj/kafka_exporter name: prometheus-kafka-exporter home: https://github.com/danielqsj/kafka_exporter -version: 2.8.0 +version: 2.9.0 kubeVersion: ">=1.19.0-0" sources: - https://gkarthiks.github.io/helm-charts/charts/prometheus-kafka-exporter diff --git a/charts/prometheus-kafka-exporter/README.md b/charts/prometheus-kafka-exporter/README.md index b5b23114d782..2615aff54029 100644 --- a/charts/prometheus-kafka-exporter/README.md +++ b/charts/prometheus-kafka-exporter/README.md @@ -1,4 +1,4 @@ -# prometheus-kafka-exporter +# Prometheus Kafka Exporter A Prometheus exporter for [Apacher Kafka](https://kafka.apache.org/) metrics. @@ -12,14 +12,14 @@ This chart bootstraps a [Kafka Exporter](https://github.com/danielqsj/kafka_expo Helm v2 is no longer supported from chart version 2.0.0. ## Get Repository Info - + ```console helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update ``` -_See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._ - +_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ + ## Install Chart ```console @@ -44,7 +44,7 @@ _See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command doc ## Upgrading Chart ```console -helm upgrade [RELEASE_NAME] [CHART] --install +helm upgrade [RELEASE_NAME] prometheus-community/prometheus-kafka-exporter --install ``` _See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._ diff --git a/charts/prometheus-kafka-exporter/templates/deployment.yaml b/charts/prometheus-kafka-exporter/templates/deployment.yaml index 3596aaa4a59a..187ff76a48b2 100644 --- a/charts/prometheus-kafka-exporter/templates/deployment.yaml +++ b/charts/prometheus-kafka-exporter/templates/deployment.yaml @@ -7,6 +7,9 @@ metadata: chart: {{ template "prometheus-kafka-exporter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- with .Values.deploymentLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: @@ -15,11 +18,15 @@ spec: release: {{ .Release.Name }} template: metadata: - annotations: -{{ toYaml .Values.annotations | indent 8 }} + {{- with .Values.annotations }} + annotations: {{ toYaml . | nindent 8 }} + {{- end }} labels: app: {{ template "prometheus-kafka-exporter.name" . }} release: {{ .Release.Name }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- if .Values.securityContext }} securityContext: @@ -115,8 +122,9 @@ spec: readinessProbe: {{- toYaml .Values.readiness.probe | trim | nindent 12 }} {{- end }} - resources: -{{ toYaml .Values.resources | indent 12 }} + {{- with .Values.resources }} + resources: {{ toYaml . | nindent 12 }} + {{- end }} {{- with .Values.containerSecurityContext }} securityContext: {{- toYaml . | nindent 12 }} diff --git a/charts/prometheus-kafka-exporter/templates/service.yaml b/charts/prometheus-kafka-exporter/templates/service.yaml index 404572dae516..02d9f0ebdd15 100644 --- a/charts/prometheus-kafka-exporter/templates/service.yaml +++ b/charts/prometheus-kafka-exporter/templates/service.yaml @@ -2,8 +2,9 @@ apiVersion: v1 kind: Service metadata: name: {{ template "prometheus-kafka-exporter.fullname" . }} - annotations: -{{ toYaml .Values.service.annotations | indent 4 }} + {{- with .Values.service.annotations }} + annotations: {{ toYaml . | nindent 4 }} + {{- end }} labels: app: {{ template "prometheus-kafka-exporter.name" . }} chart: {{ template "prometheus-kafka-exporter.chart" . }} diff --git a/charts/prometheus-kafka-exporter/values.yaml b/charts/prometheus-kafka-exporter/values.yaml index e03892b8d10a..fa9768393acb 100644 --- a/charts/prometheus-kafka-exporter/values.yaml +++ b/charts/prometheus-kafka-exporter/values.yaml @@ -9,6 +9,9 @@ command: [] imagePullSecrets: [] +# Additional labels for deployment +deploymentLabels: {} + global: # To help compatibility with other charts which use global.imagePullSecrets. # Allow either an array of {name: pullSecret} maps (k8s-style), or an array of strings (more common helm-style). @@ -126,6 +129,9 @@ prometheus: # replacement: $1 # action: replace +# Additional labels for pod +podLabels: {} + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little @@ -140,6 +146,7 @@ resources: {} nodeSelector: {} +# Annotations to attach to pod annotations: {} tolerations: []