controllers

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// LabelAppName for discovery.
	LabelAppName = "dioscuri.amazee.io/service-name"
	// LabelAppType for discovery.
	LabelAppType = "dioscuri.amazee.io/type"
	// LabelAppManaged for discovery.
	LabelAppManaged = "dioscuri.amazee.io/managed-by"
)

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString check if a slice contains a string

func HostMigrationContainsStatus added in v0.1.6

func HostMigrationContainsStatus(slice []dioscuriv1.HostMigrationConditions, s dioscuriv1.HostMigrationConditions) bool

HostMigrationContainsStatus check if conditions contains a condition

func IgnoreNotFound

func IgnoreNotFound(err error) error

IgnoreNotFound will ignore not found errors

func IngressContainsStatus added in v0.1.6

IngressContainsStatus check if conditions contains a condition

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString remove string from a sliced

func RouteContainsStatus added in v0.1.6

RouteContainsStatus check if conditions contains a condition

Types

type HostMigrationReconciler added in v0.1.6

type HostMigrationReconciler struct {
	client.Client
	Log       logr.Logger
	Scheme    *runtime.Scheme
	Labels    map[string]string
	Openshift bool
}

HostMigrationReconciler reconciles a HostMigration object

func (*HostMigrationReconciler) KubernetesHandler added in v0.1.6

func (r *HostMigrationReconciler) KubernetesHandler(ctx context.Context, opLog logr.Logger, dioscuri dioscuriv1.HostMigration) (ctrl.Result, error)

KubernetesHandler handles doing ingress migrations in a kubernetes cluster

func (*HostMigrationReconciler) OpenshiftHandler added in v0.1.6

func (r *HostMigrationReconciler) OpenshiftHandler(ctx context.Context, opLog logr.Logger, dioscuri dioscuriv1.HostMigration) (ctrl.Result, error)

OpenshiftHandler handles doing route migrations in an openshift cluster

func (*HostMigrationReconciler) Reconcile added in v0.1.6

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

Reconcile is the actual reconcilation process

func (*HostMigrationReconciler) SetupWithManager added in v0.1.6

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

SetupWithManager setups the controller with a manager

type IngressMigrateReconciler added in v0.1.6

type IngressMigrateReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Labels map[string]string
}

IngressMigrateReconciler reconciles a Migrate object

func (*IngressMigrateReconciler) Reconcile added in v0.1.6

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

Reconcile is the actual reconcilation process

func (*IngressMigrateReconciler) SetupWithManager added in v0.1.6

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

SetupWithManager setups the controller with a manager

type IngressPredicates added in v0.1.6

type IngressPredicates struct {
	predicate.Funcs
}

IngressPredicates .

func (IngressPredicates) Create added in v0.1.6

Create .

func (IngressPredicates) Delete added in v0.1.6

Delete .

func (IngressPredicates) Generic added in v0.1.6

Generic .

func (IngressPredicates) Update added in v0.1.6

Update .

type MigratedIngress added in v0.1.6

type MigratedIngress struct {
	NewIngress          *networkv1beta1.Ingress
	OldIngressNamespace string
}

MigratedIngress .

type MigratedRoutes added in v0.1.3

type MigratedRoutes struct {
	NewRoute          *routev1.Route
	OldRouteNamespace string
}

MigratedRoutes .

type RouteMigrateReconciler

type RouteMigrateReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Labels map[string]string
}

RouteMigrateReconciler reconciles a RouteMigrate object

func (*RouteMigrateReconciler) Reconcile

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

Reconcile is the actual reconcilation process

func (*RouteMigrateReconciler) SetupWithManager

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

SetupWithManager setups the controller with a manager

type RoutePredicates added in v0.1.6

type RoutePredicates struct {
	predicate.Funcs
}

RoutePredicates .

func (RoutePredicates) Create added in v0.1.6

Create .

func (RoutePredicates) Delete added in v0.1.6

Delete .

func (RoutePredicates) Generic added in v0.1.6

Generic .

func (RoutePredicates) Update added in v0.1.6

Update .

Jump to

Keyboard shortcuts

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