Documentation
¶
Index ¶
- Constants
- Variables
- func WithCascadingDelete(c *fedcorev1a1.FederatedCluster)
- func WithInsecure(c *fedcorev1a1.FederatedCluster)
- func WithInvalidEndpoint(c *fedcorev1a1.FederatedCluster)
- func WithServiceAccount(c *fedcorev1a1.FederatedCluster)
- func WithTaints(c *fedcorev1a1.FederatedCluster)
- type ClusterModifier
- type Framework
- type FrameworkOptions
Constants ¶
View Source
const ( TestLabelSlow = "slow" TestLabelNeedCreateCluster = "need-create-cluster" MessageUnexpectedError = "unexpected error" E2ETestObjectLabel = "kubeadmiral.io/e2e-test-object" )
View Source
const ( KwokClusterProvider = "kwok" KindClusterProvider = "kind" )
View Source
const (
E2EClusterTaintKey = "kubeadmiral-e2e-test"
)
Variables ¶
View Source
var ( // TODO: make this configurable through flags FedSystemNamespace string = common.DefaultFedSystemNamespace CronJobV1Available bool )
Functions ¶
func WithCascadingDelete ¶
func WithCascadingDelete(c *fedcorev1a1.FederatedCluster)
func WithInsecure ¶
func WithInsecure(c *fedcorev1a1.FederatedCluster)
func WithInvalidEndpoint ¶
func WithInvalidEndpoint(c *fedcorev1a1.FederatedCluster)
func WithServiceAccount ¶
func WithServiceAccount(c *fedcorev1a1.FederatedCluster)
func WithTaints ¶
func WithTaints(c *fedcorev1a1.FederatedCluster)
Types ¶
type ClusterModifier ¶
type ClusterModifier func(*fedcorev1a1.FederatedCluster)
type Framework ¶
type Framework interface { HostKubeClient() kubeclient.Interface HostFedClient() fedclient.Interface HostDynamicClient() dynamic.Interface HostDiscoveryClient() discovery.DiscoveryInterface Name() string TestNamespace() *corev1.Namespace NewCluster(ctx context.Context, clusterModifiers ...ClusterModifier) (*fedcorev1a1.FederatedCluster, *corev1.Secret) ClusterKubeClient(ctx context.Context, cluster *fedcorev1a1.FederatedCluster) kubeclient.Interface ClusterFedClient(ctx context.Context, cluster *fedcorev1a1.FederatedCluster) fedclient.Interface ClusterDynamicClient(ctx context.Context, cluster *fedcorev1a1.FederatedCluster) dynamic.Interface }
func NewFramework ¶
func NewFramework(baseName string, options FrameworkOptions) Framework
type FrameworkOptions ¶
type FrameworkOptions struct {
CreateNamespace bool
}
Click to show internal directories.
Click to hide internal directories.