v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

package v1 contains API Schema definitions for the kubearchive v1 API group +kubebuilder:object:generate=true +groupName=kubearchive.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kubearchive.org", Version: "v1"}

	// 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
)
View Source
var ClusterKubeArchiveConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "clusterkubearchiveconfigs"}
View Source
var ClusterVacuumConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "clustervacuumconfigs"}
View Source
var KubeArchiveConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "kubearchiveconfigs"}
View Source
var NamespaceVacuumConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "namespacevacuumconfigs"}
View Source
var SinkFilterGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "sinkfilters"}

Functions

func SetupCKACWebhookWithManager

func SetupCKACWebhookWithManager(mgr ctrl.Manager) error

func SetupClusterVacuumConfigWebhookWithManager

func SetupClusterVacuumConfigWebhookWithManager(mgr ctrl.Manager) error

func SetupKACWebhookWithManager

func SetupKACWebhookWithManager(mgr ctrl.Manager) error

func SetupNamespaceVacuumConfigWebhookWithManager

func SetupNamespaceVacuumConfigWebhookWithManager(mgr ctrl.Manager) error

func SetupSinkFilterWebhookWithManager

func SetupSinkFilterWebhookWithManager(mgr ctrl.Manager) error

Types

type ClusterKubeArchiveConfig

type ClusterKubeArchiveConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterKubeArchiveConfigSpec   `json:"spec,omitempty"`
	Status ClusterKubeArchiveConfigStatus `json:"status,omitempty"`
}

ClusterKubeArchiveConfig is the Schema for the clusterkubearchiveconfigs API

func ConvertUnstructuredToClusterKubeArchiveConfig

func ConvertUnstructuredToClusterKubeArchiveConfig(object *unstructured.Unstructured) (*ClusterKubeArchiveConfig, error)

type ClusterKubeArchiveConfigCustomDefaulter

type ClusterKubeArchiveConfigCustomDefaulter struct{}

func (*ClusterKubeArchiveConfigCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

type ClusterKubeArchiveConfigCustomValidator

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

func (*ClusterKubeArchiveConfigCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*ClusterKubeArchiveConfigCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type

func (*ClusterKubeArchiveConfigCustomValidator) ValidateUpdate

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type

type ClusterKubeArchiveConfigList

type ClusterKubeArchiveConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterKubeArchiveConfig `json:"items"`
}

ClusterKubeArchiveConfigList contains a list of ClusterKubeArchiveConfig

type ClusterKubeArchiveConfigSpec

type ClusterKubeArchiveConfigSpec KubeArchiveConfigSpec

ClusterKubeArchiveConfigSpec defines the desired state of ClusterKubeArchiveConfig

type ClusterKubeArchiveConfigStatus

type ClusterKubeArchiveConfigStatus KubeArchiveConfigStatus

ClusterKubeArchiveConfigStatus defines the observed state of ClusterKubeArchiveConfig

type ClusterVacuumConfig

type ClusterVacuumConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterVacuumConfigSpec   `json:"spec,omitempty"`
	Status ClusterVacuumConfigStatus `json:"status,omitempty"`
}

ClusterVacuumConfig is the Schema for the clustervacuumconfigs API

func ConvertObjectToClusterVacuumConfig

func ConvertObjectToClusterVacuumConfig(object runtime.Object) (*ClusterVacuumConfig, error)

func ConvertUnstructuredToClusterVacuumConfig

func ConvertUnstructuredToClusterVacuumConfig(object *unstructured.Unstructured) (*ClusterVacuumConfig, error)

type ClusterVacuumConfigCustomDefaulter

type ClusterVacuumConfigCustomDefaulter struct{}

func (*ClusterVacuumConfigCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

type ClusterVacuumConfigCustomValidator

type ClusterVacuumConfigCustomValidator struct {
}

func (*ClusterVacuumConfigCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*ClusterVacuumConfigCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type

func (*ClusterVacuumConfigCustomValidator) ValidateUpdate

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type

type ClusterVacuumConfigList

type ClusterVacuumConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterVacuumConfig `json:"items"`
}

ClusterVacuumConfigList contains a list of ClusterVacuumConfig resources

type ClusterVacuumConfigNamespaceSpec

type ClusterVacuumConfigNamespaceSpec struct {
	NamespaceVacuumConfigSpec `json:",inline,omitempty"`
}

type ClusterVacuumConfigSpec

type ClusterVacuumConfigSpec struct {
	Namespaces map[string]ClusterVacuumConfigNamespaceSpec `json:"namespaces,omitempty" yaml:"namespaces"`
}

ClusterVacuumConfigSpec defines the desired state of ClusterVacuumConfig resource

type ClusterVacuumConfigStatus

type ClusterVacuumConfigStatus struct {
}

ClusterVacuumConfigStatus defines the observed state of ClusterVacuumConfig resource

type KubeArchiveConfig

type KubeArchiveConfig struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	Spec   KubeArchiveConfigSpec   `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status KubeArchiveConfigStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

KubeArchiveConfig is the Schema for the kubearchiveconfigs API

func ConvertUnstructuredToKubeArchiveConfig

func ConvertUnstructuredToKubeArchiveConfig(object *unstructured.Unstructured) (*KubeArchiveConfig, error)

type KubeArchiveConfigCustomDefaulter

type KubeArchiveConfigCustomDefaulter struct{}

func (*KubeArchiveConfigCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

type KubeArchiveConfigCustomValidator

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

func (*KubeArchiveConfigCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*KubeArchiveConfigCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type

func (*KubeArchiveConfigCustomValidator) ValidateUpdate

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type

type KubeArchiveConfigList

type KubeArchiveConfigList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
	Items           []KubeArchiveConfig `json:"items" yaml:"items"`
}

KubeArchiveConfigList contains a list of KubeArchiveConfig

type KubeArchiveConfigResource

type KubeArchiveConfigResource struct {
	Selector        sourcesv1.APIVersionKindSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
	ArchiveWhen     string                           `json:"archiveWhen,omitempty" yaml:"archiveWhen,omitempty"`
	DeleteWhen      string                           `json:"deleteWhen,omitempty" yaml:"deleteWhen,omitempty"`
	ArchiveOnDelete string                           `json:"archiveOnDelete,omitempty" yaml:"archiveOnDelete,omitempty"`
}

type KubeArchiveConfigSpec

type KubeArchiveConfigSpec struct {
	Resources []KubeArchiveConfigResource `json:"resources" yaml:"resources"`
}

KubeArchiveConfigSpec defines the desired state of KubeArchiveConfig

type KubeArchiveConfigStatus

type KubeArchiveConfigStatus struct {
}

KubeArchiveConfigStatus defines the observed state of KubeArchiveConfig

type NamespaceVacuumConfig

type NamespaceVacuumConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NamespaceVacuumConfigSpec   `json:"spec,omitempty"`
	Status NamespaceVacuumConfigStatus `json:"status,omitempty"`
}

NamespaceVacuumConfig is the Schema for the namespacevacuumconfigs API

func ConvertObjectToNamespaceVacuumConfig

func ConvertObjectToNamespaceVacuumConfig(object runtime.Object) (*NamespaceVacuumConfig, error)

func ConvertUnstructuredToNamespaceVacuumConfig

func ConvertUnstructuredToNamespaceVacuumConfig(object *unstructured.Unstructured) (*NamespaceVacuumConfig, error)

type NamespaceVacuumConfigCustomDefaulter

type NamespaceVacuumConfigCustomDefaulter struct{}

func (*NamespaceVacuumConfigCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

type NamespaceVacuumConfigCustomValidator

type NamespaceVacuumConfigCustomValidator struct {
}

func (*NamespaceVacuumConfigCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*NamespaceVacuumConfigCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type

func (*NamespaceVacuumConfigCustomValidator) ValidateUpdate

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type

type NamespaceVacuumConfigList

type NamespaceVacuumConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NamespaceVacuumConfig `json:"items"`
}

NamespaceVacuumConfigList contains a list of NamespaceVacuumConfig resources

type NamespaceVacuumConfigSpec

type NamespaceVacuumConfigSpec struct {
	Resources []sourcesv1.APIVersionKind `json:"resources,omitempty" yaml:"resources"`
}

VacuumListSpec defines the desired state of VacuumList resource

type NamespaceVacuumConfigStatus

type NamespaceVacuumConfigStatus struct {
}

NamespaceVacuumConfigStatus defines the observed state of NamespaceVacuumConfig resource

type SinkFilter

type SinkFilter struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SinkFilterSpec   `json:"spec,omitempty"`
	Status SinkFilterStatus `json:"status,omitempty"`
}

SinkFilter is the Schema for the sinkfilters API

func ConvertObjectToSinkFilter

func ConvertObjectToSinkFilter(object runtime.Object) (*SinkFilter, error)

func ConvertUnstructuredToSinkFilter

func ConvertUnstructuredToSinkFilter(object *unstructured.Unstructured) (*SinkFilter, error)

type SinkFilterCustomDefaulter

type SinkFilterCustomDefaulter struct{}

func (*SinkFilterCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the type

type SinkFilterCustomValidator

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

func (*SinkFilterCustomValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*SinkFilterCustomValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type

func (*SinkFilterCustomValidator) ValidateUpdate

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type

type SinkFilterList

type SinkFilterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SinkFilter `json:"items"`
}

SinkFilterList contains a list of SinkFilter resources

type SinkFilterSpec

type SinkFilterSpec struct {
	Namespaces map[string][]KubeArchiveConfigResource `json:"namespaces" yaml:"namespaces"`
}

SinkFilterSpec defines the desired state of SinkFilter resource

type SinkFilterStatus

type SinkFilterStatus KubeArchiveConfigStatus

SinkFilterStatus defines the observed state of SinkFilter resource

Jump to

Keyboard shortcuts

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