From afcde254766022cdb113d33bff7a932bd4271bcd Mon Sep 17 00:00:00 2001 From: Florian Date: Fri, 25 Oct 2024 20:31:11 +0200 Subject: [PATCH] Try to load secrets for values during bootstrap --- build.gradle.kts | 2 +- src/main/resources/bootstrap.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/bootstrap.yaml diff --git a/build.gradle.kts b/build.gradle.kts index 36bf1ed..01dd2aa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -37,7 +37,7 @@ dependencies { implementation(libs.spring.boot.starter.actuator) implementation(libs.spring.boot.starter.security) implementation(libs.spring.boot.starter.web) - implementation("org.springframework.cloud:spring-cloud-starter-kubernetes-client-config:3.1.3") + implementation(libs.spring.cloud.starter.kubernetes.client.config) implementation(libs.fitko.fitconnect.sdk) compileOnly(libs.lombok) diff --git a/src/main/resources/bootstrap.yaml b/src/main/resources/bootstrap.yaml new file mode 100644 index 0000000..7fa24e3 --- /dev/null +++ b/src/main/resources/bootstrap.yaml @@ -0,0 +1,7 @@ +spring: + cloud: + kubernetes: + secrets: + enabled: true + fail-fast: true + paths: /etc/secrets