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

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
  • Loading branch information
xnox committed Dec 17, 2024
1 parent a8025e2 commit d34b112
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 d34b112

Please sign in to comment.