spring-cloud / spring-cloud-kubernetes

Kubernetes integration with Spring Cloud Discovery Client, Configuration, etc...
Apache License 2.0
3.46k stars 1.03k forks source link

How to disable the `kubernetes` profile? #1656

Closed sw-tracker closed 4 months ago

sw-tracker commented 4 months ago

Is your feature request related to a problem? Please describe. I currently have this dependency in my code:

      <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-kubernetes-client-config</artifactId>
        <version>2.1.3</version>
      </dependency>

and when I run the spring boot application, I start it with profile local. However, it also starts with the profile kubernetes, how can I make sure it isnt included?

I am using bootstrap.yml and I have it disabled for local:

spring:
  cloud:
    kubernetes:
      enabled: false

This works perfectly fine when I run it on my computer, but when it runs on the CI pipeline, I can see that it starts with the kubernetes profile additionally to the local profile.

wind57 commented 4 months ago

I doubt that even if you provide a sample where we can reproduce this one, we will do anything about it. The version you are using is un-supported, essentially no one provides fixes for it and no one will do any maintenance for it...

wind57 commented 4 months ago

@ryanjbaxter imho this should be closed with "Not Planned" or the like. wdyt?

ryanjbaxter commented 4 months ago

Agree with @wind57 please upgrade to Spring Cloud 2024.0.x and retry. If there is still an issue please let us know