From 7dbbba4b320c7491682d5453e145295c94c87bc0 Mon Sep 17 00:00:00 2001 From: Julien Guitton Date: Fri, 15 Nov 2024 11:29:15 +0100 Subject: [PATCH 1/3] Fixed policy creation on Root PG --- pkg/clientwrappers/accesspolicies/policies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/clientwrappers/accesspolicies/policies.go b/pkg/clientwrappers/accesspolicies/policies.go index 8ca30f2ae3..3b9715d5f8 100644 --- a/pkg/clientwrappers/accesspolicies/policies.go +++ b/pkg/clientwrappers/accesspolicies/policies.go @@ -26,7 +26,7 @@ func ExistAccessPolicies(accessPolicy *v1.AccessPolicy, config *clientconfig.Nif return false, err } - return entity != nil && entity.Component.Resource == string(accessPolicy.Resource), nil + return entity != nil && entity.Component.Resource == string(accessPolicy.GetResource(config.RootProcessGroupId)), nil } func CreateAccessPolicy(accessPolicy *v1.AccessPolicy, config *clientconfig.NifiConfig) (string, error) { From 80037a3ecc6506074044e410ec628133cbe2fb67 Mon Sep 17 00:00:00 2001 From: Julien Guitton Date: Fri, 15 Nov 2024 11:32:47 +0100 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a155e5b5ce..ed5b8642d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Fixed Bugs +- [PR #486](https://github.com/konpyutaika/nifikop/pull/486) - **[Operator/NifiUserGroup]** Fixed policy creation/update on Root PG. + ### Deprecated ### Removed From 3af69e202908dc902f4a90e0a8b5f3872eaf6501 Mon Sep 17 00:00:00 2001 From: Julien Guitton Date: Fri, 15 Nov 2024 11:34:17 +0100 Subject: [PATCH 3/3] Update node image --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 52d9d8561f..5144559b27 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -234,7 +234,7 @@ jobs: deploy-website: working_directory: /home/circleci/nifikop/site docker: # run the steps with Docker - - image: node:23.2.0 + - image: node:23.1.0 steps: - checkout: path: /home/circleci/nifikop