multus

package
v1.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultValidationNamespace = "rook-ceph"

	// 1 mon, 3 osds, 1 mgr, 1 mds, 1 nfs, 1 rgw, 1 rbdmirror, 1 cephfsmirror,
	// (1 csi provisioner, 1 csi plugin) x3 for rbd, cephfs, and nfs CSI drivers
	DefaultValidationDaemonsPerNode = 16

	DefaultValidationNginxImage = "nginxinc/nginx-unprivileged:stable-alpine"

	DefaultValidationResourceTimeout = 3 * time.Minute
)
View Source
var (
	//go:embed config.yaml
	ConfigYaml string
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	Warningf(format string, args ...interface{})
}

Logger defines the log types that this library will use for outputting status information to the user. Because this library may be called interactively by a user or programmatically by another application, we allow the calling application to make a very simple Logger type that will be compatible with this library.

type SimpleStderrLogger

type SimpleStderrLogger struct{}

func (*SimpleStderrLogger) Debugf

func (*SimpleStderrLogger) Debugf(format string, args ...interface{})

func (*SimpleStderrLogger) Infof

func (*SimpleStderrLogger) Infof(format string, args ...interface{})

func (*SimpleStderrLogger) Warningf

func (*SimpleStderrLogger) Warningf(format string, args ...interface{})

type ValidationTest

type ValidationTest struct {
	Clientset kubernetes.Interface

	// The Logger will be used to render ongoing status by this library.
	Logger Logger

	ValidationTestConfig
}

A Multus ValidationTest runs a number of Multus-connected pods to validate that a Kubernetes environment is suitable for Rook to run Ceph in.

func (*ValidationTest) CleanUp

CleanUp cleans up Multus validation test resources. It returns a suggestion for manual action if clean up was unsuccessful.

func (*ValidationTest) Run

Run the Multus validation test.

type ValidationTestConfig added in v1.11.9

type ValidationTestConfig struct {
	Namespace       string        `yaml:"namespace"`
	PublicNetwork   string        `yaml:"publicNetwork"`
	ClusterNetwork  string        `yaml:"clusterNetwork"`
	DaemonsPerNode  int           `yaml:"daemonsPerNode"`
	ResourceTimeout time.Duration `yaml:"resourceTimeout"`
	NginxImage      string        `yaml:"nginxImage"`
}

ValidationTestConfig is a configuration for a Multus validation test. To prevent documentation for this struct from getting out of date, see the output of ValidationTestConfig.ToYAML() for usage text for each field.

func NewDefaultValidationTestConfig added in v1.11.9

func NewDefaultValidationTestConfig() *ValidationTestConfig

NewDefaultValidationTestConfig returns a new ValidationTestConfig with default values.

func ValidationTestConfigFromYAML added in v1.11.9

func ValidationTestConfigFromYAML(y string) (*ValidationTestConfig, error)

ValidationTestConfigFromYAML loads a YAML-formatted string into a new ValidationTestConfig.

func (*ValidationTestConfig) String added in v1.11.9

func (c *ValidationTestConfig) String() string

String implements the Stringer interface

func (*ValidationTestConfig) ToYAML added in v1.11.9

func (c *ValidationTestConfig) ToYAML() (string, error)

ToYAML converts the validation test config into a YAML representation with user-readable comments describing how to use the various parameters.

func (*ValidationTestConfig) Validate added in v1.11.9

func (c *ValidationTestConfig) Validate() error

Validate reports any validation test configuration problems as errors.

type ValidationTestResults

type ValidationTestResults struct {
	// contains filtered or unexported fields
}

ValidationTestResults contains results from a validation test.

func (*ValidationTestResults) SuggestedDebuggingReport

func (vtr *ValidationTestResults) SuggestedDebuggingReport() string

Jump to

Keyboard shortcuts

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