Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 527d70d

Browse files
authored
Merge pull request #118 from cospeedster/patch-2
chore(deps)!: Bump version of prometheus-elasticsearch-exporter to 6.5.0
2 parents c894ff2 + 001cd67 commit 527d70d

23 files changed

+201
-165
lines changed

apigateway/helm/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ dependencies:
44
version: 1.0.3
55
- name: prometheus-elasticsearch-exporter
66
repository: https://prometheus-community.github.io/helm-charts
7-
version: 5.0.0
8-
digest: sha256:ca4d38e54226ff732696e5af73cb2ed423acece567769328f72d07fd38e6c15c
9-
generated: "2024-06-25T14:25:11.045085+02:00"
7+
version: 6.5.0
8+
digest: sha256:b09f538632326fa846608cca98435da9b12ab19393f782b95e43f330753ac04d
9+
generated: "2024-11-08T09:28:49.886783483+01:00"

apigateway/helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type: application
3333
# This is the chart version. This version number should be incremented each time you make changes
3434
# to the chart and its templates, including the app version.
3535
# Versions are expected to follow Semantic Versioning (https://semver.org/)
36-
version: 1.2.9
36+
version: 2.0.0
3737

3838
# This is the version number of the application being deployed. This version number should be
3939
# incremented each time you make changes to the application. Versions are not expected to
@@ -50,5 +50,5 @@ dependencies:
5050
repository: "https://prometheus-community.github.io/helm-charts"
5151
tags:
5252
- prometheus-elasticsearch-exporter
53-
version: 5.0.0
53+
version: 6.5.0
5454
condition: prometheus-elasticsearch-exporter.enabled

apigateway/helm/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,12 @@ spec:
103103
sessionAffinityConfig:
104104
clientIP:
105105
timeoutSeconds: 1000
106-
107106
---
108107
# apigateway-ingress.yaml
109108
apiVersion: extensions/v1beta1
110109
kind: Ingress
111110
metadata:
112-
annotations:
111+
annotations:
113112
nginx.ingress.kubernetes.io/affinity: "cookie"
114113
```
115114

@@ -170,6 +169,25 @@ Sub-folder `examples` contains some *values* examples for more use-cases. To use
170169
| `1.2.7` | Added possibility to rename roleBinding for API Gateway, Kibana and Elasticsearch. This allows for multiple deployments into the same namespace. Also, CRD ServiceMonitor selector corrected. Support of ES storage PVC annotations. |
171170
| `1.2.8` | `tpl` function support in `affinity` value added. `affinity` support added for Kibana and Elasticsearch. `topologySpreadConstraints` support added for APIGW, Elasticsearch and Kibana. |
172171
| `1.2.9` | `priorityClassName` support added for APIGW, Elasticsearch and Kibana. |
172+
| `2.0.0` | Prometheus Elasticsearch Exporter version `6.5.0` is used. Value `revisionHistoryLimit` is added and documented. |
173+
174+
## Chart Version `2.0.0`
175+
176+
The Chart version `2.0.0` uses the [Prometheus Elasticsearch Exporter](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-elasticsearch-exporter) version `6.5.0`.
177+
178+
### Migrate from `1.x.x` to `2.0.0`
179+
180+
If you want to migrate the Elasticsearch Exporter version `5.0.0`, you must delete the existing deployment. Over install is not working. You see the error ...
181+
182+
```
183+
Error: UPGRADE FAILED: cannot patch "apigw-prometheus-elasticsearch-exporter" ...
184+
```
185+
186+
To delete the Elasticsearch Exporter deployment ...
187+
188+
```
189+
kubectl delete deployment <Helm-release-name>-prometheus-elasticsearch-exporter -n <namespace>
190+
```
173191

174192
## Values
175193

apigateway/helm/README.md.gotmpl

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,16 @@ spec:
103103
sessionAffinityConfig:
104104
clientIP:
105105
timeoutSeconds: 1000
106-
107106
---
108107
# apigateway-ingress.yaml
109108
apiVersion: extensions/v1beta1
110109
kind: Ingress
111110
metadata:
112-
annotations:
111+
annotations:
113112
nginx.ingress.kubernetes.io/affinity: "cookie"
114113
```
115114

116-
Note, if you are using the default configuration and nginx as your ingress controller, sticky sessions will be enabled by default for the UI port and ingress. Change the ingress annotations accordingly for other ingress controllers like Traefik.
117-
115+
Note, if you are using the default configuration and nginx as your ingress controller, sticky sessions will be enabled by default for the UI port and ingress. Change the ingress annotations accordingly for other ingress controllers like Traefik.
118116

119117
## Using an external load balancer
120118

@@ -171,5 +169,24 @@ Sub-folder `examples` contains some *values* examples for more use-cases. To use
171169
| `1.2.7` | Added possibility to rename roleBinding for API Gateway, Kibana and Elasticsearch. This allows for multiple deployments into the same namespace. Also, CRD ServiceMonitor selector corrected. Support of ES storage PVC annotations. |
172170
| `1.2.8` | `tpl` function support in `affinity` value added. `affinity` support added for Kibana and Elasticsearch. `topologySpreadConstraints` support added for APIGW, Elasticsearch and Kibana. |
173171
| `1.2.9` | `priorityClassName` support added for APIGW, Elasticsearch and Kibana. |
172+
| `2.0.0` | Prometheus Elasticsearch Exporter version `6.5.0` is used. Value `revisionHistoryLimit` is added and documented. |
173+
174+
## Chart Version `2.0.0`
175+
176+
The Chart version `2.0.0` uses the [Prometheus Elasticsearch Exporter](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-elasticsearch-exporter) version `6.5.0`.
177+
178+
### Migrate from `1.x.x` to `2.0.0`
179+
180+
If you want to migrate the Elasticsearch Exporter version `5.0.0`, you must delete the existing deployment. Over install is not working. You see the error ...
181+
182+
```
183+
Error: UPGRADE FAILED: cannot patch "apigw-prometheus-elasticsearch-exporter" ...
184+
```
185+
186+
To delete the Elasticsearch Exporter deployment ...
187+
188+
```
189+
kubectl delete deployment <Helm-release-name>-prometheus-elasticsearch-exporter -n <namespace>
190+
```
174191

175192
{{ template "chart.valuesSection" . }}
0 Bytes
Binary file not shown.
-8.16 KB
Binary file not shown.
9.8 KB
Binary file not shown.

apigateway/helm/templates/_helper.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,27 @@ Build the secret name for truststore for Elasticsearch
5959
{{- end }}
6060

6161
{{/*
62-
Renders API Gateway's password key identifier for API Gateway for the keystore. Defaults to "password" if no Value for .Values.apigw.elastic.
62+
Renders API Gateway's password key identifier for API Gateway for the keystore. Defaults to "password" if no Value for .Values.apigw.elastic.
6363
*/}}
6464
{{- define "apigateway.elastickeystoresecretPasswordKey" -}}
6565
{{- default ( printf "%s" "password" ) .Values.apigw.elastickeyStorePassKey }}
6666
{{- end }}
6767
6868
{{/*
69-
Renders API Gateway's password key identifier for API Gateway for the truststore. Defaults to "password" if no Value for .Values.apigw.elastic.
69+
Renders API Gateway's password key identifier for API Gateway for the truststore. Defaults to "password" if no Value for .Values.apigw.elastic.
7070
*/}}
7171
{{- define "apigateway.elastictruststoresecretPasswordKey" -}}
7272
{{- default ( printf "%s" "password" ) .Values.apigw.elastictruststoreStorePassKey }}
7373
{{- end }}
7474

75-
{{/*
75+
{{/*
7676
Build the tls secret name, which holds the jks trust and keystore for API Gateway to communicate with Elasticsearch
7777
*/}}
7878
{{- define "apigateway.elastictls" -}}
7979
{{- default (printf "%s%s" (include "common.names.fullname" .) "-es-tls-secret") .Values.elasticsearch.tlsSecretName }}
8080
{{- end }}
8181

82-
{{/*
82+
{{/*
8383
Build the admin secret name, which holds the Administrator password
8484
*/}}
8585
{{- define "apigateway.adminsecret" -}}

apigateway/helm/templates/configmap.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,18 @@ data:
3636
{{- if .Values.apigw.extraConfigSources }}
3737
{{- toYaml .Values.apigw.extraConfigSources | nindent 4 -}}
3838
{{- end }}
39-
4039
apigw-config.yml: |
41-
apigw:
40+
apigw:
4241
{{- range $key, $value := .Values.apigw.configSources }}
4342
{{- if kindIs "map" $value }}
4443
{{- printf "%s:" $key | nindent 6 }}
4544
{{- include "common.utils.renderNestedMap" (dict "map" $value "ctx" $ "depth" 8) }}
4645
{{- else if kindIs "string" $value }}
4746
{{- printf "%s: %s" $key (tpl $value $) }}
4847
{{- else if or (kindIs "bool" $value) (or (kindIs "float" $value) (kindIs "int" $value)) }}
49-
{{- printf "%s: %v" $key $value }}
48+
{{- printf "%s: %v" $key $value }}
5049
{{- end }}
5150
{{- end }}
52-
5351
{{ if .Values.apigw.applicationProperties -}}
5452
application.properties: |
5553
{{- printf "%s" (tpl .Values.apigw.applicationProperties .) | nindent 4 }}

apigateway/helm/templates/configmaps-extra.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ metadata:
2727
{{- with $.Values.extraLabels -}}
2828
{{ toYaml . | nindent 4 }}
2929
{{- end }}
30-
data:
31-
{{- toYaml .data | nindent 2 }}
30+
data:
31+
{{- toYaml .data | nindent 2 }}
3232
{{- end }}

0 commit comments

Comments
 (0)