Documentation ¶
Index ¶
- type ClusterReconciler
- type ClusterReconcilerLegacy
- type Factory
- func (f *Factory) Build(ctx context.Context) (*Reconcilers, error)
- func (f *Factory) WithClusterReconciler(capiProviders []clusterctlv1.Provider) *Factory
- func (f *Factory) WithProviderClusterReconcilerRegistry(capiProviders []clusterctlv1.Provider) *Factory
- func (f *Factory) WithSnowMachineConfigReconciler() *Factory
- func (f *Factory) WithVSphereDatacenterReconciler() *Factory
- type Manager
- type ProviderClusterReconcilerRegistry
- type Reconcilers
- type SnowMachineConfigReconciler
- type VSphereDatacenterReconciler
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterReconciler ¶
type ClusterReconciler struct {
// contains filtered or unexported fields
}
ClusterReconciler reconciles a Cluster object
func NewClusterReconciler ¶
func NewClusterReconciler(client client.Client, log logr.Logger, registry ProviderClusterReconcilerRegistry) *ClusterReconciler
func (*ClusterReconciler) Reconcile ¶
func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
+kubebuilder:rbac:groups=anywhere.eks.amazonaws.com,resources=clusters;snowmachineconfigs;vspheredatacenterconfigs;vspheremachineconfigs;dockerdatacenterconfigs;bundles;awsiamconfigs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=anywhere.eks.amazonaws.com,resources=oidcconfigs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=anywhere.eks.amazonaws.com,resources=clusters/status;snowmachineconfigs/status;vspheredatacenterconfigs/status;vspheremachineconfigs/status;dockerdatacenterconfigs/status;bundles/status;awsiamconfigs/status,verbs=;get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=anywhere.eks.amazonaws.com,resources=clusters/finalizers;snowmachineconfigs/finalizers;vspheredatacenterconfigs/finalizers;vspheremachineconfigs/finalizers;dockerdatacenterconfigs/finalizers;bundles/finalizers;awsiamconfigs/finalizers,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=*,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=apps,resources=daemonsets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=test,resources=test,verbs=get;list;watch;create;update;patch;delete;kill +kubebuilder:rbac:groups=distro.eks.amazonaws.com,resources=releases,verbs=get;list;watch +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=awssnowclusters;awssnowmachinetemplates,verbs=get;list;watch;create;update;patch;delete
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterReconcilerLegacy ¶
type ClusterReconcilerLegacy struct { client.Client Log logr.Logger Scheme *runtime.Scheme // contains filtered or unexported fields }
ClusterReconcilerLegacy reconciles a Cluster object
func (*ClusterReconcilerLegacy) Reconcile ¶
func (r *ClusterReconcilerLegacy) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*ClusterReconcilerLegacy) SetupWithManager ¶
func (r *ClusterReconcilerLegacy) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func (*Factory) WithClusterReconciler ¶
func (f *Factory) WithClusterReconciler(capiProviders []clusterctlv1.Provider) *Factory
func (*Factory) WithProviderClusterReconcilerRegistry ¶
func (f *Factory) WithProviderClusterReconcilerRegistry(capiProviders []clusterctlv1.Provider) *Factory
func (*Factory) WithSnowMachineConfigReconciler ¶
func (*Factory) WithVSphereDatacenterReconciler ¶
type ProviderClusterReconcilerRegistry ¶
type ProviderClusterReconcilerRegistry interface {
Get(datacenterKind string) clusters.ProviderClusterReconciler
}
type Reconcilers ¶
type Reconcilers struct { ClusterReconciler *ClusterReconciler VSphereDatacenterReconciler *VSphereDatacenterReconciler SnowMachineConfigReconciler *SnowMachineConfigReconciler }
type SnowMachineConfigReconciler ¶
type SnowMachineConfigReconciler struct {
// contains filtered or unexported fields
}
SnowMachineConfigReconciler reconciles a SnowMachineConfig object
func (*SnowMachineConfigReconciler) Reconcile ¶
func (r *SnowMachineConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
TODO: add here kubebuilder permissions as needed
func (*SnowMachineConfigReconciler) SetupWithManager ¶
func (r *SnowMachineConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VSphereDatacenterReconciler ¶
type VSphereDatacenterReconciler struct {
// contains filtered or unexported fields
}
VSphereDatacenterReconciler reconciles a VSphereDatacenterConfig object
func (*VSphereDatacenterReconciler) Reconcile ¶
func (r *VSphereDatacenterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
TODO: add here kubebuilder permissions as neeeded
func (*VSphereDatacenterReconciler) SetupWithManager ¶
func (r *VSphereDatacenterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type Validator ¶
type Validator interface { ValidateEC2SshKeyNameExists(ctx context.Context, m *anywherev1.SnowMachineConfig) error ValidateEC2ImageExistsOnDevice(ctx context.Context, m *anywherev1.SnowMachineConfig) error }