Documentation ¶
Index ¶
Constants ¶
const ( MaxRetriesOnFederatedApiserver = 3 FederatedIngressTimeout = 15 * time.Minute FederatedIngressDeleteTimeout = 2 * time.Minute FederatedIngressName = "federated-ingress" FederatedIngressServiceName = "federated-ingress-service" FederatedIngressTLSSecretName = "federated-ingress-tls-secret" FederatedIngressServicePodName = "federated-ingress-service-test-pod" FederatedIngressHost = "test-f8n.k8s.io." FederatedSecretTimeout = 60 * time.Second // TLS Certificate and Key for the ingress resource // Generated using: // $ openssl req -nodes -x509 -newkey rsa:2048 -keyout fedingtestkey.pem -out fedingtestcrt.pem -days 2485 // 2485 days is an arbitrary large number chosen below int32 seconds. FederatedIngressTLSCrt = `` /* 1244-byte string literal not displayed */ FederatedIngressTLSKey = `` /* 1703-byte string literal not displayed */ )
const ( FederatedServiceName = "federated-service" FederatedServicePodName = "federated-service-test-pod" )
const ( // [30000, 32767] is the allowed default service nodeport range and our // tests just use the defaults. FederatedSvcNodePortFirst = 30000 FederatedSvcNodePortLast = 32767 )
const (
FederationEventName = "federation-event"
)
const (
FederationJobName = "federation-job"
)
const (
FederationReplicaSetPrefix = "federation-replicaset-"
)
Variables ¶
var ( DefaultFederationName = "e2e-federation" // We use this to decide how long to wait for our DNS probes to succeed. DNSTTL = 180 * time.Second // TODO: make k8s.io/federation/pkg/federation-controller/service.minDnsTtl exported, and import it here. )
var FederatedServiceLabels = map[string]string{
"foo": "bar",
}
var FederationSuite common.Suite
Functions ¶
func RemoveCleanupAction ¶
func RemoveCleanupAction(p CleanupActionHandle)
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
func RunCleanupActions ¶
func RunCleanupActions()
RunCleanupActions runs all functions installed by AddCleanupAction. It does not remove them (see RemoveCleanupAction) but it does run unlocked, so they may remove themselves.
func RunE2ETests ¶
TestE2E checks configuration parameters (specified through flags) and then runs E2E tests using the Ginkgo runner. If a "report directory" is specified, one or more JUnit test reports will be generated in this directory, and cluster logs will also be saved. This function is called on each Ginkgo node in parallel mode.
Types ¶
type BackendPodMap ¶
BackendPodMap maps a cluster name to a backend pod created in that cluster
type CleanupActionHandle ¶
type CleanupActionHandle *int
func AddCleanupAction ¶
func AddCleanupAction(fn func()) CleanupActionHandle
AddCleanupAction installs a function that will be called in the event of the whole test being terminated. This allows arbitrary pieces of the overall test to hook into SynchronizedAfterSuite().
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package upgrades provides a framework for testing Kubernetes federation features before, during, and after different types of upgrades.
|
Package upgrades provides a framework for testing Kubernetes federation features before, during, and after different types of upgrades. |