- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for LocalEndpoint (0.15 sec)
-
cmd/kubeadm/app/util/endpoint.go
// - Otherwise, in case the controlPlaneEndpoint is not defined, use the localEndpoint.AdvertiseAddress + the localEndpoint.BindPort. func GetControlPlaneEndpoint(controlPlaneEndpoint string, localEndpoint *kubeadmapi.APIEndpoint) (string, error) { // get the URL of the local endpoint localAPIEndpoint, err := GetLocalAPIEndpoint(localEndpoint) if err != nil { return "", err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 11 15:08:59 UTC 2022 - 5.3K bytes - Viewed (0) -
pkg/kubelet/util/util_unsupported.go
func LockAndCheckSubPath(volumePath, subPath string) ([]uintptr, error) { return []uintptr{}, nil } // UnlockPath empty implementation func UnlockPath(fileHandles []uintptr) { } // LocalEndpoint empty implementation func LocalEndpoint(path, file string) (string, error) { return "", fmt.Errorf("LocalEndpoints are unsupported in this build") } // GetBootTime empty implementation func GetBootTime() (time.Time, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 1.2K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/proxy/proxy.go
) // EnsureProxyAddon creates the kube-proxy addons func EnsureProxyAddon(cfg *kubeadmapi.ClusterConfiguration, localEndpoint *kubeadmapi.APIEndpoint, client clientset.Interface, out io.Writer, printManifest bool) error { cmByte, err := createKubeProxyConfigMap(cfg, localEndpoint, client, printManifest) if err != nil { return err } dsByte, err := createKubeProxyAddon(cfg, client, printManifest)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 13:23:44 UTC 2023 - 8.1K bytes - Viewed (0) -
pkg/kubelet/util/util_unix.go
package util import ( "net/url" "path/filepath" ) const ( // unixProtocol is the network protocol of unix socket. unixProtocol = "unix" ) // LocalEndpoint returns the full path to a unix socket at the given endpoint func LocalEndpoint(path, file string) (string, error) { u := url.URL{ Scheme: unixProtocol, Path: path, } return filepath.Join(u.String(), file+".sock"), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 1.1K bytes - Viewed (0) -
pkg/kubelet/util/util_windows.go
*/ package util import ( "fmt" "path/filepath" "strings" "syscall" "time" ) const npipeProtocol = "npipe" // LocalEndpoint returns the full path to a named pipe at the given endpoint - unlike on unix, we can't use sockets. func LocalEndpoint(path, file string) (string, error) { // extract the podresources config name from the path. We only need this on windows because the preferred layout of pipes,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3K bytes - Viewed (0) -
pkg/kubelet/util/util_unix_test.go
}{ { path: "path", file: "file", expectError: false, expectedFullPath: "unix:/path/file.sock", }, } for _, test := range tests { fullPath, err := LocalEndpoint(test.path, test.file) if test.expectError { assert.NotNil(t, err, "expected error") continue } assert.Nil(t, err, "expected no error") assert.Equal(t, test.expectedFullPath, fullPath) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/kubelet/util/util_windows_test.go
expectError: false, expectedFullPath: `npipe://\\.\pipe\kubelet-pod-resources`, }, } for _, test := range tests { fullPath, err := LocalEndpoint(test.path, test.file) if test.expectError { assert.NotNil(t, err, "expected error") continue } assert.Nil(t, err, "expected no error") assert.Equal(t, test.expectedFullPath, fullPath) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/etcd/etcd.go
// address and client port for the API controller func GetClientURL(localEndpoint *kubeadmapi.APIEndpoint) string { return "https://" + net.JoinHostPort(localEndpoint.AdvertiseAddress, strconv.Itoa(constants.EtcdListenClientPort)) } // GetPeerURL creates an HTTPS URL that uses the configured advertise // address and peer port for the API controller func GetPeerURL(localEndpoint *kubeadmapi.APIEndpoint) string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 11:04:08 UTC 2024 - 21.2K bytes - Viewed (0) -
pkg/test/framework/components/zipkin/kube.go
if spanID, ok := spanSpec["id"]; ok { s.SpanID = spanID.(string) } if parentSpanID, ok := spanSpec["parentId"]; ok { s.ParentSpanID = parentSpanID.(string) } if endpointObj, ok := spanSpec["localEndpoint"]; ok { if em, ok := endpointObj.(map[string]any); ok { s.ServiceName = em["serviceName"].(string) } } if name, ok := spanSpec["name"]; ok { s.Name = name.(string) } return s
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 14 19:29:38 UTC 2023 - 8K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
} // ListenAndServePodResources runs the kubelet podresources grpc service func (kl *Kubelet) ListenAndServePodResources() { endpoint, err := util.LocalEndpoint(kl.getPodResourcesDir(), podresources.Socket) if err != nil { klog.V(2).InfoS("Failed to get local endpoint for PodResources endpoint", "err", err) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (0)