controllers

package
v0.0.0-...-e66274b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LabelKey        = "ingresstrait.oam.crossplane.io"
	KindStatefulSet = "StatefulSet"
	KindDeployment  = "Deployment"
)
View Source
const (
	KindIngress = "Ingress"
	KindService = "Service"
)

Variables

This section is empty.

Functions

func DetermineWorkloadType

func DetermineWorkloadType(ctx context.Context, log logr.Logger, r client.Reader,
	workload *unstructured.Unstructured) ([]*unstructured.Unstructured, error)

Determine whether the workload is K8S native resources or oam WorkloadDefinition

Types

type IngressTraitReconciler

type IngressTraitReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

IngressTraitReconciler reconciles a IngressTrait object

func (*IngressTraitReconciler) IngressInjector

IngressInjector adds a Ingress object for the resources observed in a workload translation.

func (*IngressTraitReconciler) Reconcile

func (r *IngressTraitReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*IngressTraitReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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