Documentation
¶
Index ¶
Constants ¶
const LabelNamespaceNoRBAC = "appuio.io/no-rbac-creation"
LabelNamespaceNoRBAC is used to speficy if RBAC rules should be created for a namespace. If not specified it defaults to `admin` privileges on the namespace owned by the organization
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
func (r *OrganizationRBACReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
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.