Documentation ¶
Overview ¶
Package controllers implements kubemark provider controllers.
Index ¶
Constants ¶
View Source
const ( // DefaultCPUResource is the default cpu capacity when none is specified (k8s 1.22+). DefaultCPUResource = "1" // DefaultMemResource is the default memory capacity when none is specified (k8s 1.22+). DefaultMemResource = "4G" )
View Source
const (
// MachineControllerName defines the user-agent name used when creating rest clients.
MachineControllerName = "kubemarkmachine-controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubemarkCluster ¶
type KubemarkCluster interface {
GenerateKubemarkClusterClient(kubemarkClusterSecretRef *corev1.ObjectReference, ownerNamespace string, context gocontext.Context) (client.Client, string, error)
}
KubemarkCluster defines a cluster hosting kubemark pods.
func NewKubemarkCluster ¶
func NewKubemarkCluster(client client.Client) KubemarkCluster
NewKubemarkCluster creates new KubemarkCluster instance.
type KubemarkMachineReconciler ¶
type KubemarkMachineReconciler struct { client.Client KubemarkCluster KubemarkCluster Scheme *runtime.Scheme KubemarkImage string // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
KubemarkMachineReconciler reconciles a KubemarkMachine objects.
func (*KubemarkMachineReconciler) SetupWithManager ¶
func (r *KubemarkMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
type KubemarkMachineTemplateReconciler ¶
type KubemarkMachineTemplateReconciler struct { client.Client Scheme *runtime.Scheme // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
KubemarkMachineTemplateReconciler reconciles a KubemarkMachineTemplate objects.
func (*KubemarkMachineTemplateReconciler) SetupWithManager ¶
func (r *KubemarkMachineTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
Click to show internal directories.
Click to hide internal directories.