routes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverPortsLabel added in v0.0.8

func DiscoverPortsLabel(ctx context.Context, workload *unstructured.Unstructured, r client.Reader, dm discoverymapper.DiscoveryMapper, childResources []*unstructured.Unstructured) ([]intstr.IntOrString, map[string]string, error)

Assume the workload or it's childResource will always having spec.template as PodTemplate if discoverable

func FillRouteTraitWithService added in v0.0.8

func FillRouteTraitWithService(service *corev1.Service, routeTrait *v1alpha1.Route)

func MatchService added in v0.0.8

func MatchService(targetPort intstr.IntOrString, rule v1alpha1.Rule) bool

MatchService try check if the service matches the rules

func NeedDiscovery added in v0.0.8

func NeedDiscovery(routeTrait *v1alpha1.Route) bool

func Setup

func Setup(mgr ctrl.Manager) error

Setup adds a controller that reconciles MetricsTrait.

Types

type Reconciler

type Reconciler struct {
	client.Client

	Log logr.Logger

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a Route object

func (*Reconciler) Reconcile

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

+kubebuilder:rbac:groups=standard.oam.dev,resources=routes,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=standard.oam.dev,resources=routes/status,verbs=get;update;patch

func (*Reconciler) SetupWithManager

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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