types

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConformanceTests            = "conformance"
	LoadbalancerTests           = "loadbalancer"
	StorageTests                = "storage"
	MetricsTests                = "metrics"
	SecurityContextTests        = "securitycontext"
	TelemetryTests              = "telemetry"
	K8sGcrImageTests            = "gcr-images"
	UserClusterRBACTests        = "usercluster-rbac"
	UserClusterSeccompTests     = "usercluster-seccomp"
	UserClusterK8sGcrImageTests = "usercluster-gcr-images"
)

Variables

Functions

This section is empty.

Types

type Options

type Options struct {
	Client     string
	NamePrefix string

	Providers            sets.Set[kubermaticv1.CloudProvider]
	Releases             sets.Set[string]
	Versions             []*kubermativsemver.Semver
	EnableDistributions  sets.Set[kubermaticv1.OperatingSystem]
	ExcludeDistributions sets.Set[kubermaticv1.OperatingSystem]
	Distributions        sets.Set[kubermaticv1.OperatingSystem]
	EnableTests          sets.Set[string]
	ExcludeTests         sets.Set[string]
	Tests                sets.Set[string]
	ContainerRuntimes    sets.Set[string]

	// The tester can export the result status for all executed scenarios
	// into a JSON file and then re-read that to retry failed runs.
	ResultsFile          string
	RetryFailedScenarios bool

	OperatingSystemManagerEnabled bool
	DualStackEnabled              bool
	KonnectivityEnabled           bool
	ScenarioOptions               sets.Set[string]
	TestClusterUpdate             bool

	ControlPlaneReadyWaitTimeout time.Duration
	NodeReadyTimeout             time.Duration
	CustomTestTimeout            time.Duration
	UserClusterPollInterval      time.Duration
	DeleteClusterAfterTests      bool
	WaitForClusterDeletion       bool
	NodeCount                    int
	PublicKeys                   [][]byte
	ReportsRoot                  string
	LogDirectory                 string
	SeedClusterClient            ctrlruntimeclient.Client
	SeedGeneratedClient          kubernetes.Interface
	ClusterClientProvider        *clusterclient.Provider
	RepoRoot                     string
	SeedRestConfig               *rest.Config
	ClusterParallelCount         int
	HomeDir                      string
	ExistingClusterLabel         string
	KubermaticNamespace          string
	KubermaticConfiguration      *kubermaticv1.KubermaticConfiguration
	PushgatewayEndpoint          string

	Secrets Secrets
}

Options represent combination of flags and ENV options.

func NewDefaultOptions

func NewDefaultOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags()

func (*Options) ParseFlags

func (o *Options) ParseFlags(log *zap.SugaredLogger) error

type Secrets

type Secrets struct {
	Anexia struct {
		KKPDatacenter string
		Token         string
		TemplateID    string
		VlanID        string
	}
	AWS struct {
		KKPDatacenter   string
		AccessKeyID     string
		SecretAccessKey string
	}
	Azure struct {
		KKPDatacenter  string
		ClientID       string
		ClientSecret   string
		TenantID       string
		SubscriptionID string
	}
	Digitalocean struct {
		KKPDatacenter string
		Token         string
	}
	Hetzner struct {
		KKPDatacenter string
		Token         string
	}
	OpenStack struct {
		KKPDatacenter string
		Domain        string
		Project       string
		ProjectID     string
		Username      string
		Password      string
	}
	VSphere struct {
		KKPDatacenter string
		Username      string
		Password      string
	}
	Packet struct {
		KKPDatacenter string
		APIKey        string
		ProjectID     string
	}
	GCP struct {
		KKPDatacenter string
		// ServiceAccount is the plaintext Service account (as JSON) without any (base64) encoding.
		ServiceAccount string
		Network        string
		Subnetwork     string
	}
	Kubevirt struct {
		KKPDatacenter string
		// Kubeconfig is the plaintext kubeconfig without any (base64) encoding.
		Kubeconfig string
	}
	Alibaba struct {
		KKPDatacenter   string
		AccessKeyID     string
		AccessKeySecret string
	}
	Nutanix struct {
		KKPDatacenter string
		Username      string
		Password      string
		CSIUsername   string
		CSIPassword   string
		CSIEndpoint   string
		CSIPort       int32
		ProxyURL      string
		ClusterName   string
		ProjectName   string
		SubnetName    string
	}
	VMwareCloudDirector struct {
		KKPDatacenter string
		Username      string
		Password      string
		Organization  string
		VDC           string
		OVDCNetwork   string
	}
}

func (*Secrets) AddFlags

func (s *Secrets) AddFlags()

func (*Secrets) ParseFlags

func (s *Secrets) ParseFlags() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL