Documentation
¶
Index ¶
- Constants
- Variables
- func AddModules(key string, m ...*Module)
- func ReconcileCluster(ctx *ModuleContext) (ctrl.Result, error)
- type ClusterPluginModule
- type ClusterPluginReconciler
- type ClusterReconciler
- type InitConfig
- type Module
- func (m *Module) Default(c *v1.Cluster)
- func (m *Module) Delete(ctx *ModuleContext) error
- func (m *Module) Ready(ctx *ModuleContext) bool
- func (m *Module) Reconcile(ctx *ModuleContext) error
- func (m *Module) ValidateCreate(c *v1.Cluster) field.ErrorList
- func (m *Module) ValidateUpdate(now *v1.Cluster, old *v1.Cluster) field.ErrorList
- type ModuleContext
- type MultiClusterPluginReconciler
- type Object
- type PluginModuleContext
Constants ¶
View Source
const ClusterPluginFinalizerName = "finalizer.clusterplugin.kok.tanx"
View Source
const FinalizerName = "finalizer.cluster.kok.tanx"
View Source
const MountPath = "/etc/cluster/"
Variables ¶
View Source
var VersionsModules = make(map[string][]*Module)
Functions ¶
func AddModules ¶
func ReconcileCluster ¶
func ReconcileCluster(ctx *ModuleContext) (ctrl.Result, error)
Types ¶
type ClusterPluginModule ¶
type ClusterPluginModule struct { Name string // contains filtered or unexported fields }
type ClusterPluginReconciler ¶
type ClusterPluginReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder }
ClusterPluginReconciler reconciles a ClusterPlugin object
func (*ClusterPluginReconciler) SetupWithManager ¶
func (r *ClusterPluginReconciler) SetupWithManager(mgr ctrl.Manager) error
type ClusterReconciler ¶
type ClusterReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder }
ClusterReconciler reconciles a Cluster object
func (*ClusterReconciler) Reconcile ¶
+kubebuilder:rbac:groups=cluster.kok.tanx,resources=clusters,verbs=get;list;watch;create;update;patch;Del +kubebuilder:rbac:groups=cluster.kok.tanx,resources=clusters/status,verbs=get;update;patch +kubebuilder:rbac:groups=cluster.kok.tanx,resources=clusters/events,verbs=get;list;watch;create;update;patch
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
type InitConfig ¶
type Module ¶
type Module struct { Name string Sub []*Module Order int GetObj func() Object Render func(c *v1.Cluster) Object SetStatus func(c *v1.Cluster, target, now Object) (bool, Object) Del func(ctx context.Context, c *v1.Cluster, client client.Client) error Next func(c *v1.Cluster) bool SetDefault func(c *v1.Cluster) ValidateCreateModule func(c *v1.Cluster) field.ErrorList ValidateUpdateModule func(now *v1.Cluster, old *v1.Cluster) field.ErrorList }
func (*Module) Delete ¶
func (m *Module) Delete(ctx *ModuleContext) error
func (*Module) Ready ¶
func (m *Module) Ready(ctx *ModuleContext) bool
func (*Module) Reconcile ¶
func (m *Module) Reconcile(ctx *ModuleContext) error
type ModuleContext ¶
func NewModuleContext ¶
func NewModuleContext(context context.Context, c *v1.Cluster, logger logr.Logger, r *ClusterReconciler) *ModuleContext
type MultiClusterPluginReconciler ¶
type MultiClusterPluginReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder }
MultiClusterPluginReconciler reconciles a MultiClusterPlugin object
func (*MultiClusterPluginReconciler) SetupWithManager ¶
func (r *MultiClusterPluginReconciler) SetupWithManager(mgr ctrl.Manager) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.