Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AddUserMeshConfig (0.12 sec)

  1. pilot/pkg/bootstrap/mesh.go

    		s.environment.Watcher, err = mesh.NewFileWatcher(fileWatcher, args.MeshConfigFile, multiWatch)
    		if err == nil {
    			if multiWatch && s.kubeClient != nil {
    				kubemesh.AddUserMeshConfig(
    					s.kubeClient, s.environment.Watcher, args.Namespace, configMapKey, features.SharedMeshConfig, s.internalStop)
    			} else {
    				// Normal install no longer uses this mode - testing and special installs still use this.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. pkg/config/mesh/kubemesh/watcher.go

    	// Ensure the ConfigMap is initially loaded if present.
    	if !client.WaitForCacheSync("configmap watcher", stop, c.HasSynced) {
    		log.Error("failed to wait for cache sync")
    	}
    	return w
    }
    
    func AddUserMeshConfig(client kube.Client, watcher mesh.Watcher, namespace, key, userMeshConfig string, stop <-chan struct{}) {
    	c := configmapwatcher.NewController(client, namespace, userMeshConfig, func(cm *v1.ConfigMap) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 20:54:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. pkg/config/mesh/kubemesh/watcher_test.go

    		client := kube.NewFakeClient()
    		cms := client.Kube().CoreV1().ConfigMaps(namespace)
    		stop := test.NewStop(t)
    		w := NewConfigMapWatcher(client, namespace, name, key, true, stop)
    		AddUserMeshConfig(client, w, namespace, key, extraCmName, stop)
    		client.RunAndWait(stop)
    		return cms, w
    	}
    
    	t.Run("core first", func(t *testing.T) {
    		cms, w := setup(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top