controllers

package
v0.13.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleBindingReflectionLabel = "reflection.proxy.projectcapsule.dev/enabled"
)

Variables

View Source
var CapsuleUserGroups sets.Set[string]
View Source
var CapsuleUsers sets.Set[string]

Functions

func OwnerRoleBindingsIndexFunc

func OwnerRoleBindingsIndexFunc(obj any) (result []string, err error)

func ReflectionRoleBindingsIndexFunc added in v0.13.9

func ReflectionRoleBindingsIndexFunc(obj any) ([]string, error)

Types

type CapsuleConfiguration

type CapsuleConfiguration struct {
	Client                      client.Client
	CapsuleConfigurationName    string
	DeprecatedCapsuleUserGroups []string
}

func (*CapsuleConfiguration) Reconcile

func (*CapsuleConfiguration) SetupWithManager

func (c *CapsuleConfiguration) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

type GlobalProxySettingsReconciler added in v0.13.2

type GlobalProxySettingsReconciler struct {
	Client client.Client
	// contains filtered or unexported fields
}

GlobalProxySettingsReconciler reconciles GlobalProxySettings objects and keeps status.observedGeneration in sync with metadata.generation.

func (*GlobalProxySettingsReconciler) Reconcile added in v0.13.2

func (r *GlobalProxySettingsReconciler) Reconcile(ctx context.Context, req reconcile.Request) (result reconcile.Result, err error)

func (*GlobalProxySettingsReconciler) SetupWithManager added in v0.13.2

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

type ProxySettingReconciler added in v0.13.2

type ProxySettingReconciler struct {
	Client client.Client
	// contains filtered or unexported fields
}

ProxySettingReconciler reconciles ProxySetting objects and keeps status.observedGeneration in sync with metadata.generation.

func (*ProxySettingReconciler) Reconcile added in v0.13.2

func (r *ProxySettingReconciler) Reconcile(ctx context.Context, req reconcile.Request) (result reconcile.Result, err error)

func (*ProxySettingReconciler) SetupWithManager added in v0.13.2

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

type RoleBindingReflector

type RoleBindingReflector struct {
	// contains filtered or unexported fields
}

func NewRoleBindingReflector

func NewRoleBindingReflector(ctx context.Context, cache crcache.Cache) (*RoleBindingReflector, error)

func (*RoleBindingReflector) GetUserNamespacesForResource added in v0.13.9

func (r *RoleBindingReflector) GetUserNamespacesForResource(ctx context.Context, username string, groups []string, verb, apiGroup, resource string) ([]string, error)

GetUserNamespacesForResource returns namespaces where the request subject is bound to a namespaced Role granting the requested verb on the API resource. Policy rules use Kubernetes RBAC matching semantics for '*' in verbs, API groups, and resources. Both namespaced Roles and ClusterRoles referenced by a namespaced RoleBinding are supported.

func (*RoleBindingReflector) GetUserNamespacesFromRequest

func (r *RoleBindingReflector) GetUserNamespacesFromRequest(req request.Request) ([]string, error)

func (*RoleBindingReflector) GetUserTenantNamesForResource added in v0.13.9

func (r *RoleBindingReflector) GetUserTenantNamesForResource(ctx context.Context, username string, groups []string, verb, apiGroup, resource string) ([]string, error)

GetUserTenantNamesForResource resolves reflected RBAC permissions directly to tenant selector values using the cached Namespace objects.

func (*RoleBindingReflector) Start

func (r *RoleBindingReflector) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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