controllers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentReconciler

type EnvironmentReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder

	// LabelSet are the labels that resources must have to be handled by this reconciler.
	// Resources created this resconciler also have these labels.
	// An empty set matches all resources.
	LabelSet labels.Set

	// Cloud provides generic cloud access functions.
	Cloud cloud.Cloud

	// Sources fetches tf or yaml source code.
	Sources *source.Sources

	// Planner decides on the next step to execute based on Environment.
	Planner *plan.Planner

	// Environ are the environment variables presented to the steps.
	Environ map[string]string
	// contains filtered or unexported fields
}

EnvironmentReconciler reconciles a Environment object.

func (*EnvironmentReconciler) Reconcile

func (r *EnvironmentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile takes an Environment custom resource and attempts to converge the target environment to the desired state. The status of the k8s resource is updated to match the observed state of the Envirnoment.

func (*EnvironmentReconciler) SetupWithManager

func (r *EnvironmentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager initializes the receiver and adds it to mgr.

Jump to

Keyboard shortcuts

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