provisioner

package
v0.0.0-...-1aaef2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 24 Imported by: 0

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
  1. Get target cluster client and reconcile primary cluster id in configmap
  2. Get deployment instance deployed in master cluster
  3. Register SF CRDs in target cluster (Must be done before registering watches)
  4. Add watches on resources in target sfcluster
  5. Namespace creation in target cluster
  6. SFCluster deploy in target cluster
  7. Kubeconfig secret in target cluster
  8. Create clusterrolebinding in target cluster
  9. Image pull secrets in target cluster
  10. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL