update application properties

This commit is contained in:
2024-08-30 17:10:31 +10:00
parent 33d16e5299
commit b8c1aa15f7
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
if test "${SPRING_PROFILES_ACTIVE}" != ''; if test "${SPRING_PROFILES_ACTIVE}" != '';
then then
echo "spring active profile is "$SPRING_PROFILES_ACTIVE echo "spring active profile is "$SPRING_PROFILES_ACTIVE
JAVA_OPTIONS="$JAVA_OPTIONS -Dspring.profiles.active=cloud,native,$SPRING_PROFILES_ACTIVE" JAVA_OPTIONS="$JAVA_OPTIONS -Dspring.profiles.active=native,$SPRING_PROFILES_ACTIVE"
fi fi
if test "${LOCAL_DOCKER_ENV}" = 'true'; if test "${LOCAL_DOCKER_ENV}" = 'true';

View File

@@ -1,7 +1,9 @@
spring: spring:
cloud: cloud:
kubernetes: kubernetes:
enabled: true
discovery: discovery:
enabled: true
all-namespaces: false all-namespaces: false
service-labels: service-labels:
spring-boot: true spring-boot: true