From 25e790d0e7b4937a7445eaa0711145c26f8df7b5 Mon Sep 17 00:00:00 2001 From: erabii Date: Thu, 14 Dec 2023 22:58:17 +0200 Subject: [PATCH] fix documentation (#1536) --- README.adoc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index c4fb20d0..b715c097 100644 --- a/README.adoc +++ b/README.adoc @@ -1366,10 +1366,23 @@ will only take effect when set in `bootstrap.{properties|yml}` when you have `sp === Breaking Changes In 3.0.x -In versions of Spring Cloud Kubernetes prior to `3.0.x`, Kubernetes awareness was implemented using `spring.cloud.kubernetes.enabled` property. This + - In versions of Spring Cloud Kubernetes prior to `3.0.x`, Kubernetes awareness was implemented using `spring.cloud.kubernetes.enabled` property. This property was removed and is un-supported. Instead, we use Spring Boot API: https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/condition/ConditionalOnCloudPlatform.html[ConditionalOnCloudPlatform]. If it is needed to explicitly enable or disable this awareness, use `spring.main.cloud-platform=NONE/KUBERNETES`. + - Another breaking change is the additional `list` verb needed for loading configmaps/secrets. For example: + +``` +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: cluster-role +rules: + - apiGroups: ["", "extensions", "apps", "discovery.k8s.io"] + resources: ["configmaps", "pods", "services", "endpoints", "secrets", "endpointslices"] + verbs: ["get", "list", "watch"] +``` + === Kubernetes Profile Autoconfiguration When the application runs as a pod inside Kubernetes, a Spring profile named `kubernetes` automatically gets activated.