controllers

package
v0.0.0-...-b1f728d Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AppRestartAnnotationKey = "cloud.kubexcloud.com/restartedAt"

Variables

This section is empty.

Functions

func AppProjectName

func AppProjectName(app *cloudv1alpha1.App) string

func LabelsForApp

func LabelsForApp(projectName, appName string) map[string]string

LabelsForApp returns the labels for an app

func LabelsForNamespace

func LabelsForNamespace(projectName string) map[string]string

LabelsForNamespace returns the labels for a namespace

func LabelsForProject

func LabelsForProject(userName string) map[string]string

LabelsForProject returns the labels for a project

func ProjectNamespaceName

func ProjectNamespaceName(projectName string) string

ProjectNamespaceName returns the namespaceName.

func ProjectUserName

func ProjectUserName(project *cloudv1alpha1.Project) string

ProjectUserName returns the username for a project

Types

type AppReconciler

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

AppReconciler reconciles a App object

func (*AppReconciler) Reconcile

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

func (*AppReconciler) SetupWithManager

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

type ProjectReconciler

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

ProjectReconciler reconciles a Project object

func (*ProjectReconciler) Reconcile

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

func (*ProjectReconciler) SetupWithManager

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

type UserAccountReconciler

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

UserAccountReconciler reconciles a UserAccount object

func (*UserAccountReconciler) Reconcile

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

func (*UserAccountReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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