manifests

package
v0.0.0-...-065d467 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 19 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"
)
View Source
const (
	ManagedResourceNs = "app-routing-system"
)

Variables

View Source
var (

	// AllUsedOperatorVersions is a list of all the operator versions used today
	AllUsedOperatorVersions = []OperatorVersion{OperatorVersion0_2_3_Patch_2, 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 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 ClientServerResources

type ClientServerResources struct {
	Client       *appsv1.Deployment
	Server       *appsv1.Deployment
	Ingress      *netv1.Ingress
	Service      *corev1.Service
	AddedObjects []client.Object
}

func ClientAndServer

func ClientAndServer(namespace, name, nameserver, keyvaultURI, host, tlsHost string) ClientServerResources

func CustomErrorsClientAndServer

func CustomErrorsClientAndServer(namespace, name, nameserver, keyvaultURI, host, tlsHost, ingressClassName string, serviceName *string) ClientServerResources

func DefaultBackendClientAndServer

func DefaultBackendClientAndServer(namespace, name, nameserver, keyvaultURI, ingressClassName, host, tlsHost string) ClientServerResources

func (ClientServerResources) Objects

func (t ClientServerResources) Objects() []client.Object

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_2_1_Patch_4 OperatorVersion = iota // use iota to number with earlier versions being lower numbers
	OperatorVersion0_2_3_Patch_2

	// 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