- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for KUBERNETES_SERVICE_HOST (0.24 sec)
-
cmd/update_test.go
sci := globalIsCICD globalIsCICD = false defer func() { globalIsCICD = sci }() t.Setenv("KUBERNETES_SERVICE_HOST", "10.11.148.5") kubernetes := IsKubernetes() if !kubernetes { t.Fatalf("Expected %t, got %t", true, kubernetes) } os.Unsetenv("KUBERNETES_SERVICE_HOST") kubernetes = IsKubernetes() if kubernetes { t.Fatalf("Expected %t, got %t", false, kubernetes) } }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 10.7K bytes - Viewed (0) -
cni/test/testdata/env_vars.sh
# shellcheck disable=SC2034 KUBERNETES_SERVICE_PORT=443 # shellcheck disable=SC2034 KUBE_DNS_SERVICE_PORT_DNS=53 # shellcheck disable=SC2034 KUBE_DNS_SERVICE_PORT_DNS_TCP=53 # shellcheck disable=SC2034 KUBERNETES_SERVICE_HOST=10.110.0.1 # shellcheck disable=SC2034 KUBE_DNS_PORT_53_UDP_PORT=53 # shellcheck disable=SC2034
Shell Script - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Nov 19 23:19:19 GMT 2020 - 1.9K bytes - Viewed (0) -
cni/pkg/install/kubeconfig.go
// Kubeconfig with confidential data redacted. Redacted string } func createKubeConfig(cfg *config.InstallConfig) (kubeconfig, error) { if len(cfg.K8sServiceHost) == 0 { return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_HOST not set. Is this not running within a pod?") } if len(cfg.K8sServicePort) == 0 { return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_PORT not set. Is this not running within a pod?") }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Aug 11 01:19:03 GMT 2023 - 4.9K bytes - Viewed (0) -
cni/pkg/config/config.go
KubeconfigMode int // CA file for kubeconfig KubeCAFile string // Whether to use insecure TLS in the kubeconfig file SkipTLSVerify bool // KUBERNETES_SERVICE_PROTOCOL K8sServiceProtocol string // KUBERNETES_SERVICE_HOST K8sServiceHost string // KUBERNETES_SERVICE_PORT K8sServicePort string // KUBERNETES_NODE_NAME K8sNodeName string // Directory from where the CNI binaries should be copied CNIBinSourceDir string
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 5.4K bytes - Viewed (0) -
cmd/update.go
func IsKubernetes() bool { // Kubernetes env used to validate if we are // indeed running inside a kubernetes pod // is KUBERNETES_SERVICE_HOST // https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_pods.go#L541 return env.Get("KUBERNETES_SERVICE_HOST", "") != "" } // IsBOSH returns true if minio is deployed from a bosh package func IsBOSH() bool {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 18.7K bytes - Viewed (0) -
cni/pkg/install/cniconfig.go
cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBECONFIG_FILEPATH__", filepath.Join(vars.cniNetDir, vars.kubeconfigFilename)) cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBERNETES_SERVICE_HOST__", vars.k8sServiceHost) cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBERNETES_SERVICE_PORT__", vars.k8sServicePort) cniConfigStr = strings.ReplaceAll(cniConfigStr, "__KUBERNETES_NODE_NAME__", vars.k8sNodeName)
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) -
cni/pkg/cmd/root.go
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"), K8sNodeName: os.Getenv("KUBERNETES_NODE_NAME"), CNIBinSourceDir: constants.CNIBinDir,
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Apr 11 21:42:29 GMT 2024 - 12.4K bytes - Viewed (0)