juldrixx commented on code in PR #8240:
URL: https://github.com/apache/nifi/pull/8240#discussion_r1450752341
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-kubernetes-bundle/nifi-framework-kubernetes-state-provider/src/main/java/org/apache/nifi/kubernetes/state/provider/KubernetesConfigMapStateProvider.java:
##########
@@ -99,6 +116,11 @@ public void initialize(final
StateProviderInitializationContext context) {
this.logger = context.getLogger();
this.kubernetesClient = getKubernetesClient();
this.namespace = new ServiceAccountNamespaceProvider().getNamespace();
+
+ String resourcePrefix = context.getProperty(RESOURCE_PREFIX).isSet() ?
context.getProperty(RESOURCE_PREFIX).getValue() : null;
+ CONFIG_MAP_NAME_FORMAT = resourcePrefix != null ?
String.format("%s-nifi-component-%%s", resourcePrefix) : "nifi-component-%s";
+ CONFIG_MAP_NAME_PATTERN = Pattern.compile(resourcePrefix != null ?
+ String.format("^%s-nifi-component-(.+)$", resourcePrefix) :
"^nifi-component-(.+)$");
Review Comment:
Created the variable `CONFIG_MAP_CORE_NAME`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]