Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for updateNamespace (0.17 sec)

  1. pilot/pkg/serviceregistry/kube/controller/namespacecontroller_test.go

    		ObjectMeta: metav1.ObjectMeta{Name: ns, Labels: labels},
    	}, metav1.CreateOptions{}); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func updateNamespace(t *testing.T, client kubernetes.Interface, ns string, labels map[string]string) {
    	t.Helper()
    	if _, err := client.CoreV1().Namespaces().Update(context.TODO(), &v1.Namespace{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	eventually(t, func() bool {
    		svcList := controller.Services()
    		return servicesEqual(svcList, expectedSvcList)
    	})
    
    	// test updating namespace with adding discovery label
    	updateNamespace(t, controller.client.Kube(), nsB, map[string]string{"env": "test"})
    	// service event handlers should trigger for svc3 and svc4
    	fx.WaitOrFail(t, "service")
    	fx.WaitOrFail(t, "service")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  3. pkg/controller/serviceaccount/serviceaccounts_controller_test.go

    			saStore.Add(s)
    		}
    
    		if tc.AddedNamespace != nil {
    			nsStore.Add(tc.AddedNamespace)
    			controller.namespaceAdded(tc.AddedNamespace)
    		}
    		if tc.UpdatedNamespace != nil {
    			nsStore.Add(tc.UpdatedNamespace)
    			controller.namespaceUpdated(nil, tc.UpdatedNamespace)
    		}
    		if tc.DeletedServiceAccount != nil {
    			controller.serviceAccountDeleted(tc.DeletedServiceAccount)
    		}
    
    		// wait to be called
    		select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 03 00:46:06 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  4. pkg/controller/certificates/rootcacertpublisher/publisher_test.go

    			for _, s := range tc.ExistingConfigMaps {
    				cmStore.Add(s)
    			}
    
    			if tc.AddedNamespace != nil {
    				controller.namespaceAdded(tc.AddedNamespace)
    			}
    			if tc.UpdatedNamespace != nil {
    				controller.namespaceUpdated(nil, tc.UpdatedNamespace)
    			}
    
    			if tc.DeletedConfigMap != nil {
    				cmStore.Delete(tc.DeletedConfigMap)
    				controller.configMapDeleted(tc.DeletedConfigMap)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top