Documentation ¶
Index ¶
- func GetValidDNSSubdomainName(name string) (string, error)
- func LoadFederatedConfig(overrides *clientcmd.ConfigOverrides) (*restclient.Config, error)
- func LoadFederationClientset() (*federation_clientset.Clientset, error)
- func SkipUnlessFederated(c clientset.Interface)
- func WaitForFederationApiserverReady(c *federation_clientset.Clientset) error
- type E2EContext
- type Framework
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidDNSSubdomainName ¶
GetValidDNSSubdomainName massages the given name to be a valid dns subdomain name. Most resources (such as secrets, clusters) require the names to be valid dns subdomain. This is a generic function (not specific to federation). Should be moved to a more generic location if others want to use it.
func LoadFederatedConfig ¶
func LoadFederatedConfig(overrides *clientcmd.ConfigOverrides) (*restclient.Config, error)
func LoadFederationClientset ¶
func LoadFederationClientset() (*federation_clientset.Clientset, error)
func SkipUnlessFederated ¶
Detects whether the federation namespace exists in the underlying cluster
func WaitForFederationApiserverReady ¶
func WaitForFederationApiserverReady(c *federation_clientset.Clientset) error
WaitForFederationApiserverReady waits for the federation apiserver to be ready. It tests the readiness by sending a GET request and expecting a non error response.
Types ¶
type E2EContext ¶
type Framework ¶
type Framework struct { *framework.Framework FederationClientset *federation_clientset.Clientset FederationNamespace *v1.Namespace }
Framework extends e2e Framework and adds federation specific fields
func (*Framework) FederationAfterEach ¶
func (f *Framework) FederationAfterEach()
FederationAfterEach deletes the namespace, after reading its events.
func (*Framework) FederationBeforeEach ¶
func (f *Framework) FederationBeforeEach()
FederationBeforeEach checks for federation apiserver is ready and makes a namespace.
func (*Framework) GetUnderlyingFederatedContexts ¶
func (f *Framework) GetUnderlyingFederatedContexts() []E2EContext