mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 20:54:08 +00:00
Made cache.Controller to be interface.
This commit is contained in:
@@ -50,7 +50,7 @@ type PodGCController struct {
|
||||
internalPodInformer cache.SharedIndexInformer
|
||||
|
||||
podStore cache.StoreToPodLister
|
||||
podController cache.ControllerInterface
|
||||
podController cache.Controller
|
||||
|
||||
deletePod func(namespace, name string) error
|
||||
terminatedPodThreshold int
|
||||
|
@@ -37,6 +37,10 @@ func (*FakeController) HasSynced() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (*FakeController) LastSyncResourceVersion() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func TestGCTerminated(t *testing.T) {
|
||||
type nameToPhase struct {
|
||||
name string
|
||||
|
Reference in New Issue
Block a user