Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the metallb v1beta1 API group +kubebuilder:object:generate=true +groupName=metallb.io
Index ¶
- Variables
- type Config
- type FRRK8SConfig
- type MetalLB
- func (m *MetalLB) BGPBackend() params.BGPType
- func (in *MetalLB) DeepCopy() *MetalLB
- func (in *MetalLB) DeepCopyInto(out *MetalLB)
- func (in *MetalLB) DeepCopyObject() runtime.Object
- func (metallb *MetalLB) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (metallb *MetalLB) Validate() error
- func (metallb *MetalLB) ValidateCreate() (admission.Warnings, error)
- func (metallb *MetalLB) ValidateDelete() (admission.Warnings, error)
- func (metallb *MetalLB) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type MetalLBList
- type MetalLBLogLevel
- type MetalLBSpec
- type MetalLBStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "metallb.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.13.9
type Config struct {
// Define priority class name
// +optional
PriorityClassName string `json:"priorityClassName,omitempty"`
// Define container runtime configuration class
// +optional
RuntimeClassName string `json:"runtimeClassName,omitempty"`
// If specified, the pod's scheduling constraints
// +optional
Affinity *corev1.Affinity `json:"affinity,omitempty"`
// Annotations to be applied for MetalLB Operator
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
// Resource Requirements to be applied for containers which gets deployed
// via MetalLB Operator
// +optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
}
func (*Config) DeepCopy ¶ added in v0.13.9
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶ added in v0.13.9
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FRRK8SConfig ¶ added in v0.14.1
type FRRK8SConfig struct {
// A list of cidrs we want always to block for incoming routes
AlwaysBlock []string `json:"alwaysBlock,omitempty"`
}
func (*FRRK8SConfig) DeepCopy ¶ added in v0.14.1
func (in *FRRK8SConfig) DeepCopy() *FRRK8SConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FRRK8SConfig.
func (*FRRK8SConfig) DeepCopyInto ¶ added in v0.14.1
func (in *FRRK8SConfig) DeepCopyInto(out *FRRK8SConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalLB ¶
type MetalLB struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MetalLBSpec `json:"spec,omitempty"`
Status MetalLBStatus `json:"status,omitempty"`
}
MetalLB is the Schema for the metallbs API
func (*MetalLB) BGPBackend ¶ added in v0.14.1
func (*MetalLB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalLB.
func (*MetalLB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalLB) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MetalLB) SetupWebhookWithManager ¶ added in v0.13.9
func (*MetalLB) ValidateCreate ¶ added in v0.13.9
ValidateCreate implements webhook.Validator so a webhook will be registered for MetalLB.
func (*MetalLB) ValidateDelete ¶ added in v0.13.9
ValidateDelete implements webhook.Validator so a webhook will be registered for MetalLB.
type MetalLBList ¶
type MetalLBList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MetalLB `json:"items"`
}
MetalLBList contains a list of MetalLB
func (*MetalLBList) DeepCopy ¶
func (in *MetalLBList) DeepCopy() *MetalLBList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalLBList.
func (*MetalLBList) DeepCopyInto ¶
func (in *MetalLBList) DeepCopyInto(out *MetalLBList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalLBList) DeepCopyObject ¶
func (in *MetalLBList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetalLBLogLevel ¶ added in v0.12.0
type MetalLBLogLevel string
const ( LogLevelAll MetalLBLogLevel = "all" LogLevelDebug MetalLBLogLevel = "debug" LogLevelInfo MetalLBLogLevel = "info" LogLevelWarn MetalLBLogLevel = "warn" LogLevelError MetalLBLogLevel = "error" LogLevelNone MetalLBLogLevel = "none" )
These are valid logging level for MetalLB components.
type MetalLBSpec ¶
type MetalLBSpec struct {
// Foo is an example field of MetalLB. Edit MetalLB_types.go to remove/update
MetalLBImage string `json:"image,omitempty"`
// node selector applied to MetalLB speaker daemonset.
// +optional
SpeakerNodeSelector map[string]string `json:"nodeSelector,omitempty"`
// tolerations is a list of tolerations applied to MetalLB speaker
// daemonset.
// +optional
SpeakerTolerations []corev1.Toleration `json:"speakerTolerations,omitempty"`
// Define the verbosity of the controller and the speaker logging.
// Allowed values are: all, debug, info, warn, error, none. (default: info)
// +optional
// +kubebuilder:validation:Enum=all;debug;info;warn;error;none
LogLevel MetalLBLogLevel `json:"logLevel,omitempty"`
// The loadBalancerClass spec attribute that the MetalLB controller should
// be watching for. must be a label-style identifier, with an optional
// prefix such as "internal-vip" or "example.com/internal-vip". Unprefixed
// names are reserved for end-users.
// +optional
// +kubebuilder:validation:Pattern=`^([a-z0-9A-Z]([\w.\-]*[a-z0-9A-Z])?/)?[a-z0-9A-Z]([\w.\-]*[a-z0-9A-Z])?$`
LoadBalancerClass string `json:"loadBalancerClass,omitempty"`
// node selector applied to MetalLB controller deployment.
// +optional
ControllerNodeSelector map[string]string `json:"controllerNodeSelector,omitempty"`
// tolerations is a list of tolerations applied to MetalLB controller
// deployment.
// +optional
ControllerTolerations []corev1.Toleration `json:"controllerTolerations,omitempty"`
// additional configs to be applied on MetalLB Controller deployment.
// +optional
ControllerConfig *Config `json:"controllerConfig,omitempty"`
// additional configs to be applied on MetalLB Speaker daemonset.
// +optional
SpeakerConfig *Config `json:"speakerConfig,omitempty"`
// The type of BGP implementation deployed with MetalLB
// +optional
BGPBackend params.BGPType `json:"bgpBackend,omitempty"`
// The specific frr-k8s configuration
FRRK8SConfig *FRRK8SConfig `json:"frrk8sConfig,omitempty"`
}
MetalLBSpec defines the desired state of MetalLB
func (*MetalLBSpec) DeepCopy ¶
func (in *MetalLBSpec) DeepCopy() *MetalLBSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalLBSpec.
func (*MetalLBSpec) DeepCopyInto ¶
func (in *MetalLBSpec) DeepCopyInto(out *MetalLBSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalLBStatus ¶
type MetalLBStatus struct {
// Conditions show the current state of the MetalLB Operator
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
MetalLBStatus defines the observed state of MetalLB
func (*MetalLBStatus) DeepCopy ¶
func (in *MetalLBStatus) DeepCopy() *MetalLBStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalLBStatus.
func (*MetalLBStatus) DeepCopyInto ¶
func (in *MetalLBStatus) DeepCopyInto(out *MetalLBStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.