Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cniConfig (0.29 sec)

  1. cni/pkg/install/cniconfig.go

    	}
    }
    
    func createCNIConfigFile(ctx context.Context, cfg *config.InstallConfig) (string, error) {
    	cniConfig, err := readCNIConfigTemplate(getCNIConfigTemplate(cfg))
    	if err != nil {
    		return "", err
    	}
    
    	cniConfig = replaceCNIConfigVars(cniConfig, getCNIConfigVars(cfg))
    
    	return writeCNIConfig(ctx, cniConfig, getPluginConfig(cfg))
    }
    
    func readCNIConfigTemplate(template cniConfigTemplate) ([]byte, error) {
    Go
    - Registered: Wed May 08 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

    John Howard <******@****.***> 1684290142 -0700
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  3. cni/pkg/util/pluginutil.go

    	return
    }
    
    // Marshal the CNI config map and append a new line
    func MarshalCNIConfig(cniConfigMap map[string]any) ([]byte, error) {
    	cniConfig, err := json.MarshalIndent(cniConfigMap, "", "  ")
    	if err != nil {
    		return nil, err
    	}
    	cniConfig = append(cniConfig, "\n"...)
    	return cniConfig, nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. cni/pkg/install/install.go

    					cniConfigMap["plugins"] = append(plugins[:i], plugins[i+1:]...)
    					break
    				}
    			}
    
    			cniConfig, err := util.MarshalCNIConfig(cniConfigMap)
    			if err != nil {
    				return err
    			}
    			if err = file.AtomicWrite(in.cniConfigFilepath, cniConfig, os.FileMode(0o644)); err != nil {
    				return err
    			}
    		} else {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  5. cni/test/install_cni.go

    		}
    		if plugin["type"] == "istio-cni" {
    			cniConfigMap["plugins"] = append(plugins[:i], plugins[i+1:]...)
    			break
    		}
    	}
    
    	cniConfig, err := util.MarshalCNIConfig(cniConfigMap)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if err = file.AtomicWrite(cniConfigFilepath, cniConfig, os.FileMode(0o644)); err != nil {
    		t.Fatal(err)
    	}
    }
    
    // populateTempDirs populates temporary test directories with golden files and
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top