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 <[email protected]> AuthorDate: Mon Mar 30 14:56:15 2026 +0200 MINIFICPP-2602 Add withAllowedTypes<> to all propertys that require ControllerServices Signed-off-by: Ferenc Gerlits <[email protected]> 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});
