Skip to content

Commit fd1e588

Browse files
authored
Merge pull request #591 from oracle/domain-status
Improvements on watch tuning and domain status
2 parents c886918 + 7eab0de commit fd1e588

26 files changed

+481
-352
lines changed

operator/src/main/java/oracle/kubernetes/operator/ConfigMapWatcher.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import io.kubernetes.client.models.V1ConfigMap;
99
import java.util.concurrent.ThreadFactory;
1010
import java.util.concurrent.atomic.AtomicBoolean;
11+
import oracle.kubernetes.operator.TuningParameters.WatchTuning;
1112
import oracle.kubernetes.operator.builders.WatchBuilder;
1213
import oracle.kubernetes.operator.builders.WatchI;
1314
import oracle.kubernetes.operator.watcher.WatchListener;
@@ -23,20 +24,22 @@ public static ConfigMapWatcher create(
2324
ThreadFactory factory,
2425
String ns,
2526
String initialResourceVersion,
27+
WatchTuning tuning,
2628
WatchListener<V1ConfigMap> listener,
2729
AtomicBoolean isStopping) {
2830
ConfigMapWatcher watcher =
29-
new ConfigMapWatcher(ns, initialResourceVersion, listener, isStopping);
31+
new ConfigMapWatcher(ns, initialResourceVersion, tuning, listener, isStopping);
3032
watcher.start(factory);
3133
return watcher;
3234
}
3335

3436
private ConfigMapWatcher(
3537
String ns,
3638
String initialResourceVersion,
39+
WatchTuning tuning,
3740
WatchListener<V1ConfigMap> listener,
3841
AtomicBoolean isStopping) {
39-
super(initialResourceVersion, isStopping, listener);
42+
super(initialResourceVersion, tuning, isStopping, listener);
4043
this.ns = ns;
4144
}
4245

operator/src/main/java/oracle/kubernetes/operator/DomainProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ public void makeRightDomainPresence(
3333
public void dispatchConfigMapWatch(Watch.Response<V1ConfigMap> item);
3434

3535
public void dispatchEventWatch(Watch.Response<V1Event> item);
36+
37+
public void stopNamespace(String ns);
3638
}

operator/src/main/java/oracle/kubernetes/operator/DomainProcessorImpl.java

Lines changed: 160 additions & 91 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)