Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ReadMeshConfigData (0.18 sec)

  1. tests/fuzz/bootstrap_fuzzer.go

    	if err != nil {
    		return 0
    	}
    	defer os.Remove(meshConfigFile)
    	_, err = os.Stat(meshConfigFile)
    	if err != nil {
    		return 0
    	}
    	// Validate mesh config file
    	meshConfigYaml, err := mesh.ReadMeshConfigData(meshConfigFile)
    	if err != nil {
    		return 0
    	}
    	_, err = mesh.ApplyMeshConfigDefaults(meshConfigYaml)
    	if err != nil {
    		return 0
    	}
    
    	// Create kube config file
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 20 06:17:08 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. pkg/config/mesh/watcher.go

    // if the given file does not exist or failed during parsing.
    func NewFileWatcher(fileWatcher filewatcher.FileWatcher, filename string, multiWatch bool) (Watcher, error) {
    	meshConfigYaml, err := ReadMeshConfigData(filename)
    	if err != nil {
    		return nil, err
    	}
    
    	meshConfig, err := ApplyMeshConfigDefaults(meshConfigYaml)
    	if err != nil {
    		return nil, err
    	}
    
    	w := &internalWatcher{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 18:33:38 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. pkg/config/mesh/mesh.go

    	if err != nil {
    		return nil, multierror.Prefix(err, "cannot read mesh config file")
    	}
    	return ApplyMeshConfigDefaults(string(yaml))
    }
    
    // ReadMeshConfigData gets mesh configuration yaml from a config file
    func ReadMeshConfigData(filename string) (string, error) {
    	yaml, err := os.ReadFile(filename)
    	if err != nil {
    		return "", multierror.Prefix(err, "cannot read mesh config file")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top