- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkValidCNIConfig (0.09 sec)
-
cni/pkg/install/install.go
cniInstalls.With(resultLabel.Value(resultSuccess)).Increment() // Pod set to "NotReady" before termination return watcher.Wait(ctx) } } // 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 }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 09 21:33:51 UTC 2024 - 13.5K bytes - Viewed (0) -
cni/pkg/install/install_test.go
t.Fatal(err) } } cfg := &config.InstallConfig{ MountedCNINetDir: tempDir, CNIConfName: c.cniConfName, ChainedCNIPlugin: c.chainedCNIPlugin, } err := checkValidCNIConfig(cfg, filepath.Join(tempDir, c.cniConfigFilename)) if (c.expectedFailure && err == nil) || (!c.expectedFailure && err != nil) { t.Fatalf("expected failure: %t, got %v", c.expectedFailure, err) } }) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 11.1K bytes - Viewed (0)