Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reference ¶
type Reference struct {
// Group is the API group of the resource (empty string for core group).
Group string
// Kind is the kind of the resource.
Kind string
// Namespace is the namespace of the resource.
Namespace string
// Name is the name of the resource.
Name string
}
Reference represents a reference from one resource to another.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator validates cross-namespace references against ReferenceGrant resources.
func NewValidator ¶
NewValidator creates a new ReferenceGrant validator.
func (*Validator) IsReferenceAllowed ¶
IsReferenceAllowed checks if a reference from one resource to another is allowed based on ReferenceGrant resources.
References within the same namespace are always allowed. Cross-namespace references require a ReferenceGrant in the target namespace.
Click to show internal directories.
Click to hide internal directories.