Documentation ¶
Index ¶
- Variables
- func CleanupOnInterrupt(cleanup func())
- func TearDown(clients *Clients, names ResourceNames)
- type Clients
- func (c *Clients) KnativeEventing() operatorv1alpha1.KnativeEventingInterface
- func (c *Clients) KnativeEventingAll() operatorv1alpha1.KnativeEventingInterface
- func (c *Clients) KnativeServing() operatorv1alpha1.KnativeServingInterface
- func (c *Clients) KnativeServingAll() operatorv1alpha1.KnativeServingInterface
- type OperatorEnvironmentFlags
- type ResourceNames
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ServingOperatorNamespace is the default namespace for serving operator e2e tests ServingOperatorNamespace = getenv("TEST_NAMESPACE", "knative-operator-testing") EventingOperatorNamespace = getenv("TEST_EVENTING_NAMESPACE", ServingOperatorNamespace) // OperatorName is the default operator name for serving operator e2e tests OperatorName = getenv("TEST_RESOURCE", "knative") // OperatorFlags holds the flags or defaults for knative/operator settings in the user's environment. OperatorFlags = initializeOperatorFlags() )
Functions ¶
func CleanupOnInterrupt ¶
func CleanupOnInterrupt(cleanup func())
CleanupOnInterrupt will execute the function cleanup if an interrupt signal is caught
func TearDown ¶
func TearDown(clients *Clients, names ResourceNames)
TearDown will delete created names using clients.
Types ¶
type Clients ¶
type Clients struct { KubeClient *test.KubeClient Dynamic dynamic.Interface Operator operatorv1alpha1.OperatorV1alpha1Interface Config *rest.Config }
Clients holds instances of interfaces for making requests to Knative Serving.
func NewClients ¶
NewClients instantiates and returns several clientsets required for making request to the Knative Serving cluster specified by the combination of clusterName and configPath.
func (*Clients) KnativeEventing ¶
func (c *Clients) KnativeEventing() operatorv1alpha1.KnativeEventingInterface
func (*Clients) KnativeEventingAll ¶
func (c *Clients) KnativeEventingAll() operatorv1alpha1.KnativeEventingInterface
func (*Clients) KnativeServing ¶
func (c *Clients) KnativeServing() operatorv1alpha1.KnativeServingInterface
func (*Clients) KnativeServingAll ¶
func (c *Clients) KnativeServingAll() operatorv1alpha1.KnativeServingInterface
type OperatorEnvironmentFlags ¶ added in v0.16.0
type OperatorEnvironmentFlags struct { PreviousServingVersion string // Indicates the previous version of Knative Serving. PreviousEventingVersion string // Indicates the previous version of Knative Eventing. }
OperatorEnvironmentFlags holds the e2e flags needed only by the operator repo.
type ResourceNames ¶
ResourceNames holds names of various resources.
Click to show internal directories.
Click to hide internal directories.