Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/kube/inject/watcher.go

    	cm, err := cms.Get(context.TODO(), w.name, metav1.GetOptions{})
    	if err != nil {
    		return nil, "", err
    	}
    	return readConfigMap(cm, w.configKey, w.valuesKey)
    }
    
    func (w *configMapWatcher) SetHandler(handler func(*Config, string) error) {
    	w.handler = handler
    }
    
    func readConfigMap(cm *v1.ConfigMap, configKey, valuesKey string) (*Config, string, error) {
    	if cm == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. pkg/config/mesh/kubemesh/watcher.go

    		}
    		if multiWatch {
    			meshConfig := meshConfigMapData(cm, key)
    			w.HandleMeshConfigData(meshConfig)
    			return
    		}
    		// Original behavior - just per-revision config
    		meshConfig, err := ReadConfigMap(cm, key)
    		if err != nil {
    			// Keep the last known config in case there's a misconfiguration issue.
    			log.Errorf("failed to read mesh config from ConfigMap: %v", err)
    			return
    		}
    		w.HandleMeshConfig(meshConfig)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 20:54:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top