controllers

package
v0.0.0-...-d0d6462 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServerVersion

func GetServerVersion(config *rest.Config) (string, error)

Types

type ApplicationReconciler

type ApplicationReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	K8sSelfClient *k8s.Client
	Recorder      record.EventRecorder
}

ApplicationReconciler reconciles a Application object

func (*ApplicationReconciler) HandleReconcile

func (*ApplicationReconciler) Reconcile

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

+kubebuilder:rbac:groups=manager.keikoproj.io,resources=applications,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=manager.keikoproj.io,resources=applications/status,verbs=get;update;patch

func (*ApplicationReconciler) SetupWithManager

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

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	K8sSelfClient *k8s.Client
	Recorder      record.EventRecorder
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) EnqueueClusterOfMns

func (r *ClusterReconciler) EnqueueClusterOfMns(obj handler.MapObject) []ctrl.Request

EnqueueClusterOfMns will returns the cluster object for a given mns resource to be enqueued

func (*ClusterReconciler) HandleReconcile

func (r *ClusterReconciler) HandleReconcile(ctx context.Context, req ctrl.Request, cluster *managerv1alpha1.Cluster, cfg *rest.Config) (ctrl.Result, error)

func (*ClusterReconciler) Reconcile

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

func (*ClusterReconciler) SetupWithManager

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

type ManagedNamespaceReconciler

type ManagedNamespaceReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	Recorder      record.EventRecorder
	K8sSelfClient *k8s.Client
}

ManagedNamespaceReconciler reconciles a ManagedNamespace object

func (*ManagedNamespaceReconciler) FinalNSTemplate

func (*ManagedNamespaceReconciler) HandleNSResources

func (r *ManagedNamespaceReconciler) HandleNSResources(ctx context.Context, ns *managerv1alpha1.ManagedNamespace, k8sManagedClient *k8s.Client, firstTime bool) (ctrl.Result, error)

HandleNSResources manages namespaces resources

func (*ManagedNamespaceReconciler) ManagedClusterClient

func (*ManagedNamespaceReconciler) Reconcile

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

func (*ManagedNamespaceReconciler) SetupWithManager

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

type ResourceStatus

type ResourceStatus struct {
	Name      string
	Type      string
	DependsOn string
	Done      bool
	Error     error
}

ResourceStatus represents each resource status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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