Skip to content
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

Unable to supress profile specific configmaps warning #1862

Open
Vignesh-Au opened this issue Feb 4, 2025 · 3 comments
Open

Unable to supress profile specific configmaps warning #1862

Vignesh-Au opened this issue Feb 4, 2025 · 3 comments

Comments

@Vignesh-Au
Copy link

Vignesh-Au commented Feb 4, 2025

  • I am migrating my app from springboot 3.1.5 to 3.4.2 and spring cloud kubenetes from 3.0.4 to 3.2.0
  • I started getting warning that profile specific configmaps are missing
  • based on this documentation, setting "includeProfileSpecificSources: false" should disable it
  • but that did not suppress/disable that feature
  • I also tried setting "fail-fast: false". That dint help either

Can someone please help with this? This isnt affecting the app but polluting the logs with this warning for all profiles.

@Vignesh-Au
Copy link
Author

Vignesh-Au commented Feb 4, 2025

This is the error I get

sourceName : configmap-name-profilename was requested, but not found in namespace

I see this pull request added this 3 months ago but I did not back track that logic yet

@wind57
Copy link
Contributor

wind57 commented Feb 4, 2025

hmm... let me take a closer look and get back to you.

@wind57
Copy link
Contributor

wind57 commented Feb 5, 2025

I am going to need some help to understand what is going on tbh. When you receive that message, we already know what your active profiles are, and we have already taken into consideration that includeProfileSpecificSources flag. So judging by the code, you should not receive "warning for all profiles", but there could be a bug that I missed.

Is there a way you can provide a sample where I can reproduce the issue?

@ryanjbaxter can you add the feedback label please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants