Skip to content

Commit f3d3596

Browse files
committed
Merge branch 'main' into feat/hbase-resolvable-endpoints
2 parents 7a4340e + 88c225b commit f3d3596

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

.github/workflows/mirror.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
echo "IMAGE_REPOSITORY=$(.scripts/get_repo_name.sh)" | tee -a "$GITHUB_ENV"
5858
5959
- name: Publish Container Image on oci.stackable.tech
60-
uses: stackabletech/actions/publish-image@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
60+
uses: stackabletech/actions/publish-image@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
6161
with:
6262
image-registry-uri: oci.stackable.tech
6363
image-registry-username: robot$sdp+github-action-build
@@ -84,7 +84,7 @@ jobs:
8484
echo "IMAGE_REPOSITORY=$(.scripts/get_repo_name.sh)" | tee -a "$GITHUB_ENV"
8585
8686
- name: Publish and Sign Image Index Manifest to oci.stackable.tech
87-
uses: stackabletech/actions/publish-index-manifest@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
87+
uses: stackabletech/actions/publish-index-manifest@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
8888
with:
8989
image-registry-uri: oci.stackable.tech
9090
image-registry-username: robot$sdp+github-action-build

.github/workflows/pr_pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
persist-credentials: false
1818
fetch-depth: 0
19-
- uses: stackabletech/actions/run-pre-commit@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
19+
- uses: stackabletech/actions/run-pre-commit@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
2020
with:
2121
python-version: ${{ env.PYTHON_VERSION }}
2222
hadolint: ${{ env.HADOLINT_VERSION }}

.github/workflows/reusable_build_image.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
persist-credentials: false
2929
- id: shard
30-
uses: stackabletech/actions/shard@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
30+
uses: stackabletech/actions/shard@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
3131
with:
3232
product-name: ${{ inputs.product-name }}
3333
outputs:
@@ -53,18 +53,18 @@ jobs:
5353
persist-credentials: false
5454

5555
- name: Free Disk Space
56-
uses: stackabletech/actions/free-disk-space@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
56+
uses: stackabletech/actions/free-disk-space@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
5757

5858
- name: Build Product Image
5959
id: build
60-
uses: stackabletech/actions/build-product-image@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
60+
uses: stackabletech/actions/build-product-image@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
6161
with:
6262
product-name: ${{ inputs.product-name }}
6363
product-version: ${{ matrix.versions }}
6464
sdp-version: ${{ inputs.sdp-version }}
6565

6666
- name: Publish Container Image on oci.stackable.tech
67-
uses: stackabletech/actions/publish-image@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
67+
uses: stackabletech/actions/publish-image@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
6868
with:
6969
image-registry-uri: oci.stackable.tech
7070
image-registry-username: robot$${{ inputs.registry-namespace }}+github-action-build
@@ -90,7 +90,7 @@ jobs:
9090
persist-credentials: false
9191

9292
- name: Publish and Sign Image Index Manifest to oci.stackable.tech
93-
uses: stackabletech/actions/publish-index-manifest@9aae2d1c14239021bfa33c041010f6fb7adec815 # 0.8.2
93+
uses: stackabletech/actions/publish-index-manifest@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
9494
with:
9595
image-registry-uri: oci.stackable.tech
9696
image-registry-username: robot$${{ inputs.registry-namespace }}+github-action-build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ All notable changes to this project will be documented in this file.
114114
- ubi9-rust-builder: Use pinned `rustup` version ([#1121]).
115115
- hive: Patch for postgres CVE-2024-1597 ([#1100]).
116116
- bump image-tools (for `bake`) and nixpkgs (for `nodejs_20`, used by pre-commit) ([#1100]).
117+
- bump image-tools (for `bake`) to fix `RELEASE` arg ([#1188]).
118+
- nifi: automatically determine NiFi version create reporting task script ([#1189]).
117119

118120
### Removed
119121

@@ -211,6 +213,8 @@ All notable changes to this project will be documented in this file.
211213
[#1180]: https://github.com/stackabletech/docker-images/pull/1180
212214
[#1184]: https://github.com/stackabletech/docker-images/pull/1184
213215
[#1185]: https://github.com/stackabletech/docker-images/pull/1185
216+
[#1188]: https://github.com/stackabletech/docker-images/pull/1188
217+
[#1189]: https://github.com/stackabletech/docker-images/pull/1189
214218

215219
## [25.3.0] - 2025-03-21
216220

nifi/python/create_nifi_reporting_task.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,19 @@ def find_reporting_task(name: str, port: str):
4747
return None
4848

4949

50-
def create_reporting_task(name: str, port: str, version: str):
50+
def create_reporting_task(name: str, port: str):
5151
"""Create a ReportingTask"""
52+
nifi_version = nipyapi.system.get_system_diagnostics().system_diagnostics.aggregate_snapshot.version_info.ni_fi_version
5253
task = nipyapi.nifi.models.reporting_task_entity.ReportingTaskEntity(
5354
revision=nipyapi.nifi.models.revision_dto.RevisionDTO(version=0),
5455
disconnected_node_acknowledged=False,
5556
component=nipyapi.nifi.models.reporting_task_dto.ReportingTaskDTO(
5657
name=name,
5758
type="org.apache.nifi.reporting.prometheus.PrometheusReportingTask",
5859
bundle=nipyapi.nifi.models.bundle_dto.BundleDTO(
59-
group="org.apache.nifi", artifact="nifi-prometheus-nar", version=version
60+
group="org.apache.nifi",
61+
artifact="nifi-prometheus-nar",
62+
version=nifi_version,
6063
),
6164
properties={
6265
"prometheus-reporting-task-metrics-endpoint-port": port,
@@ -125,9 +128,6 @@ def main():
125128
all_args.add_argument(
126129
"-p", "--password", required=True, help="Password for the user."
127130
)
128-
all_args.add_argument(
129-
"-v", "--nifi_version", required=True, help="The NiFi product version."
130-
)
131131
all_args.add_argument(
132132
"-c",
133133
"--cert",
@@ -158,9 +158,7 @@ def main():
158158
reporting_task = find_reporting_task(name=task_name, port=port)
159159

160160
if reporting_task is None:
161-
reporting_task = create_reporting_task(
162-
name=task_name, port=port, version=args["nifi_version"]
163-
)
161+
reporting_task = create_reporting_task(name=task_name, port=port)
164162
print(
165163
get_reporting_task_name(task=reporting_task)
166164
+ " [%s] -> CREATED" % reporting_task.id

0 commit comments

Comments
 (0)