Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewTagWatcher (0.12 sec)

  1. pkg/revisions/tag_watcher.go

    	queue    controllers.Queue
    	webhooks kclient.Client[*admissionregistrationv1.MutatingWebhookConfiguration]
    	index    *kclient.Index[string, *admissionregistrationv1.MutatingWebhookConfiguration]
    }
    
    func NewTagWatcher(client kube.Client, revision string) TagWatcher {
    	p := &tagWatcher{
    		revision: revision,
    	}
    	p.queue = controllers.NewQueue("tag", controllers.WithReconciler(func(key types.NamespacedName) error {
    		p.notifyHandlers()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. pkg/revisions/tag_watcher_test.go

    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/util/sets"
    )
    
    func TestTagWatcher(t *testing.T) {
    	c := kube.NewFakeClient()
    	tw := NewTagWatcher(c, "revision").(*tagWatcher)
    	whs := clienttest.Wrap(t, tw.webhooks)
    	stop := test.NewStop(t)
    	c.RunAndWait(stop)
    	track := assert.NewTracker[string](t)
    	tw.AddHandler(func(s sets.String) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 01:18:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top