Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateToCluster ¶
func AuthenticateToCluster(location, kubeConfig string) (*kubernetes.Clientset, error)
AuthenticateToCluster returns a Clientset depending if you are in cluster or out cluster.
func DateFromPodInSecond ¶
Return date in seconds from v1.Pod object.
Types ¶
type KubernetesClient ¶
type KubernetesClient struct {
// contains filtered or unexported fields
}
func InitKubernetesClient ¶
func InitKubernetesClient(clientSet kubernetes.Interface) *KubernetesClient
InitKubernetesClient inits a KubernetesClient.
func (KubernetesClient) DeletePod ¶
func (k KubernetesClient) DeletePod(ctx context.Context, namespace, name string) error
DeletePod deletes pods based on namespace & pod's name. Uses foreground deletion policy.
Click to show internal directories.
Click to hide internal directories.