controllers

package
v0.0.0-...-2bd7b86 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

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

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

func ServiceInjector

func ServiceInjector(ctx context.Context, trait oam.Trait, objs []oam.Object) ([]oam.Object, error)

ServiceInjector adds a Service object for the workload the trait is pointing to

Types

type ServiceTraitReconciler

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

ServiceTraitReconciler reconciles a ServiceTrait object

func (*ServiceTraitReconciler) Reconcile

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

func (*ServiceTraitReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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