Skip to content

Commit 825456e

Browse files
author
Dave Syer
committed
Get rid of reconciler and related annotations
Signed-off-by: Dave Syer <[email protected]>
1 parent 44e9d5e commit 825456e

File tree

8 files changed

+2
-279
lines changed

8 files changed

+2
-279
lines changed

examples/examples-release-13/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import io.kubernetes.client.spring.extended.controller.annotation.GroupVersionResource;
3131
import io.kubernetes.client.spring.extended.controller.annotation.KubernetesInformer;
3232
import io.kubernetes.client.spring.extended.controller.annotation.KubernetesInformers;
33-
import io.kubernetes.client.spring.extended.controller.annotation.KubernetesReconcilerReadyFunc;
3433
import java.time.Duration;
3534
import org.springframework.beans.factory.annotation.Autowired;
3635
import org.springframework.beans.factory.annotation.Value;
@@ -75,6 +74,7 @@ public Controller nodePrintingController(
7574
.build();
7675
});
7776
builder.withWorkerCount(2);
77+
builder.withReadyFunc(reconciler::informerReady);
7878
return builder.withReconciler(reconciler).withName("nodePrintingController").build();
7979
}
8080
}
@@ -112,8 +112,7 @@ public static class NodePrintingReconciler implements Reconciler {
112112
@Autowired private Lister<V1Pod> podLister;
113113

114114
// *OPTIONAL*
115-
// If you feed like hold the controller from running util some condition..
116-
@KubernetesReconcilerReadyFunc
115+
// If you want to hold the controller from running util some condition..
117116
public boolean informerReady() {
118117
return podInformer.hasSynced() && nodeInformer.hasSynced();
119118
}

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/AddWatchEventFilter.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/DeleteWatchEventFilter.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/KubernetesReconciler.java

Lines changed: 0 additions & 57 deletions
This file was deleted.

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/KubernetesReconcilerReadyFunc.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/KubernetesReconcilerWatch.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/KubernetesReconcilerWatches.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/UpdateWatchEventFilter.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)