Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getDefaultCNINetwork (0.53 sec)

  1. cni/pkg/install/cniconfig.go

    	}
    
    	watcher, err := util.CreateFileWatcher(mountedCNINetDir)
    	if err != nil {
    		return "", err
    	}
    	defer watcher.Close()
    
    	for len(cniConfName) == 0 {
    		cniConfName, err = getDefaultCNINetwork(mountedCNINetDir)
    		if err == nil {
    			break
    		}
    		installLog.Warnf("Istio CNI is configured as chained plugin, but cannot find existing CNI network config: %v", err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. cni/pkg/install/install.go

    	}
    }
    
    // checkValidCNIConfig returns an error if an invalid CNI configuration is detected
    func checkValidCNIConfig(cfg *config.InstallConfig, cniConfigFilepath string) error {
    	defaultCNIConfigFilename, err := getDefaultCNINetwork(cfg.MountedCNINetDir)
    	if err != nil {
    		return err
    	}
    	defaultCNIConfigFilepath := filepath.Join(cfg.MountedCNINetDir, defaultCNIConfigFilename)
    	if defaultCNIConfigFilepath != cniConfigFilepath {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 09 21:33:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. cni/pkg/install/cniconfig_test.go

    			if c.fileContents != "" {
    				err := os.WriteFile(filepath.Join(c.dir, c.inFilename), []byte(c.fileContents), 0o644)
    				if err != nil {
    					t.Fatal(err)
    				}
    			}
    
    			result, err := getDefaultCNINetwork(c.dir)
    			if (c.expectedFailure && err == nil) || (!c.expectedFailure && err != nil) {
    				t.Fatalf("expected failure: %t, got %v", c.expectedFailure, err)
    			}
    
    			if c.fileContents != "" {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top