pods

package
v0.0.0-...-10c3143 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

pods contains assertions for Kubernetes Pods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodAssertion

type PodAssertion struct {
	assertion.Assertion
}

PodAssertion is a wrapper around the assertion.Assertion type and provides a set of assertions for Kubernetes Pods.

func NewPodAssertion

func NewPodAssertion(opts ...assertion.Option) PodAssertion

NewPodAssertion creates a new PodAssertion with the provided options.

func (PodAssertion) AtLeastNAreReady

func (pa PodAssertion) AtLeastNAreReady(count int) PodAssertion

AtLeastNAreReady asserts that at least N Pods are ready in the cluster that match the provided options.

func (PodAssertion) AtLeastNExist

func (pa PodAssertion) AtLeastNExist(count int) PodAssertion

AtLeastNExist asserts that at least N Pods exist in the cluster that match the provided options.

func (PodAssertion) ExactlyNAreReady

func (pa PodAssertion) ExactlyNAreReady(count int) PodAssertion

ExactlyNAreReady asserts that exactly N Pods are ready in the cluster that match the provided options.

func (PodAssertion) ExactlyNExist

func (pa PodAssertion) ExactlyNExist(count int) PodAssertion

ExactlyNExist asserts that exactly N Pods exist in the cluster that match the provided options.

func (PodAssertion) Exists

func (pa PodAssertion) Exists() PodAssertion

Exists asserts that exactly one Pod exists in the cluster that matches the provided options.

func (PodAssertion) IsReady

func (pa PodAssertion) IsReady() PodAssertion

IsReady asserts that exactly one Pod is ready in the cluster that matches the provided options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳