You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by fg...@apache.org on 2026/03/30 15:06:25 UTC
(nifi-minifi-cpp) 05/07: MINIFICPP-2602 Add withAllowedTypes<> to all propertys that require ControllerServices
This is an automated email from the ASF dual-hosted git repository.
fgerlits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit ad163be29e79a0620352db25db75f8c299940438
Author: Martin Zink <ma...@apache.org>
AuthorDate: Mon Mar 30 14:56:15 2026 +0200
MINIFICPP-2602 Add withAllowedTypes<> to all propertys that require ControllerServices
Signed-off-by: Ferenc Gerlits <fg...@gmail.com>
Closes #2149
---
extensions/aws/processors/AwsProcessor.h | 1 +
extensions/kubernetes/processors/CollectKubernetesPodMetrics.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/extensions/aws/processors/AwsProcessor.h b/extensions/aws/processors/AwsProcessor.h
index 3637fdc34..65c4af6db 100644
--- a/extensions/aws/processors/AwsProcessor.h
+++ b/extensions/aws/processors/AwsProcessor.h
@@ -110,6 +110,7 @@ class AwsProcessor : public core::ProcessorImpl { // NOLINT(cppcoreguidelines-s
.build();
EXTENSIONAPI static constexpr auto AWSCredentialsProviderService = core::PropertyDefinitionBuilder<>::createProperty("AWS Credentials Provider service")
.withDescription("The name of the AWS Credentials Provider controller service that is used to obtain AWS credentials.")
+ .withAllowedTypes<AWSCredentialsProvider>()
.build();
EXTENSIONAPI static constexpr auto Region = core::PropertyDefinitionBuilder<region::REGIONS.size()>::createProperty("Region")
.isRequired(true)
diff --git a/extensions/kubernetes/processors/CollectKubernetesPodMetrics.h b/extensions/kubernetes/processors/CollectKubernetesPodMetrics.h
index 0867b9f66..345fffd39 100644
--- a/extensions/kubernetes/processors/CollectKubernetesPodMetrics.h
+++ b/extensions/kubernetes/processors/CollectKubernetesPodMetrics.h
@@ -36,6 +36,7 @@ class CollectKubernetesPodMetrics : public core::ProcessorImpl {
EXTENSIONAPI static constexpr auto KubernetesControllerService = core::PropertyDefinitionBuilder<>::createProperty("Kubernetes Controller Service")
.withDescription("Controller service which provides Kubernetes functionality")
.isRequired(true)
+ .withAllowedTypes<controllers::KubernetesControllerService>()
.build();
EXTENSIONAPI static constexpr auto Properties = std::to_array<core::PropertyReference>({KubernetesControllerService});