Skip to content

Commit

Permalink
Support nifi 1.25.0 (#571)
Browse files Browse the repository at this point in the history
* Merge branch 'main' of https://github.com/stackabletech/nifi-operator into main

* adapted changelog

* bump vector aggregator

* reactoring, add service to reporting task

* docs & refactoring

* clippy

* add jwt error message

* adapted changelog

* fix linter

* Update rust/operator-binary/src/security/tls.rs

Co-authored-by: Sebastian Bernauer <[email protected]>

* always return a selector or error out

* fix linter

---------

Co-authored-by: Sebastian Bernauer <[email protected]>
  • Loading branch information
maltesander and sbernauer authored Feb 21, 2024
1 parent 4ee8dd4 commit 52b8346
Show file tree
Hide file tree
Showing 18 changed files with 593 additions and 260 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ All notable changes to this project will be documented in this file.
- Various documentation of the CRD ([#537]).
- Document support for Apache Iceberg extensions ([#556]).
- Helm: support labels in values.yaml ([#560]).
- Support for NiFi `1.25.0` ([#571]).

### Changed

- A service for a single NiFi node is created for the reporting task to avoid JWT issues ([#571]).

[#537]: https://github.com/stackabletech/nifi-operator/pull/537
[#556]: https://github.com/stackabletech/nifi-operator/pull/556
[#560]: https://github.com/stackabletech/nifi-operator/pull/560
[#571]: https://github.com/stackabletech/nifi-operator/pull/571

## [23.11.0] - 2023-11-24

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ metadata:
name: simple-nifi
spec:
image:
productVersion: 1.23.2
productVersion: 1.25.0
clusterConfig:
authentication:
- authenticationClass: simple-nifi-users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ metadata:
name: simple-nifi
spec:
image:
productVersion: 1.23.2
productVersion: 1.25.0
clusterConfig:
authentication:
- authenticationClass: simple-nifi-users
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/nifi/pages/usage_guide/custom_processors.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A simple Dockerfile would look like show in the following listing.

[source,Dockerfile]
----
FROM docker.stackable.tech/stackable/nifi:1.23.2-stackable0.0.0-dev
FROM docker.stackable.tech/stackable/nifi:1.25.0-stackable0.0.0-dev
COPY /path/to/your/nar.file /stackable/nifi/lib/
----

Expand All @@ -28,8 +28,8 @@ You then need to make this image available to your Kubernetes cluster and specif
----
spec:
image:
productVersion: 1.23.2
custom: "docker.company.org/nifi:1.23.2-customprocessor"
productVersion: 1.25.0
custom: "docker.company.org/nifi:1.25.0-customprocessor"
----

== Using the Official Image
Expand Down Expand Up @@ -96,7 +96,7 @@ metadata:
name: simple-nifi
spec:
image:
productVersion: 1.23.2
productVersion: 1.25.0
clusterConfig:
authentication:
- authenticationClass: simple-nifi-admin-user
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/nifi/pages/usage_guide/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
name: simple-nifi
spec:
image:
productVersion: 1.23.2
productVersion: 1.25.0
clusterConfig:
zookeeperConfigMapName: simple-nifi-znode # <1>
authentication: # <2>
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/nifi/pages/usage_guide/updating.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= Updating NiFi

Updating (or downgrading for that matter) the deployed version of NiFi is as simple as changing the version stated in the CRD.
Continuing the example above, to change the deployed version from `1.23.2` to `1.21.0` you'd simply deploy the following CRD.
Continuing the example above, to change the deployed version from `1.25.0` to `1.21.0` you'd simply deploy the following CRD.

[source,yaml]
----
Expand Down
5 changes: 3 additions & 2 deletions docs/modules/nifi/partials/supported-versions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
// This is a separate file, since it is used by both the direct NiFi-Operator documentation, and the overarching
// Stackable Platform documentation.

- 1.23.2
- 1.21.0 (deprecated)
- 1.25.0
- 1.23.2 (deprecated)
- 1.21.0 (LTS)
4 changes: 2 additions & 2 deletions examples/simple-nifi-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: simple-zk
spec:
image:
productVersion: 3.8.3
productVersion: 3.9.1
servers:
roleGroups:
default:
Expand Down Expand Up @@ -47,7 +47,7 @@ metadata:
name: simple-nifi
spec:
image:
productVersion: 1.23.2
productVersion: 1.25.0
clusterConfig:
authentication:
- authenticationClass: simple-nifi-admin-user
Expand Down
2 changes: 1 addition & 1 deletion rust/operator-binary/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use stackable_operator::{
use strum::{Display, EnumIter};

use crate::{
authentication::{STACKABLE_SERVER_TLS_DIR, STACKABLE_TLS_STORE_PASSWORD},
operations::graceful_shutdown::graceful_shutdown_config_properties,
security::authentication::{STACKABLE_SERVER_TLS_DIR, STACKABLE_TLS_STORE_PASSWORD},
};

pub const NIFI_CONFIG_DIRECTORY: &str = "/stackable/nifi/conf";
Expand Down
Loading

0 comments on commit 52b8346

Please sign in to comment.