Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resources ¶
type Resources struct { // Root is the first level in the cluster resource hierarchy. // Each level in the hierarchy is a map[string]interface{} to the next level. // The levels are: namespaces/deployments/pods/containers. Root map[string]any // Labels maps a pod name to a map of labels key-values. Labels map[string]map[string]string // Annotations maps a pod name to a map of annotation key-values. Annotations map[string]map[string]string // Pod maps a pod name to its Pod info. The key is namespace/pod-name. Pod map[string]*corev1.Pod // CniPod CniPod map[string]*corev1.Pod }
Resources defines a tree of cluster resource names.
func GetClusterResources ¶
func GetClusterResources(ctx context.Context, clientset *kubernetes.Clientset, config *config2.BugReportConfig) (*Resources, error)
GetClusterResources returns cluster resources for the given REST config and k8s Clientset.
func (*Resources) ContainerRestarts ¶
ContainerRestarts returns the number of container restarts for the given container.
func (*Resources) IsDiscoveryContainer ¶
IsDiscoveryContainer reports whether the given container is the Istio discovery container.
func (*Resources) PodIstioVersion ¶
PodIstioVersion returns the Istio version for the given pod, if either the proxy or discovery are one of its containers and the tag is in a parseable format.
Click to show internal directories.
Click to hide internal directories.