appdeployment

package
v1.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, args oamctrl.Args) error

Setup adds a controller that reconciles AppDeployment.

Types

type Reconciler

type Reconciler struct {
	Client client.Client

	Scheme *runtime.Scheme

	PackageDiscover *packages.PackageDiscover
	// contains filtered or unexported fields
}

Reconciler reconciles an AppDeployment object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res reconcile.Result, retErr error)

Reconcile is the main logic of appDeployment controller

func (*Reconciler) SetupWithManager

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

SetupWithManager setup the controller with manager

type WorkloadRenderer

type WorkloadRenderer interface {
	Render(ctx context.Context, ac *oamcorealpha.ApplicationConfiguration, comps []*oamcorealpha.Component) ([]*workload, error)
}

WorkloadRenderer renders Workloads which are k8s resources to apply

func NewWorkloadRenderer

func NewWorkloadRenderer(cli client.Client) WorkloadRenderer

NewWorkloadRenderer is the main entry to create WorkloadRenderer implementation.

Jump to

Keyboard shortcuts

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