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 (
	KindStatefulSet = "StatefulSet"
	KindDeployment  = "Deployment"
)
View Source
const (
	KindService = "Service"
)
View Source
const LabelKey = "serviceexpose.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 ServiceExposeReconciler

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

ServiceExposeReconciler reconciles a ServiceExpose object

func (*ServiceExposeReconciler) Reconcile

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

func (*ServiceExposeReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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