authzrolebinding

package
v1.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAuthzRoleBindingWebhookWithManager

func SetupAuthzRoleBindingWebhookWithManager(mgr ctrl.Manager) error

SetupAuthzRoleBindingWebhookWithManager registers the validating webhook for AuthzRoleBinding.

func ValidateCondition

func ValidateCondition(cond openchoreodevv1alpha1.AuthzCondition, fieldPath *field.Path) field.ErrorList

ValidateCondition checks that a single AuthzCondition is well-formed:

  1. actions and expression are non-empty.
  2. The CEL expression compiles and returns bool.
  3. Every <root>.<leaf> attribute access in the expression is in the intersection of allowed attributes for all listed actions.

All validation errors are collected and returned together.

Types

type AuthzRoleBindingValidator

type AuthzRoleBindingValidator struct {
	Client client.Client
}

AuthzRoleBindingValidator validates AuthzRoleBinding resources.

NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied.

func (*AuthzRoleBindingValidator) ValidateCreate

func (*AuthzRoleBindingValidator) ValidateDelete

func (*AuthzRoleBindingValidator) ValidateUpdate

func (v *AuthzRoleBindingValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)

Jump to

Keyboard shortcuts

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