deployments

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: 11 Imported by: 0

Documentation

Overview

deployments package contains assertions for Kubernetes Deployments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentAssertion

type DeploymentAssertion struct {
	assertion.Assertion
}

DeploymentAssertion is a wrapper around assertion.Assertion that provides a set of assertion functions for Deployments.

func NewDeploymentAssertion

func NewDeploymentAssertion(opts ...assertion.Option) DeploymentAssertion

NewDeploymentAssertion creates a new DeploymentAssertion with the provided options.

func (DeploymentAssertion) AtLeastNAreAvailable

func (da DeploymentAssertion) AtLeastNAreAvailable(count int) DeploymentAssertion

AtLeastNAreAvailable asserts that at least N Deployments are available in the cluster that match the provided options.

func (DeploymentAssertion) AtLeastNAreSystemClusterCritical

func (da DeploymentAssertion) AtLeastNAreSystemClusterCritical(count int) DeploymentAssertion

AtLeastNAreSystemClusterCritical asserts that at least N Deployments are system cluster critical in the cluster that match the provided options.

func (DeploymentAssertion) AtLeastNExist

func (da DeploymentAssertion) AtLeastNExist(count int) DeploymentAssertion

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

func (DeploymentAssertion) AtLeastNHaveCPURequests

func (da DeploymentAssertion) AtLeastNHaveCPURequests(count int) DeploymentAssertion

AtLeastNHaveCPURequests asserts that at least N Deployments have CPU requests in the cluster that match the provided options.

func (DeploymentAssertion) AtLeastNHaveMemoryLimits

func (da DeploymentAssertion) AtLeastNHaveMemoryLimits(count int) DeploymentAssertion

AtLeastNHaveMemoryLimits asserts that at least N Deployments have memory limits in the cluster that match the provided options.

func (DeploymentAssertion) AtLeastNHaveMemoryLimitsEqualToRequests

func (da DeploymentAssertion) AtLeastNHaveMemoryLimitsEqualToRequests(count int) DeploymentAssertion

AtLeastNHaveMemoryLimitsEqualToRequests asserts that at least N Deployments have memory limits set equal to requests in the cluster that match the provided options.

func (DeploymentAssertion) AtLeastNHaveMemoryRequests

func (da DeploymentAssertion) AtLeastNHaveMemoryRequests(count int) DeploymentAssertion

AtLeastNHaveMemoryRequests asserts that at least N Deployments have memory requests in the cluster that match the provided options.

func (DeploymentAssertion) AtLeastNHaveNoCPULimits

func (da DeploymentAssertion) AtLeastNHaveNoCPULimits(count int) DeploymentAssertion

AtLeastNHaveNoCPULimits asserts that at least N Deployments have no CPU limits in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNAreAvailable

func (da DeploymentAssertion) ExactlyNAreAvailable(count int) DeploymentAssertion

ExactlyNAreAvailable asserts that exactly N Deployments are available in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNAreSystemClusterCritical

func (da DeploymentAssertion) ExactlyNAreSystemClusterCritical(count int) DeploymentAssertion

ExactlyNAreSystemClusterCritical asserts that exactly N Deployments are system cluster critical in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNExist

func (da DeploymentAssertion) ExactlyNExist(count int) DeploymentAssertion

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

func (DeploymentAssertion) ExactlyNHaveCPURequests

func (da DeploymentAssertion) ExactlyNHaveCPURequests(count int) DeploymentAssertion

ExactlyNHaveCPURequests asserts that exactly N Deployments have CPU requests in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNHaveMemoryLimits

func (da DeploymentAssertion) ExactlyNHaveMemoryLimits(count int) DeploymentAssertion

ExactlyNHaveMemoryLimits asserts that exactly N Deployments have memory limits in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNHaveMemoryLimitsEqualToRequests

func (da DeploymentAssertion) ExactlyNHaveMemoryLimitsEqualToRequests(count int) DeploymentAssertion

ExactlyNHaveMemoryLimitsEqualToRequests asserts that exactly N Deployments have memory limits set equal to requests in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNHaveMemoryRequests

func (da DeploymentAssertion) ExactlyNHaveMemoryRequests(count int) DeploymentAssertion

ExactlyNHaveMemoryRequests asserts that exactly N Deployments have memory requests in the cluster that match the provided options.

func (DeploymentAssertion) ExactlyNHaveNoCPULimits

func (da DeploymentAssertion) ExactlyNHaveNoCPULimits(count int) DeploymentAssertion

ExactlyNHaveNoCPULimits asserts that exactly N Deployments have no CPU limits in the cluster that match the provided options.

func (DeploymentAssertion) Exists

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

func (DeploymentAssertion) HasCPURequests

func (da DeploymentAssertion) HasCPURequests() DeploymentAssertion

HasCPURequests asserts that exactly one Deployment has CPU requests in the cluster that match the provided options.

func (DeploymentAssertion) HasMemoryLimits

func (da DeploymentAssertion) HasMemoryLimits() DeploymentAssertion

HasMemoryLimits asserts that exactly one Deployment has memory limits in the cluster that match the provided options.

func (DeploymentAssertion) HasMemoryLimitsEqualToRequests

func (da DeploymentAssertion) HasMemoryLimitsEqualToRequests() DeploymentAssertion

HasMemoryLimitsEqualToRequests asserts that exactly one Deployment has memory limits set equal to requests in the cluster that match the provided options.

func (DeploymentAssertion) HasMemoryRequests

func (da DeploymentAssertion) HasMemoryRequests() DeploymentAssertion

HasMemoryRequests asserts that exactly one Deployment has memory requests in the cluster that match the provided options.

func (DeploymentAssertion) HasNoCPULimits

func (da DeploymentAssertion) HasNoCPULimits() DeploymentAssertion

HasNoCPULimits asserts that exactly one Deployment has no CPU limits in the cluster that match the provided options.

func (DeploymentAssertion) IsAvailable

func (da DeploymentAssertion) IsAvailable() DeploymentAssertion

IsAvailable asserts that exactly one Deployment is available in the cluster that matches the provided options.

func (DeploymentAssertion) IsSystemClusterCritical

func (da DeploymentAssertion) IsSystemClusterCritical() DeploymentAssertion

IsSystemClusterCritical asserts that exactly one Deployment is system cluster critical 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