Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewCrdWatcher (0.14 sec)

  1. pkg/kube/kclient/crdwatcher.go

    	callbacks map[string][]func()
    
    	running chan struct{}
    	stop    <-chan struct{}
    }
    
    func init() {
    	// Unfortunate hack needed to avoid circular imports
    	kube.NewCrdWatcher = newCrdWatcher
    }
    
    // newCrdWatcher returns a new CRD watcher controller.
    func newCrdWatcher(client kube.Client) kubetypes.CrdWatcher {
    	c := &crdWatcher{
    		running:   make(chan struct{}),
    		callbacks: map[string][]func(){},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. pkg/kube/client.go

    func EnableCrdWatcher(c Client) Client {
    	if NewCrdWatcher == nil {
    		panic("NewCrdWatcher is unset. Likely the crd watcher library is not imported anywhere")
    	}
    	if c.(*client).crdWatcher != nil {
    		panic("EnableCrdWatcher called twice for the same client")
    	}
    	c.(*client).crdWatcher = NewCrdWatcher(c)
    	return c
    }
    
    var NewCrdWatcher func(Client) kubetypes.CrdWatcher
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
Back to top