proxycontroller

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: UPL-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestNamespace         *corev1.Namespace
	TestPod               *corev1.Pod
	TestService           *corev1.Service
	TestVDB               *servicemeshapi.VirtualDeploymentBinding
	TestPDB               *v1beta1.PodDisruptionBudget
	MeshConfigMap         *corev1.ConfigMap
	MeshOperatorNamespace *corev1.Namespace
)

Functions

func Initialize

func Initialize(podWithProxy bool)

func UpdateResources

func UpdateResources(ctx context.Context, testFramework *framework.Framework, args ProxyControllerArgs, t *testing.T)

func ValidateResult

func ValidateResult(err error, args ProxyControllerArgs, want Result, ctx context.Context,
	testFramework *framework.Framework, t *testing.T)

Types

type ProxyControllerArgs

type ProxyControllerArgs struct {
	NamespaceLabel                     string
	PodLabel                           string
	CreatePod                          bool
	CreateService                      bool
	CreateVDB                          bool
	CreatePDB                          bool
	DeletePDB                          bool
	VDBRefPodAnnotation                string
	UpdateConfigMap                    bool
	CreateConfigMap                    bool
	CreateConfigMapWithoutSidecarImage bool
}

type Result

type Result struct {
	PodEvicted              bool
	OutdatedProxyAnnotation bool
	Err                     error
}

Jump to

Keyboard shortcuts

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