third_party_vips

package
v0.0.0-...-892b39a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeBuilderAssetsEnv = "KUBEBUILDER_ASSETS"
	// list indices for k8s cluster, openshift cluster and config cluster (where AMKO is running)
	// Config cluster and K8s cluster are same here
	K8s           = 0
	ConfigCluster = 0
	Oshift        = 1
	MaxClusters   = 2
	// AMKO CRD directory
	AmkoCRDs = "../../../../helm/amko/crds"
	AkoCRDs  = "../../crds/ako"

	AviSystemNS     = "avi-system"
	AviSecret       = "avi-secret"
	GslbConfigName  = "test-gc"
	GDPName         = "test-gdp"
	K8sContext      = "k8s"
	OshiftContext   = "oshift"
	Hostname        = "hostname"
	Path            = "path"
	TlsTrue         = true
	TlsFalse        = false
	DefaultPriority = 10
	Tenant          = "tenant1"
)

Variables

View Source
var (
	KubeBuilderAssetsVal string
)

Functions

func BuildAddAndVerifyAppSelectorTestGDP

func BuildAddAndVerifyAppSelectorTestGDP(t *testing.T) (*gdpalphav2.GlobalDeploymentPolicy, error)

func BuildAddAndVerifyPoolPriorityTestGDP

func BuildAddAndVerifyPoolPriorityTestGDP(t *testing.T, trafficSplit []gdpalphav2.TrafficSplitElem) (*gdpalphav2.GlobalDeploymentPolicy, error)

func BuildExpectedNonPathHmDescription

func BuildExpectedNonPathHmDescription(host string) nodes.HealthMonitor

func BuildExpectedNonPathHmDescriptionString

func BuildExpectedNonPathHmDescriptionString(host string) string

func BuildExpectedPathHM

func BuildExpectedPathHM(host string, paths []string, tls bool) nodes.HealthMonitor

func BuildExpectedPathHmDescriptionString

func BuildExpectedPathHmDescriptionString(host string, path []string, tls bool) []string

func BuildIngressObj

func BuildIngressObj(name, ns, svc, cname string, hostIPs map[string]string, paths []string, withStatus bool, secretName string) *networkingv1.Ingress

func BuildLBServiceObj

func BuildLBServiceObj(t *testing.T, name, ns string, hostIPs map[string]string, port int32) *corev1.Service

func BuildRouteObj

func BuildRouteObj(name, ns, svc, cname, host, ip, path string, withStatus bool) *routev1.Route

func BuildTestNonPathHmNames

func BuildTestNonPathHmNames(hostname string) string

func BuildTestPathHmNames

func BuildTestPathHmNames(hostname string, paths []string, tls bool) []string

func GetTestDefaultGDPObject

func GetTestDefaultGDPObject() *gdpalphav2.GlobalDeploymentPolicy

func GetTestGDP

func GetTestGDP(t *testing.T, name, ns string) (*gdpalphav2.GlobalDeploymentPolicy, error)

func GetTestGSFromRestCache

func GetTestGSFromRestCache(t *testing.T, gsName, tenant string) *avicache.AviGSCache

func GetTestGSGraphFromName

func GetTestGSGraphFromName(t *testing.T, gsName, tenant string) *nodes.AviGSObjectGraph

func GetUniqueMembers

func GetUniqueMembers(members []nodes.AviGSK8sObj) []nodes.AviGSK8sObj

Can be used to get unqiue members when ingress/route have multi paths

func GetUniquePaths

func GetUniquePaths(paths []string) []string

Used to get union set of multi paths of ingress/route with the same host

func RemoveTenantInNamespace

func RemoveTenantInNamespace(ns string)

func UpdateAndVerifyTestGDPPrioritySuccess

func UpdateAndVerifyTestGDPPrioritySuccess(t *testing.T, name, ns string, trafficSplit []gdpalphav2.TrafficSplitElem) (*gdpalphav2.GlobalDeploymentPolicy, error)

func UpdateTenantInNamespace

func UpdateTenantInNamespace(tenant, ns string)

func VerifyGDPStatus

func VerifyGDPStatus(t *testing.T, ns, name, status string)

func VerifyGSLBHostRuleStatus

func VerifyGSLBHostRuleStatus(t *testing.T, ns, name, status, errMsg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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