Documentation ¶
Index ¶
- Constants
- Variables
- 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 ClientServerResources
- 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" )
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 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 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 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.