nifikop
nifikop copied to clipboard
Update nifi.properties template for NiFi 2.0.0-M1
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
API breaks? | no |
Deprecations? | ? |
Related tickets | partial #360 |
License | Apache 2.0 |
What's in this PR?
Update of the nifi.properties template.
Why?
To add the new properties and the changes on the old ones for 2.0.0-M1
.
Checklist
- [X] Implementation tested
- [X] Error handling code meets the guideline
- [X] Logging code meets the guideline
- [X] User guide and development docs updated (if needed)
- [x] Append changelog with changes
Is it worth looking at replacing the nifi.properties
logic we have here, to make use of the ENV scripts in apache/nifi
's docker image instead?
My worry with using templates is that we have a single, local copy of nifi.properties
covering multiple minor/major versions of NiFi. I've skimmed through the difference between this PR's template and 2.0.0-M1 and there are dozens of differences (properties being removed, defaults being different etc).
If we take nifi.properties
values in the CRD and convert them into pod ENVs instead, we don't need a local template - and this should work across multiple versions?
Is it worth looking at replacing the
nifi.properties
logic we have here, to make use of the ENV scripts inapache/nifi
's docker image instead? My worry with using templates is that we have a single, local copy ofnifi.properties
covering multiple minor/major versions of NiFi. I've skimmed through the difference between this PR's template and 2.0.0-M1 and there are dozens of differences (properties being removed, defaults being different etc). If we takenifi.properties
values in the CRD and convert them into pod ENVs instead, we don't need a local template - and this should work across multiple versions?
Hmm i think we ought to consider doing this as well. And NiFi 2.0.0 would be a good time to introduce breaking changes in nifikop as well, if we find that it's needed.
One minor hurdle may be that NiFi doesn't currently support being entirely configured through environment variables. I think the majority of properties are covered, but it's not a general solution as it's currently written. I saw a PR last week to add support for more properties. For that reason, we may need to keep both options around.
Is it worth looking at replacing the
nifi.properties
logic we have here, to make use of the ENV scripts inapache/nifi
's docker image instead? My worry with using templates is that we have a single, local copy ofnifi.properties
covering multiple minor/major versions of NiFi. I've skimmed through the difference between this PR's template and 2.0.0-M1 and there are dozens of differences (properties being removed, defaults being different etc). If we takenifi.properties
values in the CRD and convert them into pod ENVs instead, we don't need a local template - and this should work across multiple versions?
It's why I didn't removed them, just added the new ones. To stay compatible with previous version.
Is it worth looking at replacing the
nifi.properties
logic we have here, to make use of the ENV scripts inapache/nifi
's docker image instead? My worry with using templates is that we have a single, local copy ofnifi.properties
covering multiple minor/major versions of NiFi. I've skimmed through the difference between this PR's template and 2.0.0-M1 and there are dozens of differences (properties being removed, defaults being different etc). If we takenifi.properties
values in the CRD and convert them into pod ENVs instead, we don't need a local template - and this should work across multiple versions?Hmm i think we ought to consider doing this as well. And NiFi 2.0.0 would be a good time to introduce breaking changes in nifikop as well, if we find that it's needed.
One minor hurdle may be that NiFi doesn't currently support being entirely configured through environment variables. I think the majority of properties are covered, but it's not a general solution as it's currently written. I saw a PR last week to add support for more properties. For that reason, we may need to keep both options around.
And I'm not sure, it will work with custom image.