config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultDriverName defines the name that is used in Kubernetes and the CSI
	// system for the canonical, official name of this plugin.
	DefaultDriverName string = "storage.csi.upcloud.com"
	// DefaultAddress is the default address that the csi plugin will serve its
	// http handler on.
	DefaultHealtServerAddress string = "tcp://127.0.0.1:13071"
	// DefaultPluginServerAddress is the default endpoint that the csi plugin will serve its
	// GRPC handlers on.
	DefaultPluginServerAddress string = "unix:///var/lib/kubelet/plugins/" + DefaultDriverName + "/csi.sock"

	// MaxVolumesPerNode is maxium volume count that one node can handle.
	MaxVolumesPerNode int = 14

	DriverModeMonolith   string = "monolith"
	DriverModeNode       string = "node"
	DriverModeController string = "controller"
	DefaultDriverMode    string = DriverModeMonolith
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NodeHost        string
	Zone            string
	Username        string
	Password        string
	DriverName      string
	PrintVersion    bool
	Mode            string
	LogLevel        string
	Labels          []string
	FilesystemTypes []string

	PluginServerAddress string
	HealtServerAddress  string

	Filesystem filesystem.Filesystem
}

func Parse

func Parse(osArgs []string) (Config, error)

Jump to

Keyboard shortcuts

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