Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Mészáros <csviri@gmail.com>
  • Loading branch information
csviri committed Apr 5, 2024
1 parent 1ffb199 commit 5480b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ void testMutationHookDeployment() {
client.resource(TestUtils.load("/sample/mutation/mutation.glue.yaml"))
.createOr(NonDeletingOperation::update);

await().atMost(Duration.ofMinutes(3)).untilAsserted(() -> {
await().atMost(Duration.ofMinutes(5)).untilAsserted(() -> {
var conf = client.admissionRegistration().v1().mutatingWebhookConfigurations()
.withName("pod-mutating-webhook").get();
var deployment = client.apps().deployments().withName("pod-mutating-hook").get();
assertThat(conf).isNotNull();
assertThat(deployment.getStatus().getReadyReplicas()).isGreaterThan(0);
});

var pod = client.resource(testPod()).create();
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/sample/mutation/mutation.glue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
name: pod-mutating-hook
namespace: default
path: /mutate
failurePolicy: Ignore
failurePolicy: Fail
name: sample.mutating.webhook
rules:
- apiGroups:
Expand Down

0 comments on commit 5480b6f

Please sign in to comment.