You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/01/08 18:51:00 UTC
[jira] [Commented] (NIFI-15243) Improve logic for set and replace state in KubernetesConfigMapStateProvider
[ https://issues.apache.org/jira/browse/NIFI-15243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050678#comment-18050678 ]
ASF subversion and git services commented on NIFI-15243:
--------------------------------------------------------
Commit 2c843bb217d63c2758a5cebfcf663c187bfdc90d in nifi's branch refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2c843bb217 ]
NIFI-15243 Improved KubernetesConfigMapStateProvider Set State Handling (#10619)
Signed-off-by: David Handermann <ex...@apache.org>
> Improve logic for set and replace state in KubernetesConfigMapStateProvider
> ---------------------------------------------------------------------------
>
> Key: NIFI-15243
> URL: https://issues.apache.org/jira/browse/NIFI-15243
> Project: Apache NiFi
> Issue Type: Improvement
> Affects Versions: 2.6.0
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> There are two areas for improvement...
> # In setState it uses the `update` method in the fabric8 client which under the hood performs a get of the resource and extracts the resourceVersion, puts the resourceVersion into the resource that was submitted, and overwrites whatever was there. In the case anything else in the k8s cluster added additional metadata to the ConfigMap, this will remove it by replacing the resource without it.
> # In replace there is a similar situation where the retry logic for a 409 retrieves the latest resource and extracts the resourceVersion and then uses that, but will call update and fully replace the resource.
> Both of these scenarios can be improved to honor the original intent of the API, but also preserve metadata on the resource.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)