Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ spring:
reload:
enabled: true
monitoring-config-maps: true
strategy: shutdown
strategy: refresh
mode: polling
period: 5000
period: 5s
config:
paths:
- /tmp/application.properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spring:
reload:
enabled: true
monitoring-config-maps: true
strategy: shutdown
strategy: refresh
mode: polling
period: 5000
period: 5s

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spring:
reload:
enabled: true
monitoring-config-maps: true
strategy: shutdown
strategy: refresh
mode: polling
period: 5000
period: 5s

Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ void test() {
configMap.setData(Map.of(Constants.APPLICATION_PROPERTIES, "from.properties.key=as-mount-changed"));
client.configMaps().inNamespace("default").resource(configMap).createOrReplace();

System.out.println("Waiting for reload change to be observed");
Commons.waitForLogStatement("Detected change in config maps/secrets, reload will be triggered", K3S, IMAGE_NAME);
System.out.println("reload change observed");

await().atMost(Duration.ofSeconds(120))
.pollInterval(Duration.ofSeconds(1))
.until(() -> webClient.method(HttpMethod.GET)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ void test() {
configMap.setData(Map.of(Constants.APPLICATION_PROPERTIES, "from.properties.key=as-mount-changed"));
client.configMaps().inNamespace("default").resource(configMap).createOrReplace();

Commons.waitForLogStatement("Detected change in config maps/secrets, reload will be triggered", K3S, IMAGE_NAME);

await().atMost(Duration.ofSeconds(120))
.pollInterval(Duration.ofSeconds(1))
.until(() -> webClient.method(HttpMethod.GET)
Expand Down
Loading