conformance

package module
v0.0.0-...-6d46272 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Overview

Package conformance a simple pi Pod with Job. Replace https://github.com/aws/aws-k8s-tester/tree/v1.5.9/eks/conformance.

Index

Constants

View Source
const (
	DefaultMinimumNodes                    int = 1
	DefaultSonobuoyRunTimeout                  = 5 * time.Hour
	DefaultSonobuoyDeleteTimeout               = 5 * time.Minute
	DefaultSonobuoyRunMode                     = "certified-conformance"
	DefaultSonobuoyRunKubeConformanceImage     = "k8s.gcr.io/conformance:v1.21.0"
)

Variables

This section is empty.

Functions

func DefaultSonobuoyDownloadURL

func DefaultSonobuoyDownloadURL() string

func DefaultSonobuoyPath

func DefaultSonobuoyPath() string

func Env

func Env() string

func New

func New(cfg *Config) k8s_tester.Tester

Types

type Config

type Config struct {
	Enable bool `json:"enable"`
	Prompt bool `json:"-"`

	Stopc     chan struct{} `json:"-"`
	Logger    *zap.Logger   `json:"-"`
	LogWriter io.Writer     `json:"-"`
	Client    client.Client `json:"-"`

	// MinimumNodes is the minimum number of Kubernetes nodes required for installing this addon.
	MinimumNodes int `json:"minimum_nodes"`
	// Namespace to create test resources.
	Namespace string `json:"namespace"`

	// SonobuoyPath is the path to download the "sonobuoy".
	SonobuoyPath string `json:"sonobuoy_path"`
	// SonobuoyDownloadURL is the download URL to download "sonobuoy" binary from.
	// ref. https://github.com/vmware-tanzu/sonobuoy/releases
	SonobuoyDownloadURL string `json:"sonobuoy_download_url"`

	SonobuoyRunTimeout          time.Duration `json:"sonobuoy_run_timeout"`
	SonobuoyRunTimeoutString    string        `json:"sonobuoy_run_timeout_string" read-only:"true"`
	SonobuoyDeleteTimeout       time.Duration `json:"sonobuoy_delete_timeout"`
	SonobuoyDeleteTimeoutString string        `json:"sonobuoy_delete_timeout_string" read-only:"true"`

	// SonobuoyRunMode is the "mode" flag value for "sonobuoy run" command.
	// Valid modes are 'non-disruptive-conformance', 'quick', 'certified-conformance'.
	// The default is 'certified-conformance'.
	// ref. https://github.com/vmware-tanzu/sonobuoy
	SonobuoyRunMode                 string `json:"sonobuoy_run_mode"`
	SonobuoyRunE2EFocus             string `json:"sonobuoy_run_e2e_focus"`
	SonobuoyRunE2ESkip              string `json:"sonobuoy_run_e2e_skip"`
	SonobuoyRunKubeConformanceImage string `json:"sonobuoy_run_kube_conformance_image"`
	// SonobuoyRunE2ERepoConfig File path to e2e registry config.
	// ref. https://sonobuoy.io/docs/master/airgap/
	SonobuoyRunE2ERepoConfig string `json:"sonobuoy_run_e2e_repo_config"`
	// SonobuoyRunImage is the sonobuoy run image override for the sonobuoy worker.
	SonobuoyRunImage string `json:"sonobuoy_run_image"`
	// SonobuoyRunSystemdLogsImage is the image for systemd-logs plugin image.
	SonobuoyRunSystemdLogsImage string `json:"sonobuoy_run_systemd_logs_image"`

	// SonobuoyResultsTarGzPath is the sonobuoy results tar.gz file path after downloaded from the sonobuoy Pod.
	SonobuoyResultsTarGzPath string `json:"sonobuoy_results_tar_gz_path"`
	// SonobuoyResultsE2ELogPath is the sonobuoy results log file path after downloaded from the sonobuoy Pod.
	SonobuoyResultsE2ELogPath string `json:"sonobuoy_results_e2e_log_path"`
	// SonobuoyResultsJunitXMLPath is the sonobuoy results junit XML file path after downloaded from the sonobuoy Pod.
	SonobuoyResultsJunitXMLPath string `json:"sonobuoy_results_junit_xml_path"`
	// SonobuoyResultsOutputDir is the sonobuoy results output path after untar.
	SonobuoyResultsOutputDir string `json:"sonobuoy_results_output_dir"`
}

Config defines parameters for Kubernetes conformance tests. ref. https://github.com/cncf/k8s-conformance/blob/master/instructions.md ref. https://github.com/vmware-tanzu/sonobuoy

func NewDefault

func NewDefault() *Config

func (*Config) ValidateAndSetDefaults

func (cfg *Config) ValidateAndSetDefaults() error

Directories

Path Synopsis
cmd
k8s-tester-conformance
k8s-tester-conformance installs Kubernetes conformance tester.
k8s-tester-conformance installs Kubernetes conformance tester.

Jump to

Keyboard shortcuts

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