-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added bootstrap-gcp.conf, bootstrap-aws.conf, bootstrap-azure.conf and bootstrap-hashicorp-vault.conf files management #361
base: master
Are you sure you want to change the base?
Conversation
ed20fe4
to
75bb8ac
Compare
I believe these would all need exposed in the |
} | ||
|
||
var out bytes.Buffer | ||
t := template.Must(template.New("nConfig-config").Parse(config.BootstrapGCPPropertiesTemplate)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to avoid maintaining templates in nifikop, right? We want to allow overrides or just default to what exists in the docker images. IMO, we can return on line 761 above.
if len(completeConfigMap) == 0 {
return nil
} else {
return completeConfigMap
}
Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. So i should remove the template file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah so like you did with the logback configuration here:
If we don't strictly need to maintain a template in nifikop, we shouldn't. That way we don't need to maintain it & keep it updated whenever it changes in NiFi.
And should I renamed to |
I feel like the properties ought to be named consistently, even though I think we've named them incorrectly. The actual files are |
In #363, I remplace some of |
And I had an idea, instead of adding 4 new fields with the same configuration, could it be interesting to add 1 field that is an array where you provide the 3 fields + the filename? So that in the futur, if new files are added the user could override them without NiFiKop update. At least, until we need it and made an official field. |
I think that is fine because you didn't change the CRDs, so there weren't any breaking changes. It was all internal to the helm chart and documentation. We should double check though. We should avoid introducing any CRD breaking changes IMO |
Not a bad idea - perhaps this could be part of the One potential downside is that with it being so open/flexible, it might not be clear what you can override with it. So with the explicit options, it's clear what things you can override in NiFi |
What's in this PR?
Added the management of
bootstrap-gcp.conf
,bootstrap-aws.conf
,bootstrap-azure.conf
andbootstrap-hashicorp-vault.conf
files.Why?
NiFiKop already manages all the other configuration files, so it should manages them.
Checklist