-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature request: allow setting settings in nexus.properties (feature flags, etc) #204
Comments
Hi! Thanks for opening this issue! I need to wrap up some issues to release 0.6. I'll definitely add this one to the planning. |
Thank you for considering! Regarding the question: yes, a |
No pressure, but do you have an estimate on when v0.6.0 with that feature might be released? I might find time to add the feature myself if you could give me a hint on where to start and what's necessary. I am not familiar with OperatorSDK. |
Hey @ibotty! I'm currently working on it. We will probably ship 0.6.0 with only this feature for you :) |
Uiuiui. I am flattered! Looking forward to it. |
Yeah, I know about that feature. That was missing (not only because of configmap changes). |
Oh that's a reference for myself :) |
Signed-off-by: Ricardo Zanini <[email protected]>
Yes, but I am not sure exactly how, because I am running the operator from OLM, andI don't know how to actually use another image. I will try to find a way though. |
hmmm, you can install it manually in a local environment and update the |
Well, yes. I can certainly test it. |
@ibotty sorry for taking so long, I have a limited time to work on this operator. Can you try in your environment? Just apply this file: Please use a test environment where you don't have the Nexus Operator installed. Also see #212 for further discussions. There's an update in the README explaining how to configure your Nexus server using |
* Closes #204 - Mounting nexus.properties in a ConfigMap Signed-off-by: Ricardo Zanini <[email protected]> * Fixing Operatorr SDK install script Signed-off-by: Ricardo Zanini <[email protected]> * Fixing curl output Signed-off-by: Ricardo Zanini <[email protected]> * Incorporating java properties to Nexus CR Signed-off-by: Ricardo Zanini <[email protected]> * Lint fix and addheaders downgrade Signed-off-by: Ricardo Zanini <[email protected]> * Explicit set Red Hat image to Dockerbuild and fix permission issues Signed-off-by: Ricardo Zanini <[email protected]>
I finally got around to testing it. the nexus deployment's container does write the following log line, so your part works great. I still cannot get the remote to show, but that's a different problem not related to this operator. Thank you!
|
I spoke too soon. When stopping the operator and changing the configmap from
to
it worked. It seems not as easy as thought, because the type seems to matter and can't be set in the |
hmmm, so you have to remove the quotes in order to make it work? We can do a sanitize check to boolean and numeric values to write them without quotes. WDYT? |
Yes, I had to remove the quotes. I am not sure what the best solution is going to be. I believe sanitizing is not a foolproof approach. When people want to set a property to the string "true", it will fail. It feels fragile. The cleanest solution would be to allow any type of map. I am not sure, whether kubernetes (tooling) supports it though, because that feature would be great for many core kubernetes things (annotations, etc) and it does not work in these instances. The other option I can think of is having the properties of type string:
|
I need to circle back on this and see what's the best approach. I think adding something like: myprops:
- boolean.prop: true
- string.prop: "true" It should be enough. |
Is your feature request related to a problem? Please describe.
Feature Request to make it possible to set properties traditionally set in a nexus.properties file.
It would be great have a setting in the CRD where one could set them. But any way would be fine.
I need the feature flag
nexus.conan.hosted.enabled=true
(from https://issues.sonatype.org/browse/NEXUS-23629).The text was updated successfully, but these errors were encountered: