controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 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 RemoveString

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

RemoveString remove string from a sliced

Types

type HostMigrationReconciler added in v0.1.6

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

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) Reconcile added in v0.1.6

func (r *HostMigrationReconciler) Reconcile(ctx context.Context, 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 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          *networkv1.Ingress
	OldIngressNamespace string
}

MigratedIngress .

Jump to

Keyboard shortcuts

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