Skip to content

Commit

Permalink
prometheus-exporter-plugin-for-opensearch: declare compat with opense…
Browse files Browse the repository at this point in the history
…arch 2.18 (#37298)

Upstream release of this plugging is lagging. Bump the compat version
of it by hand. Also see:
-
Aiven-Open/prometheus-exporter-plugin-for-opensearch#317
-
Aiven-Open/prometheus-exporter-plugin-for-opensearch#316

With this change, opensearch 2.18 with this plugin works again; and
deploys in a helm chart.
  • Loading branch information
xnox authored Dec 17, 2024
1 parent 5f36141 commit 5a9de8f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions prometheus-exporter-plugin-for-opensearch.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: prometheus-exporter-plugin-for-opensearch
version: 2.17.1.0
epoch: 0
epoch: 1
description: |
Prometheus exporter plugin for OpenSearch & OpenSearch Mixin
copyright:
Expand Down Expand Up @@ -29,13 +29,17 @@ pipeline:
tag: ${{package.version}}
recurse-submodules: true

- name: Support OpenSearch 2.18.0.0, see https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch/pull/316/files
runs: |
sed 's|^version = 2.17.1.0$|version = 2.18.0.0|' -i gradle.properties
- runs: |
#ignoring test as it requires to run opensearch as non-root
./gradlew build test -x integTest -x yamlRestTest
- runs: |
mkdir -p ${{targets.destdir}}/usr/share/opensearch/plugins/prometheus-exporter-plugin-for-opensearch
unzip "build/distributions/prometheus-exporter-${{package.version}}.zip" -d "${{targets.destdir}}/usr/share/opensearch/plugins/prometheus-exporter-plugin-for-opensearch"
unzip build/distributions/prometheus-exporter-*.zip -d "${{targets.destdir}}/usr/share/opensearch/plugins/prometheus-exporter-plugin-for-opensearch"
update:
enabled: true
Expand Down

0 comments on commit 5a9de8f

Please sign in to comment.