Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Oct 7, 2023
1 parent 30bb51e commit 473f69f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,15 @@ static void testSecretReload(KubernetesClient client, K3sContainer container, St
return "secret-initial".equals(innerResult);
});

Commons.waitForLogStatement("Secret event-reload was updated in namespace default",
container, appLabelValue);
Commons.waitForLogStatement("data in secret has not changed, will not reload",
container, appLabelValue);
Commons.waitForLogStatement("Secret event-reload was updated in namespace default", container, appLabelValue);
Commons.waitForLogStatement("data in secret has not changed, will not reload", container, appLabelValue);

// change data
secret = new SecretBuilder()
.withMetadata(new ObjectMetaBuilder().withNamespace("default").withName("event-reload").build())
.withData(Map.of("application.properties",
Base64.getEncoder().encodeToString("from.secret.properties.key=secret-initial-changed".getBytes())))
Base64.getEncoder()
.encodeToString("from.secret.properties.key=secret-initial-changed".getBytes())))
.build();

client.secrets().inNamespace("default").resource(secret).createOrReplace();
Expand Down

0 comments on commit 473f69f

Please sign in to comment.