Documentation ¶
Index ¶
- Constants
- Variables
- func AddAndVerifyTestGDPStatus(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy, status string) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func AddAndVerifyTestGDPSuccess(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func AddTestGDP(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func BuildAddAndVerifyAppSelectorTestGDP(t *testing.T) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func BuildAddAndVerifyPoolPriorityTestGDP(t *testing.T, trafficSplit []gdpalphav2.TrafficSplitElem) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func BuildExpectedNonPathHmDescription(host string) nodes.HealthMonitor
- func BuildExpectedNonPathHmDescriptionString(host string) string
- func BuildExpectedPathHM(host string, paths []string, tls bool) nodes.HealthMonitor
- func BuildExpectedPathHmDescriptionString(host string, path []string, tls bool) []string
- func BuildIngressObj(name, ns, svc, cname string, hostIPs map[string]string, paths []string, ...) *networkingv1.Ingress
- func BuildLBServiceObj(t *testing.T, name, ns string, hostIPs map[string]string, port int32) *corev1.Service
- func BuildRouteObj(name, ns, svc, cname, host, ip, path string, withStatus bool) *routev1.Route
- func BuildTestNonPathHmNames(hostname string) string
- func BuildTestPathHmNames(hostname string, paths []string, tls bool) []string
- func GetTestDefaultGDPObject() *gdpalphav2.GlobalDeploymentPolicy
- func GetTestGDP(t *testing.T, name, ns string) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func GetTestGSFromRestCache(t *testing.T, gsName, tenant string) *avicache.AviGSCache
- func GetTestGSGraphFromName(t *testing.T, gsName, tenant string) *nodes.AviGSObjectGraph
- func GetUniqueMembers(members []nodes.AviGSK8sObj) []nodes.AviGSK8sObj
- func GetUniquePaths(paths []string) []string
- func RemoveTenantInNamespace(ns string)
- func UpdateAndVerifyTestGDPPrioritySuccess(t *testing.T, name, ns string, trafficSplit []gdpalphav2.TrafficSplitElem) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func UpdateTenantInNamespace(tenant, ns string)
- func UpdateTestGDP(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func VerifyGDPStatus(t *testing.T, ns, name, status string)
- func VerifyGSLBHostRuleStatus(t *testing.T, ns, name, status, errMsg string)
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 AddAndVerifyTestGDPStatus ¶
func AddAndVerifyTestGDPStatus(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy, status string) (*gdpalphav2.GlobalDeploymentPolicy, error)
func AddAndVerifyTestGDPSuccess ¶
func AddAndVerifyTestGDPSuccess(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
func AddTestGDP ¶
func AddTestGDP(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
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 BuildExpectedPathHM ¶
func BuildExpectedPathHM(host string, paths []string, tls bool) nodes.HealthMonitor
func BuildIngressObj ¶
func BuildLBServiceObj ¶
func BuildRouteObj ¶
func BuildTestNonPathHmNames ¶
func BuildTestPathHmNames ¶
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 ¶
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 UpdateTestGDP ¶
func UpdateTestGDP(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
func VerifyGDPStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.