You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: make default watched namespaces behavior explicit (#1177)
* feat: make default watched namespaces behavior explicit
This uses the constant that was initially introduced for the same reason
on KubernetesDependent, which is now moved to Constants. Uncovered
several issues with configuration overriding in the process and added
test coverage.
Fixes#1176
* refactor: DEPLOYED_NAMESPACE_ONLY -> CURRENT_NAMESPACE_ONLY
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/AnnotationControllerConfiguration.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ public boolean isGenerationAware() {
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverrider.java
+11-3
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ public class ControllerConfigurationOverrider<R extends HasMetadata> {
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/DefaultResourceConfiguration.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/ControllerConfiguration.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@
39
39
*
40
40
* @return the list of namespaces this controller monitors
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependent.java
Copy file name to clipboardExpand all lines: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentResourceConfig.java
+1-5
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,7 @@ public KubernetesDependentResourceConfig setLabelSelector(String labelSelector)
37
37
}
38
38
39
39
publicSet<String> namespaces() {
40
-
if (!namespaces.contains(KubernetesDependent.WATCH_ALL_NAMESPACES)) {
Copy file name to clipboardExpand all lines: operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverriderTest.java
0 commit comments