Documentation ¶
Index ¶
- func DeploymentComplete(deployment *appsv1.Deployment, newStatus *appsv1.DeploymentStatus) bool
- func DeploymentContainer(deployment *appsv1.Deployment, name string) (*corev1.Container, error)
- func DeploymentPods(ctx context.Context, kubeClient client.Client, namespace, name string) (*v1.PodList, error)
- func PodLogs(ctx context.Context, clientSet kubernetes.Interface, ...) (string, error)
- func ResourceFromYAML(scheme *runtime.Scheme, b []byte) (client.Object, error)
- func ResourcesFromYAML(scheme *runtime.Scheme, b []byte) ([]client.Object, error)
- func WaitForDeploymentReady(ctx context.Context, kubeClient client.Client, namespace, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeploymentComplete ¶
func DeploymentComplete(deployment *appsv1.Deployment, newStatus *appsv1.DeploymentStatus) bool
Copied from https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/deployment/util/deployment_util.go DeploymentComplete considers a deployment to be complete once all of its desired replicas are updated and available, and no old pods are running.
func DeploymentContainer ¶
func DeploymentPods ¶
func DeploymentPods(ctx context.Context, kubeClient client.Client, namespace, name string) (*v1.PodList, error)
DeploymentPods returns the pods used for the given Deployment.
func PodLogs ¶
func PodLogs(ctx context.Context, clientSet kubernetes.Interface, namespace, name, container string) (string, error)
PodLogs returns the logs of the pod with the given name.
func ResourceFromYAML ¶
func ResourcesFromYAML ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.