manifests

package
v0.0.0-...-ae1b243 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedByKey = "app.kubernetes.io/managed-by"
	// ManagedByVal is the value for the ManagedByKey label on all resources directly managed by our e2e tester
	ManagedByVal = "app-routing-operator-e2e"
)

Variables

View Source
var (

	// AllOperatorVersions is a list of all the operator versions
	AllOperatorVersions = []OperatorVersion{OperatorVersion0_0_3, OperatorVersionLatest}

	// AllDnsZoneCounts is a list of all the dns zone counts
	AllDnsZoneCounts     = []DnsZoneCount{DnsZoneCountNone, DnsZoneCountOne, DnsZoneCountMultiple}
	NonZeroDnsZoneCounts = []DnsZoneCount{DnsZoneCountOne, DnsZoneCountMultiple}

	SingleStackIPFamilyPolicy = corev1.IPFamilyPolicySingleStack
)

Functions

func ClientAndServer

func ClientAndServer(namespace, name, zoneName, nameserver, keyvaultURI string, isClusterScoped bool, svc string) testingResources

func E2e

func E2e(image, loadableProvisionedJson string) []client.Object

func MarshalJson

func MarshalJson(obj client.Object) ([]byte, error)

MarshalJson converts an object to json

func NewNginxIngressController

func NewNginxIngressController(name, ingressClassName string) *v1alpha1.NginxIngressController

func Operator

func Operator(latestImage string, publicZones, privateZones []string, cfg *OperatorConfig, cleanDeploy bool) []client.Object

func PrometheusClientAndServer

func PrometheusClientAndServer(namespace, name string) prometheusResources

func UncollisionedNs

func UncollisionedNs() *corev1.Namespace

UncollisionedNs returns a namespace with a guaranteed unique name after creating the namespace

Types

type DnsZoneCount

type DnsZoneCount uint

DnsZoneCount is enum for the number of dns zones but shouldn't be used directly. Use the exported fields of this type instead.

const (
	// DnsZoneCountNone represents no dns zones
	DnsZoneCountNone DnsZoneCount = iota
	// DnsZoneCountOne represents one dns zone
	DnsZoneCountOne
	// DnsZoneCountMultiple represents multiple dns zones
	DnsZoneCountMultiple
)

func (DnsZoneCount) String

func (d DnsZoneCount) String() string

type DnsZones

type DnsZones struct {
	Public  DnsZoneCount
	Private DnsZoneCount
}

type OperatorConfig

type OperatorConfig struct {
	Version    OperatorVersion
	Msi        string
	TenantId   string
	Location   string
	Zones      DnsZones
	DisableOsm bool
}

type OperatorVersion

type OperatorVersion uint

OperatorVersion is an enum for the different versions of the operator

const (
	OperatorVersion0_0_3 OperatorVersion = iota // use iota to number with earlier versions being lower numbers

	// OperatorVersionLatest represents the latest version of the operator which is essentially whatever code changes this test is running against
	OperatorVersionLatest = math.MaxUint // this must always be the last/largest value in the enum because we order by value
)

func (OperatorVersion) String

func (o OperatorVersion) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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