controllers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 17 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

	// Selector much match the value of resource label to be handled this instance.
	// An empty Selector matches all resources.
	Selector string

	// 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