Skip to content

Commit 4af2cc5

Browse files
metacosmcsviri
authored andcommitted
feat: expose setting namespaces directly to subclasses (#1728)
1 parent aa874c2 commit 4af2cc5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentResourceConfig.java

+6
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ public ResourceDiscriminator getResourceDiscriminator() {
9393
public void changeNamespaces(Set<String> namespaces) {
9494
if (!wereNamespacesConfigured()) {
9595
this.namespacesWereConfigured = true;
96+
setNamespaces(namespaces);
97+
}
98+
}
99+
100+
protected void setNamespaces(Set<String> namespaces) {
101+
if (namespaces != null && !namespaces.isEmpty()) {
96102
this.namespaces = namespaces;
97103
}
98104
}

0 commit comments

Comments
 (0)