From d34b112894a510b85a6c775a96e7048011cc932e Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Tue, 17 Dec 2024 18:02:28 +0000 Subject: [PATCH] prometheus-exporter-plugin-for-opensearch: declare compat with opensearch 2.18 Upstream release of this plugging is lagging. Bump the compat version of it by hand. Also see: - https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch/issues/317 - https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch/pull/316 --- prometheus-exporter-plugin-for-opensearch.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/prometheus-exporter-plugin-for-opensearch.yaml b/prometheus-exporter-plugin-for-opensearch.yaml index 263594d1a36..f09cde8ae1d 100644 --- a/prometheus-exporter-plugin-for-opensearch.yaml +++ b/prometheus-exporter-plugin-for-opensearch.yaml @@ -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: @@ -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