Documentation ¶
Index ¶
- Constants
- Variables
- func GetPodsFromReplicaSet(ctx context.Context, c client.Client, rs *appsv1.ReplicaSet) (*v1.PodList, error)
- func GetReplicaSetsByDeployment(ctx context.Context, c client.Client, deployment *appsv1.Deployment) (appsv1.ReplicaSetList, error)
- func IsContainerCrashLoopBackOff(restartThreshold int32, containers []v1.ContainerStatus) bool
- func IsContainerImageCheckFail(containers []v1.ContainerStatus) bool
- func IsCreateContainerConfigError(containers []v1.ContainerStatus) bool
- func IsDeploymentDisabled(deployment *appsv1.Deployment) bool
- func IsInitContainerFailed(restartThreshold int32, initContainers []v1.ContainerStatus) (bool, string)
- func SafeGetLabel(deploy *appsv1.Deployment, label string) string
Constants ¶
View Source
const ( Unknown = "unknown" ImagePullBackOff = "ImagePullBackOff" ErrImagePull = "ErrImagePull" CrashLoopBackOff = "CrashLoopBackOff" CreateContainerConfigError = "CreateContainerConfigError" RollbackCauseAnnotation = "rolled back by babylon" DownscaleCauseAnnotation = "scaled down by babylon" ChangeCauseAnnotationKey = "kubernetes.io/change-cause" )
Variables ¶
Functions ¶
func GetPodsFromReplicaSet ¶
func GetReplicaSetsByDeployment ¶
func GetReplicaSetsByDeployment(ctx context.Context, c client.Client, deployment *appsv1.Deployment) (appsv1.ReplicaSetList, error)
func IsContainerCrashLoopBackOff ¶
func IsContainerCrashLoopBackOff(restartThreshold int32, containers []v1.ContainerStatus) bool
func IsContainerImageCheckFail ¶
func IsContainerImageCheckFail(containers []v1.ContainerStatus) bool
func IsCreateContainerConfigError ¶
func IsCreateContainerConfigError(containers []v1.ContainerStatus) bool
func IsDeploymentDisabled ¶
func IsDeploymentDisabled(deployment *appsv1.Deployment) bool
func IsInitContainerFailed ¶
func IsInitContainerFailed(restartThreshold int32, initContainers []v1.ContainerStatus) (bool, string)
func SafeGetLabel ¶
func SafeGetLabel(deploy *appsv1.Deployment, label string) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.