- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getenv (0.24 sec)
-
cni/test/install_cni.go
"cni_bin_dir": "/opt/cni/bin", "exclude_namespaces": [ "istio-system" ] } } ` ) func getEnv(key, fallback string) string { if value, ok := os.LookupEnv(key); ok { return value } return fallback } func setEnv(key, value string, t *testing.T) { t.Helper() err := os.Setenv(key, value) if err != nil { t.Fatalf("Couldn't set environment variable, err: %v", err) } }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 12.5K bytes - Viewed (0) -
cni/pkg/cmd/root.go
KubeconfigMode: viper.GetInt(constants.KubeconfigMode), KubeCAFile: viper.GetString(constants.KubeCAFile), SkipTLSVerify: viper.GetBool(constants.SkipTLSVerify), K8sServiceProtocol: os.Getenv("KUBERNETES_SERVICE_PROTOCOL"), K8sServiceHost: os.Getenv("KUBERNETES_SERVICE_HOST"), K8sServicePort: os.Getenv("KUBERNETES_SERVICE_PORT"),
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.5K bytes - Viewed (0) -
operator/cmd/mesh/shared.go
opt2 := *opt opt2.OutputPaths = op opt2.ErrorOutputPaths = op return log.Configure(&opt2) } func refreshGoldenFiles() bool { ev := os.Getenv("REFRESH_GOLDEN") return ev == "true" || ev == "1" } func kubeBuilderInstalled() bool { ev := os.Getenv("KUBEBUILDER") return ev == "true" || ev == "1" } // Confirm waits for a user to confirm with the supplied message.
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 5.3K bytes - Viewed (0) -
istioctl/pkg/clioptions/central.go
"XDS Endpoint certificate directory") cmd.PersistentFlags().StringVar(&o.XdsPodLabel, "xds-label", "", "Istiod pod label selector") cmd.PersistentFlags().IntVar(&o.XdsPodPort, "xds-port", viper.GetInt("XDS-PORT"), "Istiod pod port") cmd.PersistentFlags().DurationVar(&o.Timeout, "timeout", time.Second*30, "The duration to wait before failing")
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Jun 06 03:39:27 GMT 2022 - 3.2K bytes - Viewed (0) -
cni/pkg/plugin/plugin_dryrun_test.go
// TODO(bianpengyuan): How do we test ipv6 rules? getNs = generateMockGetNsFunc(testSandboxDirectory) tmpDir := t.TempDir() outputFilePath := filepath.Join(tmpDir, "output.txt") if _, err := os.Create(outputFilePath); err != nil { t.Fatalf("Failed to create temp file for IPTables rule output: %v", err) } t.Setenv(dependencies.DryRunFilePath.Name, outputFilePath) pod := buildFakeDryRunPod()
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 8.4K bytes - Viewed (0) -
go.sum
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
Plain Text - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed May 01 15:22:54 GMT 2024 - 109.1K bytes - Viewed (0)