Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultRetry = wait.Backoff{ Steps: 5, Duration: 5 * time.Second, Factor: 1.0, Jitter: 0.1, }
Functions ¶
This section is empty.
Types ¶
type BundleDeploymentReconciler ¶
type BundleDeploymentReconciler struct { client.Client Scheme *runtime.Scheme // LocalClient is the client for the cluster the agent is running on. LocalClient client.Client Deployer *deployer.Deployer Monitor *monitor.Monitor DriftDetect *driftdetect.DriftDetect Cleanup *cleanup.Cleanup DefaultNamespace string // AgentInfo is the labelSuffix used by the helm deployer AgentScope string }
BundleDeploymentReconciler reconciles a BundleDeployment object, by deploying the bundle as a helm release.
func (*BundleDeploymentReconciler) Reconcile ¶
func (r *BundleDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. The Reconcile function compares the state specified by the BundleDeployment object against the actual cluster state, and then performs 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.15.0/pkg/reconcile
func (*BundleDeploymentReconciler) SetupWithManager ¶
func (r *BundleDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.