Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for insertCNIConfig (0.19 sec)

  1. cni/pkg/install/cniconfig.go

    		}
    		// This section overwrites an existing plugins list entry for istio-cni
    		existingCNIConfig, err := os.ReadFile(cniConfigFilepath)
    		if err != nil {
    			return "", err
    		}
    		cniConfig, err = insertCNIConfig(cniConfig, existingCNIConfig)
    		if err != nil {
    			return "", err
    		}
    	}
    
    	if err = file.AtomicWrite(cniConfigFilepath, cniConfig, os.FileMode(0o644)); err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. cni/pkg/install/cniconfig_test.go

    			existingConfFilepath := filepath.Join("testdata", c.existingConfFilename)
    			existingConf := testutils.ReadFile(t, existingConfFilepath)
    
    			output, err := insertCNIConfig(istioConf, existingConf)
    			if err != nil {
    				if !c.expectedFailure {
    					t.Fatal(err)
    				}
    				return
    			}
    
    			goldenFilepath := existingConfFilepath + ".golden"
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
Back to top