shared

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorsToCauses

func ErrorsToCauses(errs field.ErrorList) []metav1.StatusCause

ErrorsToCauses converts error list into array of status cause

Types

type EthereumAddress added in v0.2.0

type EthereumAddress string

EthereumAddress is ethereum address +kubebuilder:validation:Pattern="^0[xX][0-9a-fA-F]{40}$"

type ExtraArgs added in v0.3.0

type ExtraArgs map[string]string

ExtraArgs is extra arguments to add to the cli if kv is true, arguments will bey key=val format

func (ExtraArgs) Encode added in v0.3.0

func (extra ExtraArgs) Encode(kv bool) (args []string)

type Resources

type Resources struct {
	// CPU is cpu cores the node requires
	// +kubebuilder:validation:Pattern="^[1-9][0-9]*m?$"
	CPU string `json:"cpu,omitempty"`
	// CPULimit is cpu cores the node is limited to
	// +kubebuilder:validation:Pattern="^[1-9][0-9]*m?$"
	CPULimit string `json:"cpuLimit,omitempty"`
	// Memory is memmory requirements
	// +kubebuilder:validation:Pattern="^[1-9][0-9]*[KMGTPE]i$"
	Memory string `json:"memory,omitempty"`
	// MemoryLimit is cpu cores the node is limited to
	// +kubebuilder:validation:Pattern="^[1-9][0-9]*[KMGTPE]i$"
	MemoryLimit string `json:"memoryLimit,omitempty"`
	// Storage is disk space storage requirements
	// +kubebuilder:validation:Pattern="^[1-9][0-9]*[KMGTPE]i$"
	Storage string `json:"storage,omitempty"`
	// StorageClass is the volume storage class
	StorageClass *string `json:"storageClass,omitempty"`
}

Resources is node compute and storage resources +k8s:deepcopy-gen=true

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Resources) ValidateCreate

func (r *Resources) ValidateCreate() (errors field.ErrorList)

ValidateCreate validates resources during creation

func (*Resources) ValidateUpdate

func (r *Resources) ValidateUpdate(oldResources *Resources) (errors field.ErrorList)

ValidateUpdate validates resources during update

type VerbosityLevel

type VerbosityLevel string

VerbosityLevel is logging verbosity levels

const (
	// NoLogs outputs no logs
	NoLogs VerbosityLevel = "off"
	// FatalLogs outputs only fatal logs
	FatalLogs VerbosityLevel = "fatal"
	// ErrorLogs outputs only error logs
	ErrorLogs VerbosityLevel = "error"
	// WarnLogs outputs only warning logs
	WarnLogs VerbosityLevel = "warn"
	// InfoLogs outputs only informational logs
	InfoLogs VerbosityLevel = "info"
	// DebugLogs outputs only debugging logs
	DebugLogs VerbosityLevel = "debug"
	// TraceLogs outputs only tracing logs
	TraceLogs VerbosityLevel = "trace"
	// AllLogs outputs only all logs
	AllLogs VerbosityLevel = "all"
	// NoticeLogs outputs only notice logs
	NoticeLogs VerbosityLevel = "notice"
	// CriticalLogs outputs only critical logs
	CriticalLogs VerbosityLevel = "crit"
	// PanicLogs outputs only panic logs
	PanicLogs VerbosityLevel = "panic"
	// NoneLogs outputs no logs
	NoneLogs VerbosityLevel = "none"
)

Jump to

Keyboard shortcuts

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