You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/main/java/org/springframework/cloud/kubernetes/client/config/KubernetesClientConfigUtils.java
+8-12Lines changed: 8 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -65,38 +65,34 @@ public static Set<String> namespaces(KubernetesNamespaceProvider provider, Confi
65
65
* <pre>
66
66
* 1. read all secrets in the provided namespace
67
67
* 2. from the above, filter the ones that we care about (filter by labels)
68
-
* 3. with secret names from (2), find out if there are any profile based secrets (if profiles is not empty)
69
-
* 4. concat (2) and (3) and these are the secrets we are interested in
70
-
* 5. see if any of the secrets from (4) has a single yaml/properties file
71
-
* 6. gather all the names of the secrets (from 4) + data they hold
68
+
* 3. see if any of the secrets from (2) has a single yaml/properties file
69
+
* 4. gather all the names of the secrets + data they hold
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/main/java/org/springframework/cloud/kubernetes/client/config/LabeledConfigMapContextToSourceDataProvider.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,9 @@ public KubernetesClientContextToSourceData get() {
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/main/java/org/springframework/cloud/kubernetes/client/config/LabeledSecretContextToSourceDataProvider.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ public KubernetesClientContextToSourceData get() {
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/KubernetesClientSecretsPropertySourceTests.java
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/LabeledConfigMapContextToSourceDataProviderTests.java
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/LabeledSecretContextToSourceDataProviderTests.java
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/applications/labeled_secret_with_profile/LabeledSecretWithProfileTests.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -81,9 +81,7 @@ static void afterAll() {
81
81
82
82
/**
83
83
* <pre>
84
-
* this one is taken from : "blue.one". We find "color-secret" by labels, and
85
-
* "color-secrets-k8s" exists, but "includeProfileSpecificSources=false", thus not taken.
86
-
* Since "explicitPrefix=blue", we take "blue.one"
84
+
* this one is taken from : "blue.one". We find "color-secret" by labels.
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/bootstrap/stubs/LabeledConfigMapWithProfileConfigurationStub.java
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -74,10 +74,8 @@ public ApiClient apiClient(WireMockServer wireMockServer) {
74
74
* - configmap with name "green-configmap-k8s", with labels : "{color: green-k8s}"
75
75
* - configmap with name "green-configmap-prod", with labels : "{color: green-prod}"
76
76
*
77
-
* # a test that proves order: first read non-profile based configmaps, thus profile based
78
-
* # configmaps override non-profile ones.
79
77
* - configmap with name "green-purple-configmap", labels "{color: green, shape: round}", data: "{eight: 8}"
80
-
* - configmap with name "green-purple-configmap-k8s", labels "{color: black}", data: "{eight: eight-ish}"
78
+
* - configmap with name "green-purple-configmap-k8s", labels "{color: green}", data: "{eight: eight-ish}"
81
79
* </pre>
82
80
*/
83
81
publicstaticvoidstubData() {
@@ -112,7 +110,7 @@ public static void stubData() {
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/bootstrap/stubs/LabeledSecretWithProfileConfigurationStub.java
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -75,10 +75,8 @@ public ApiClient apiClient(WireMockServer wireMockServer) {
75
75
* - secret with name "green-secret-k8s", with labels : "{color: green-k8s}"
76
76
* - secret with name "green-secret-prod", with labels : "{color: green-prod}"
77
77
*
78
-
* # a test that proves order: first read non-profile based secrets, thus profile based
79
-
* # secrets override non-profile ones.
80
78
* - secret with name "green-purple-secret", labels "{color: green, shape: round}", data: "{eight: 8}"
81
-
* - secret with name "green-purple-secret-k8s", labels "{color: black}", data: "{eight: eight-ish}"
79
+
* - secret with name "green-purple-secret-k8s", labels "{color: green}", data: "{eight: eight-ish}"
82
80
* </pre>
83
81
*/
84
82
publicstaticvoidstubData() {
@@ -113,7 +111,7 @@ public static void stubData() {
0 commit comments