k8s

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeployment

func GetDeployment(ctx context.Context, client *kubernetes.Clientset, service KindNamespaceName) (*appsv1.Deployment, error)

func GetPodStatus

func GetPodStatus(ctx context.Context, client *kubernetes.Clientset, namespace string, selector map[string]string) (map[string]corev1.PodStatus, error)

func GetStatefulset

func GetStatefulset(ctx context.Context, client *kubernetes.Clientset, service KindNamespaceName) (*appsv1.StatefulSet, error)

func RestartService

func RestartService(ctx context.Context, clientset *kubernetes.Clientset, service KindNamespaceName) error

Types

type KindNamespaceName

type KindNamespaceName struct {
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (KindNamespaceName) String

func (s KindNamespaceName) String() string

type PodStatus

type PodStatus map[corev1.PodPhase]int

func GetPodStatusFormat

func GetPodStatusFormat(pod map[string]corev1.PodStatus) PodStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL