controllers

package
v0.0.0-...-f831509 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstPodName

func GetFirstPodName(parentObject runtime.Object) string

func GetPodFromTemplate

func GetPodFromTemplate(template *corev1.PodTemplateSpec, parentObject runtime.Object, namespace string) *corev1.Pod

func RemoveString

func RemoveString(s []string, i int) []string

RemoveString removes the element at position i from a string array without preserving the order. https://stackoverflow.com/a/37335777/4430124

Types

type MigratingPodReconciler

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

MigratingPodReconciler reconciles a MigratingPod object

func (*MigratingPodReconciler) Reconcile

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

func (*MigratingPodReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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