Documentation
¶
Index ¶
- Constants
- func ContainsString(slice []string, s string) bool
- func HostMigrationContainsStatus(slice []dioscuriv1.HostMigrationConditions, ...) bool
- func IgnoreNotFound(err error) error
- func RemoveString(slice []string, s string) (result []string)
- type HostMigrationReconciler
- func (r *HostMigrationReconciler) KubernetesHandler(ctx context.Context, opLog logr.Logger, dioscuri dioscuriv1.HostMigration) (ctrl.Result, error)
- func (r *HostMigrationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *HostMigrationReconciler) SetupWithManager(mgr ctrl.Manager) error
- type IngressPredicates
- type MigratedIngress
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 ¶
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 ¶
IgnoreNotFound will ignore not found errors
func RemoveString ¶
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
IngressPredicates .
func (IngressPredicates) Create ¶ added in v0.1.6
func (IngressPredicates) Create(e event.CreateEvent) bool
Create .
func (IngressPredicates) Delete ¶ added in v0.1.6
func (IngressPredicates) Delete(e event.DeleteEvent) bool
Delete .
func (IngressPredicates) Generic ¶ added in v0.1.6
func (IngressPredicates) Generic(e event.GenericEvent) bool
Generic .
func (IngressPredicates) Update ¶ added in v0.1.6
func (IngressPredicates) Update(e event.UpdateEvent) bool
Update .
type MigratedIngress ¶ added in v0.1.6
MigratedIngress .
Click to show internal directories.
Click to hide internal directories.