Documentation
¶
Index ¶
- Constants
- func SyncBrokerInfo(c client.Client, reader client.Reader) (*broker.BrokerInfo, error)
- type KnitnetReconciler
- func (r *KnitnetReconciler) AllocateAndUpdateGlobalCIDRConfigMap(c client.Client, reader client.Reader, instance *operatorv1alpha1.Knitnet, ...) error
- func (r *KnitnetReconciler) DeploySubmerinerBroker(instance *operatorv1alpha1.Knitnet) error
- func (r *KnitnetReconciler) GetNetworkDetails() (*network.ClusterNetwork, error)
- func (r *KnitnetReconciler) HandleNodeLabels() error
- func (r *KnitnetReconciler) JoinSubmarinerCluster(instance *operatorv1alpha1.Knitnet) error
- func (r *KnitnetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err error)
- func (r *KnitnetReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
View Source
const ( BrokerAction = "broker" JoinAction = "join" AllAction = "all" )
Variables ¶
This section is empty.
Functions ¶
func SyncBrokerInfo ¶
Types ¶
type KnitnetReconciler ¶
KnitnetReconciler reconciles a Knitnet object
func (*KnitnetReconciler) AllocateAndUpdateGlobalCIDRConfigMap ¶
func (*KnitnetReconciler) DeploySubmerinerBroker ¶
func (r *KnitnetReconciler) DeploySubmerinerBroker(instance *operatorv1alpha1.Knitnet) error
func (*KnitnetReconciler) GetNetworkDetails ¶
func (r *KnitnetReconciler) GetNetworkDetails() (*network.ClusterNetwork, error)
func (*KnitnetReconciler) HandleNodeLabels ¶
func (r *KnitnetReconciler) HandleNodeLabels() error
func (*KnitnetReconciler) JoinSubmarinerCluster ¶
func (r *KnitnetReconciler) JoinSubmarinerCluster(instance *operatorv1alpha1.Knitnet) error
func (*KnitnetReconciler) Reconcile ¶
func (r *KnitnetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err 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. TODO(user): Modify the Reconcile function to compare the state specified by the Knitnet object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*KnitnetReconciler) SetupWithManager ¶
func (r *KnitnetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.