controllers

package
v0.8.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const LabelRoleBindingUninitialized = "appuio.io/uninitialized"

LabelRoleBindingUninitialized is used to mark rolebindings as uninitialized. In that case the controller will update it to bind to the organization.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrganizationRBACReconciler added in v0.7.0

type OrganizationRBACReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme

	// OrganizationLabel is the label that marks to what organization (if any) the namespace belongs to
	OrganizationLabel string
	// DefaultClusterRoles is a map where the keys are the name of default rolebindings to create and the values are the names of the clusterroles they bind to
	DefaultClusterRoles map[string]string
}

OrganizationRBACReconciler reconciles RBAC rules for organization namespaces

func (*OrganizationRBACReconciler) Reconcile added in v0.7.0

Reconcile makes sure the role bindings for the configured cluster roles are present in every organization namespace. It will also update role bindings with the label "appuio.io/uninitialized": "true" to the default config.

func (*OrganizationRBACReconciler) SetupWithManager added in v0.7.0

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

SetupWithManager sets up the controller with the Manager.

type RatioReconciler

type RatioReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme

	Ratio       ratioFetcher
	RatioLimits limits.Limits
}

RatioReconciler reconciles a Pod object

func (*RatioReconciler) Reconcile

func (r *RatioReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reacts to pod updates and emits events if the fair use request ratio is violated

func (*RatioReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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