File tree 4 files changed +5
-5
lines changed
operator-framework-core/src
main/java/io/javaoperatorsdk/operator/api/config
test/java/io/javaoperatorsdk/operator
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ default Config getClientConfiguration() {
75
75
* @return {@code true} if CRDs should be checked (default), {@code false} otherwise
76
76
*/
77
77
default boolean checkCRDAndValidateLocalModel () {
78
- return true ;
78
+ return false ;
79
79
}
80
80
81
81
int DEFAULT_RECONCILIATION_THREADS_NUMBER = 5 ;
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public static boolean isValidateCustomResourcesEnvVarSet() {
61
61
}
62
62
63
63
public static boolean shouldCheckCRDAndValidateLocalModel () {
64
- return getBooleanFromSystemPropsOrDefault (CHECK_CRD_ENV_KEY , true );
64
+ return getBooleanFromSystemPropsOrDefault (CHECK_CRD_ENV_KEY , false );
65
65
}
66
66
67
67
public static boolean debugThreadPool () {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class UtilsTest {
8
8
9
9
@ Test
10
10
void shouldCheckCRDAndValidateLocalModelByDefault () {
11
- assertTrue (Utils .shouldCheckCRDAndValidateLocalModel ());
11
+ assertFalse (Utils .shouldCheckCRDAndValidateLocalModel ());
12
12
}
13
13
14
14
@ Test
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ void crdShouldNotBeCheckedForCustomResourcesIfDisabled() {
54
54
}
55
55
56
56
@ Test
57
- void crdShouldBeCheckedForCustomResourcesByDefault () {
57
+ void crdCanBeCheckedForCustomResources () {
58
58
final var client = mock (KubernetesClient .class );
59
59
final var configurationService = mock (ConfigurationService .class );
60
- when (configurationService .checkCRDAndValidateLocalModel ()).thenCallRealMethod ( );
60
+ when (configurationService .checkCRDAndValidateLocalModel ()).thenReturn ( true );
61
61
final var reconciler = mock (Reconciler .class );
62
62
final var configuration = mock (ControllerConfiguration .class );
63
63
when (configuration .getResourceClass ()).thenReturn (TestCustomResource .class );
You can’t perform that action at this time.
0 commit comments