Skip to content

Commit

Permalink
Fixed policy creation/update on Root PG (#486)
Browse files Browse the repository at this point in the history
* Fixed policy creation on Root PG

* Update CHANGELOG

* Update node image
  • Loading branch information
juldrixx authored Nov 15, 2024
1 parent fe981d0 commit c7559de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/clientwrappers/accesspolicies/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7559de

Please sign in to comment.