-
Notifications
You must be signed in to change notification settings - Fork 31
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
ConfigMap cannot overwrite wavefront freemium account creation #68
Comments
@mhoshi-vm thanks for reaching out and for the report. Account negotiation happens very early on in the application lifecycle. The environment has been prepared and the application configuration has been read. I understand from the log (though I am note sure) you're using Spring Cloud and the bootstrap context. Unfortunately, the way this is designed at the moment does not respect Spring Boot's application lifecycle and such configuration is loaded too late for the account negotiation to know. As a workaround for that problem, you could switch to an Regarding the 4 properties above, it looks like you want to disable exporting metrics altogether. If that's what you want, Please give this a try and let us know how it goes. |
@snicoll Thank you.
Yes this worked. The follow yaml file disabled the freemium account creation
I am using
|
Thanks for the feedback and glad to hear that
I can't reproduce the behaviour you've described. Perhaps you're using an older snapshot or something? Just to make sure that we're talking about the same thing, I've created a sample project with only that property and the account creation is disabled for me. You can try it out as follows:
|
@snicoll thanks for the sample code. So here is what i see from your code.
BTW, In my scenario, I created my app on a non-k8s env, and i want to move it to kubernetes + istio, which i want to let istio handle the traces, not spring. |
Thanks for the feedback. If In any case, it looks like this issue has run its course. We also have a slack channel if you want to chat with the community. |
I developed a spring boot application on my local laptop with the following application.properties
As a natural use case, when I move to kubernetes env, i want to use configmap to override the auto freemium config.
So i created the following config map.
However I still see the freemium account being configured.
When enabling debug log, i see that the configmap is getting loaded properly during start up
However the i don't see any
wavefront.freemium-account
being loaded.By the way, adding the above parameters directly in application properties to application.properties, i see that freemium account creation get's disabled.
The text was updated successfully, but these errors were encountered: