Skip to content

Commit fb734cb

Browse files
committed
fix: properly create CR
1 parent b87fead commit fb734cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample-operators/leader-election/src/test/java/io/javaoperatorsdk/operator/sample/LeaderElectionE2E.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private void applyCustomResource() {
107107
.withName(TEST_RESOURCE_NAME)
108108
.withNamespace(namespace)
109109
.build());
110-
client.resources(res.getClass()).create();
110+
client.resources(LeaderElectionTestCustomResource.class).inNamespace(namespace).create(res);
111111
}
112112

113113
@BeforeEach

0 commit comments

Comments
 (0)