Documentation ¶
Index ¶
- Constants
- Variables
- func ClientAndServer(namespace, name, zoneName, nameserver, keyvaultURI string, ...) testingResources
- func E2e(image, loadableProvisionedJson string) []client.Object
- func MarshalJson(obj client.Object) ([]byte, error)
- func NewNginxIngressController(name, ingressClassName string) *v1alpha1.NginxIngressController
- func Operator(latestImage string, publicZones, privateZones []string, cfg *OperatorConfig, ...) []client.Object
- func PrometheusClientAndServer(namespace, name string) prometheusResources
- func UncollisionedNs() *corev1.Namespace
- type DnsZoneCount
- type DnsZones
- type OperatorConfig
- type OperatorVersion
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 MarshalJson ¶
MarshalJson converts an object to json
func NewNginxIngressController ¶
func NewNginxIngressController(name, ingressClassName string) *v1alpha1.NginxIngressController
func PrometheusClientAndServer ¶
func PrometheusClientAndServer(namespace, name string) prometheusResources
func UncollisionedNs ¶
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 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.