Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct { Name string `json:"name"` Image string `json:"image"` ImageTag string `json:"imageTag"` }
func (*Container) FilterValue ¶
type Namespace ¶
func NewNamespace ¶
func NewNamespace(name string, clientset *kubernetes.Clientset) *Namespace
func (*Namespace) FilterValue ¶
type Pod ¶
type Pod struct { Name string `json:"name"` UID string `json:"uid"` Labels map[string]string `json:"-"` CreationTimestamp time.Time `json:"creationTimestamp"` Namespace string `json:"namespace"` Status string `json:"status"` Containers []*Container `json:"containers"` }
func GetPodsForWorkload ¶
func GetPodsForWorkload(replicaSets []appsv1.ReplicaSet, workload metav1.Object, namespacedPods []v1.Pod, workloadKind string) []*Pod
GetPodsForWorkload finds and returns a list of pods associated with a given workload. The workload can be either a Deployment or a StatefulSet.
Parameters: - replicaSets: A slice of ReplicaSet objects in the namespace. - workload: The specific workload object (Deployment or StatefulSet). - namespacedPods: A slice of Pod objects in the namespace. - workloadKind: A string indicating the type of the workload ("Deployment" or "StatefulSet").
Returns: - A slice of Pod objects that are associated with the given workload.
func (*Pod) FilterValue ¶
type Workload ¶
type Workload struct { Kind string `json:"kind"` Name string `json:"name"` UID string `json:"uid"` Labels map[string]string `json:"-"` CreationTimestamp time.Time `json:"creationTimestamp"` Namespace string `json:"namespace"` Pods []*Pod `json:"pods"` }
func (*Workload) FilterValue ¶
Click to show internal directories.
Click to hide internal directories.