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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Resources) ValidateCreate ¶
ValidateCreate validates resources during creation
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" )
Click to show internal directories.
Click to hide internal directories.