k8s

package
v0.0.0-...-b40b7a5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 26 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCronjobNotPresent

func AssertCronjobNotPresent(c *clients.Clients, cronJobName, namespace string)

func AssertCronjobPresent

func AssertCronjobPresent(c *clients.Clients, cronJobName, namespace string)

func AssertIfDefaultCronjobExists

func AssertIfDefaultCronjobExists(c *clients.Clients, namespace string)

func AssertPrunerCronjobWithContainer

func AssertPrunerCronjobWithContainer(c *clients.Clients, namespace, num string)

func CreateCronJob

func CreateCronJob(c *clients.Clients, args []string, schedule, namespace string)

func DeleteCronJob

func DeleteCronJob(c *clients.Clients, name, ns string) error

func GetCronjobNameWithSchedule

func GetCronjobNameWithSchedule(c *clients.Clients, namespace, schedule string) string

func GetWarningEvents

func GetWarningEvents(c *clients.Clients, namespace string) (string, error)

func NewClientSet

func NewClientSet() (*clients.Clients, string, func())

NewClientSet is a setup function which helps you 1. to create clientSet instance to `client` 2. to create a namespace with random name

func ValidateDeploymentDeletion

func ValidateDeploymentDeletion(cs *clients.Clients, ns string, deployments ...string)

func ValidateDeployments

func ValidateDeployments(cs *clients.Clients, ns string, deployments ...string)

func ValidateSCCAdded

func ValidateSCCAdded(cs *clients.Clients, ns, sa string)

func ValidateSCCRemoved

func ValidateSCCRemoved(cs *clients.Clients, ns, sa string)

func ValidateTektonInstallersetNames

func ValidateTektonInstallersetNames(c *clients.Clients)

func ValidateTektonInstallersetStatus

func ValidateTektonInstallersetStatus(c *clients.Clients)

func VerifyNamespaceExists

func VerifyNamespaceExists(ctx context.Context, kc *clients.KubeClient, ns string)

func VerifyNoServiceAccount

func VerifyNoServiceAccount(ctx context.Context, kc *clients.KubeClient, sa, ns string)

func VerifyServiceAccountExists

func VerifyServiceAccountExists(ctx context.Context, kc *clients.KubeClient, sa, ns string)

func WaitForDeployment

func WaitForDeployment(ctx context.Context, kc kubernetes.Interface, namespace, name string, replicas int, retryInterval, timeout time.Duration) error

func WaitForDeploymentDeletion

func WaitForDeploymentDeletion(cs *clients.Clients, namespace, name string) error

WaitForDeploymentDeletion checks to see if a given deployment is deleted the function returns an error if the given deployment is not deleted within the timeout

func WaitForServiceAccount

func WaitForServiceAccount(cs *clients.Clients, ns, targetSA string) *corev1.ServiceAccount

WaitForServiceAccount checks if service account created

func Watch

Watch func helps you to watch on dynamic resources

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL