common

package
v0.0.0-...-2f83af2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Namespace = flags.DefaultNamespace // make configurable
)

Functions

func GetClient

func GetClient() (client.Client, kubernetes.Interface, error)

func LoadAdmissionDeploy

func LoadAdmissionDeploy() *appsv1.Deployment

func LoadClusterRole

func LoadClusterRole() *rbacv1.ClusterRole

func LoadClusterRoleBinding

func LoadClusterRoleBinding() *rbacv1.ClusterRoleBinding

func LoadNamespacedValidatingRuleCRD

func LoadNamespacedValidatingRuleCRD() *apiextv1.CustomResourceDefinition

func LoadNamespacedValidatingTypeCRD

func LoadNamespacedValidatingTypeCRD() *apiextv1.CustomResourceDefinition

func LoadOperator

func LoadOperator(desc string) *appsv1.Deployment

func LoadRole

func LoadRole() *rbacv1.Role

func LoadRoleBinding

func LoadRoleBinding() *rbacv1.RoleBinding

func LoadService

func LoadService() *v1.Service

func LoadServiceAccount

func LoadServiceAccount() *v1.ServiceAccount

func LoadTestService

func LoadTestService() *v1.Service

func OpArrayContainsValues

func OpArrayContainsValues(operations []admregv1.OperationType, op admregv1.OperationType) bool

func ValidateInWebhook

func ValidateInWebhook(ptList []*v1alpha1.NamespacedValidatingType) error

func ValidateNotInWebhook

func ValidateNotInWebhook(ptList []*v1alpha1.NamespacedValidatingType) error

func VerifyApplied

func VerifyApplied(t appliableObject) error

func VerifyDeleted

func VerifyDeleted(t verifyDeletion) error

func VerifyEmpty

func VerifyEmpty() error

func VerifyEndpoint

func VerifyEndpoint(e, namespace string) error

func VerifyNoEndpoint

func VerifyNoEndpoint(e, namespace string) error

func VerifyPodSuccess

func VerifyPodSuccess(p *v1.Pod) error

func WaitForDeployment

func WaitForDeployment(deploy *appsv1.Deployment) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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