Skip to content

Commit 3b17c14

Browse files
committed
still broken
1 parent a1d4333 commit 3b17c14

File tree

1 file changed

+9
-9
lines changed
  • spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/reload

1 file changed

+9
-9
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/reload/ConfigReloadUtil.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,23 @@ else if (propertySource instanceof CompositePropertySource source) {
141141
return result;
142142
}
143143

144-
static boolean changed(List<? extends MapPropertySource> left, List<? extends MapPropertySource> right) {
145-
if (left.size() != right.size()) {
144+
static boolean changed(List<? extends MapPropertySource> k8sSources, List<? extends MapPropertySource> appSources) {
145+
if (k8sSources.size() != appSources.size()) {
146146
if (LOG.isDebugEnabled()) {
147-
LOG.debug("from k8s property sources size: " + left.size());
148-
left.forEach(item -> LOG.debug(item.toString()));
147+
LOG.debug("from k8s property sources size: " + k8sSources.size());
148+
k8sSources.forEach(item -> LOG.debug(item.toString()));
149149

150-
LOG.debug("app property sources size size: " + right.size());
151-
right.forEach(item -> LOG.debug(item.toString()));
150+
LOG.debug("app property sources size size: " + appSources.size());
151+
appSources.forEach(item -> LOG.debug(item.toString()));
152152
}
153153
LOG.warn(() -> "The current number of ConfigMap PropertySources does not match "
154154
+ "the ones loaded from Kubernetes - No reload will take place");
155155
return false;
156156
}
157157

158-
for (int i = 0; i < left.size(); i++) {
159-
MapPropertySource leftPropertySource = left.get(i);
160-
MapPropertySource rightPropertySource = right.get(i);
158+
for (int i = 0; i < k8sSources.size(); i++) {
159+
MapPropertySource leftPropertySource = k8sSources.get(i);
160+
MapPropertySource rightPropertySource = appSources.get(i);
161161
if (changed(leftPropertySource, rightPropertySource)) {
162162
LOG.debug(() -> "found change in : " + leftPropertySource);
163163
return true;

0 commit comments

Comments
 (0)