v1alpha1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group. +kubebuilder:object:generate=true +groupName=policy.bubustack.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "policy.bubustack.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ReferenceGrant

type ReferenceGrant struct {
	metav1.TypeMeta `json:",inline"`

	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitzero"`

	// spec defines the desired state of ReferenceGrant
	// +required
	Spec ReferenceGrantSpec `json:"spec"`

	// status defines the observed state of ReferenceGrant
	// +optional
	Status ReferenceGrantStatus `json:"status,omitzero"`
}

ReferenceGrant is the Schema for the referencegrants API

func (*ReferenceGrant) DeepCopy

func (in *ReferenceGrant) DeepCopy() *ReferenceGrant

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceGrant.

func (*ReferenceGrant) DeepCopyInto

func (in *ReferenceGrant) DeepCopyInto(out *ReferenceGrant)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReferenceGrant) DeepCopyObject

func (in *ReferenceGrant) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReferenceGrantFrom

type ReferenceGrantFrom struct {
	// Group is the API group of the referencing object (e.g., "bubustack.io").
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	Group string `json:"group"`

	// Kind is the Kubernetes kind of the referencing object (e.g., "StoryRun").
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	Kind string `json:"kind"`

	// Namespace is the namespace of the referencing object.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	Namespace string `json:"namespace"`
}

ReferenceGrantFrom identifies the referencing resource.

func (*ReferenceGrantFrom) DeepCopy

func (in *ReferenceGrantFrom) DeepCopy() *ReferenceGrantFrom

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceGrantFrom.

func (*ReferenceGrantFrom) DeepCopyInto

func (in *ReferenceGrantFrom) DeepCopyInto(out *ReferenceGrantFrom)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReferenceGrantList

type ReferenceGrantList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitzero"`
	Items           []ReferenceGrant `json:"items"`
}

ReferenceGrantList contains a list of ReferenceGrant

func (*ReferenceGrantList) DeepCopy

func (in *ReferenceGrantList) DeepCopy() *ReferenceGrantList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceGrantList.

func (*ReferenceGrantList) DeepCopyInto

func (in *ReferenceGrantList) DeepCopyInto(out *ReferenceGrantList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReferenceGrantList) DeepCopyObject

func (in *ReferenceGrantList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReferenceGrantSpec

type ReferenceGrantSpec struct {
	// From lists which resources are allowed to reference into this namespace.
	// +kubebuilder:validation:MinItems=1
	From []ReferenceGrantFrom `json:"from"`

	// To lists the target resource kinds (and optionally names) that can be referenced.
	// +kubebuilder:validation:MinItems=1
	To []ReferenceGrantTo `json:"to"`
}

ReferenceGrantSpec defines the desired state of ReferenceGrant. The grant is namespaced and allows references *to* objects in the grant's namespace from objects in other namespaces.

func (*ReferenceGrantSpec) DeepCopy

func (in *ReferenceGrantSpec) DeepCopy() *ReferenceGrantSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceGrantSpec.

func (*ReferenceGrantSpec) DeepCopyInto

func (in *ReferenceGrantSpec) DeepCopyInto(out *ReferenceGrantSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReferenceGrantStatus

type ReferenceGrantStatus struct {

	// conditions represent the current state of the ReferenceGrant resource.
	// Each condition has a unique type and reflects the status of a specific aspect of the resource.
	//
	// Standard condition types include:
	// - "Available": the resource is fully functional
	// - "Progressing": the resource is being created or updated
	// - "Degraded": the resource failed to reach or maintain its desired state
	//
	// The status of each condition is one of True, False, or Unknown.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ReferenceGrantStatus defines the observed state of ReferenceGrant.

func (*ReferenceGrantStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceGrantStatus.

func (*ReferenceGrantStatus) DeepCopyInto

func (in *ReferenceGrantStatus) DeepCopyInto(out *ReferenceGrantStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReferenceGrantTo

type ReferenceGrantTo struct {
	// Group is the API group of the target object (e.g., "bubustack.io").
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	Group string `json:"group"`

	// Kind is the Kubernetes kind of the target object (e.g., "Engram").
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	Kind string `json:"kind"`

	// Name optionally restricts the grant to a specific resource name.
	// +optional
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
	Name *string `json:"name,omitempty"`
}

ReferenceGrantTo identifies the target resource that can be referenced.

func (*ReferenceGrantTo) DeepCopy

func (in *ReferenceGrantTo) DeepCopy() *ReferenceGrantTo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceGrantTo.

func (*ReferenceGrantTo) DeepCopyInto

func (in *ReferenceGrantTo) DeepCopyInto(out *ReferenceGrantTo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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