Documentation ¶
Index ¶
- Constants
- func AddFlags(flags *flag.FlagSet)
- func CanIListAndGetAllSecretsAndConfigMaps(ctx context.Context, client kubernetes.Interface) (bool, error)
- func GetKubeconfig() clientcmd.ClientConfig
- func GetPodStatusReason(pod *corev1.Pod) (string, string)
- func GetRESTConfig() (*rest.Config, error)
- func IsPodUnhealthy(pod *corev1.Pod) bool
- func NodeIsReady(node v1.Node) bool
- func PortForward(config *restclient.Config, localPort int, remotePort int, namespace string, ...) (chan struct{}, error)
- type PodStatusReason
Constants ¶
View Source
const NotReadyTaint = "node.kubernetes.io/not-ready"
View Source
const UnreachableTaint = "node.kubernetes.io/unreachable"
View Source
const UnschedulableTaint = "node.kubernetes.io/unschedulable"
Variables ¶
This section is empty.
Functions ¶
func CanIListAndGetAllSecretsAndConfigMaps ¶ added in v0.60.0
func CanIListAndGetAllSecretsAndConfigMaps(ctx context.Context, client kubernetes.Interface) (bool, error)
CanIListAndGetAllSecretsAndConfigMaps checks if the current user can list and get secrets and configmaps from all namespaces
func GetKubeconfig ¶ added in v0.13.4
func GetKubeconfig() clientcmd.ClientConfig
func GetPodStatusReason ¶ added in v0.17.0
func GetRESTConfig ¶ added in v0.9.44
func IsPodUnhealthy ¶ added in v0.18.0
func NodeIsReady ¶ added in v0.14.0
func PortForward ¶
Types ¶
type PodStatusReason ¶ added in v0.18.0
type PodStatusReason string
const ( PodStatusReasonRunning PodStatusReason = "Running" PodStatusReasonError PodStatusReason = "Error" PodStatusReasonNotReady PodStatusReason = "NotReady" PodStatusReasonUnknown PodStatusReason = "Unknown" PodStatusReasonShutdown PodStatusReason = "Shutdown" PodStatusReasonTerminating PodStatusReason = "Terminating" PodStatusReasonCrashLoopBackOff PodStatusReason = "CrashLoopBackOff" PodStatusReasonImagePullBackOff PodStatusReason = "ImagePullBackOff" PodStatusReasonContainerCreating PodStatusReason = "ContainerCreating" PodStatusReasonPending PodStatusReason = "Pending" PodStatusReasonCompleted PodStatusReason = "Completed" PodStatusReasonEvicted PodStatusReason = "Evicted" PodStatusReasonInitError PodStatusReason = "Init:Error" PodStatusReasonInitCrashLoopBackOff PodStatusReason = "Init:CrashLoopBackOff" )
Click to show internal directories.
Click to hide internal directories.