Skip to content

Commit

Permalink
Fix update registry uri that was not working in NiFi 1.23.2 (#305)
Browse files Browse the repository at this point in the history
* Fix update registry uri that was not working in NiFi 1.23.2

* Update CHANGELOG
  • Loading branch information
juldrixx authored Sep 26, 2023
1 parent 91652a0 commit eff2fc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Fixed Bugs

- [PR #302](https://github.com/konpyutaika/nifikop/pull/302) - **[Operator/NifiNodeGroupAutoscaler]** Set default namespace in NifiNodeGroupAutoscaler's clusterRef.
- [PR #305](https://github.com/konpyutaika/nifikop/pull/305) - **[Operator/NifiRegistryClient]** Registry client URI can't be updated.

### Deprecated

Expand Down
3 changes: 3 additions & 0 deletions pkg/clientwrappers/registryclient/registryclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ func updateRegistryClientEntity(registryClient *v1.NifiRegistryClient, entity *n
entity.Component = &nigoapi.FlowRegistryClientDto{}
}

entity.Component.Properties = make(map[string]string)

entity.Component.Name = registryClient.Name
entity.Component.Description = registryClient.Spec.Description
entity.Component.Uri = registryClient.Spec.Uri
entity.Component.Properties["url"] = registryClient.Spec.Uri
}

0 comments on commit eff2fc4

Please sign in to comment.