Documentation ¶
Overview ¶
Package k8s provides utilities for communicating with Kubernetes cluster.
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package k8s provides utilities for communicating with Kubernetes cluster.
- Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
Index ¶
Constants ¶
View Source
const ( Default = "default" Pod = "pod" Svc = "svc" )
Variables ¶
View Source
var (
NodeName string
)
Functions ¶
func ValidateEtlName ¶ added in v1.3.16
Types ¶
type Client ¶
type Client interface { Create(v any) error Delete(entityType, entityName string) error CheckExists(entityType, entityName string) (bool, error) Pod(name string) (*corev1.Pod, error) Pods() (*corev1.PodList, error) Service(name string) (*corev1.Service, error) Node(name string) (*corev1.Node, error) Logs(podName string) ([]byte, error) Health(podName string) (string, error) Metrics(podName string) (cpuCores float64, freeMem int64, err error) CheckMetricsAvailability() error }
Client is simplified version of default `kubernetes.Interface` client.
Click to show internal directories.
Click to hide internal directories.