Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReconcileProvisioner ¶
type ReconcileProvisioner struct { client.Client Log logr.Logger // contains filtered or unexported fields }
ReconcileProvisioner reconciles a SFCluster object
func (*ReconcileProvisioner) Reconcile ¶
func (r *ReconcileProvisioner) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reads the SFCluster object and makes changes based on the state read and what is actual state of components deployed in the sister cluster
Functions of this method
- Get target cluster client and reconcile primary cluster id in configmap
- Get deployment instance deployed in master cluster
- Register SF CRDs in target cluster (Must be done before registering watches)
- Add watches on resources in target sfcluster
- Namespace creation in target cluster
- SFCluster deploy in target cluster
- Kubeconfig secret in target cluster
- Create clusterrolebinding in target cluster
- Image pull secrets in target cluster
- Deploy provisioner in target cluster (for provisioner on master, primary cluster id should be injected in provisioner env)
func (*ReconcileProvisioner) SetupWithManager ¶
func (r *ReconcileProvisioner) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the MCD Provisioner with manager and setups the watches.
Click to show internal directories.
Click to hide internal directories.