Documentation
¶
Overview ¶
package v1 contains API Schema definitions for the kubearchive v1 API group +kubebuilder:object:generate=true +groupName=kubearchive.org
Index ¶
- Variables
- func SetupCKACWebhookWithManager(mgr ctrl.Manager) error
- func SetupClusterVacuumConfigWebhookWithManager(mgr ctrl.Manager) error
- func SetupKACWebhookWithManager(mgr ctrl.Manager) error
- func SetupNamespaceVacuumConfigWebhookWithManager(mgr ctrl.Manager) error
- func SetupSinkFilterWebhookWithManager(mgr ctrl.Manager) error
- type ClusterKubeArchiveConfig
- type ClusterKubeArchiveConfigCustomDefaulter
- type ClusterKubeArchiveConfigCustomValidator
- func (ckaccv *ClusterKubeArchiveConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (ckaccv *ClusterKubeArchiveConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
- func (ckaccv *ClusterKubeArchiveConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
- type ClusterKubeArchiveConfigList
- type ClusterKubeArchiveConfigSpec
- type ClusterKubeArchiveConfigStatus
- type ClusterVacuumConfig
- type ClusterVacuumConfigCustomDefaulter
- type ClusterVacuumConfigCustomValidator
- func (cvcv *ClusterVacuumConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (cvcv *ClusterVacuumConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
- func (cvcv *ClusterVacuumConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
- type ClusterVacuumConfigList
- type ClusterVacuumConfigNamespaceSpec
- type ClusterVacuumConfigSpec
- type ClusterVacuumConfigStatus
- type KubeArchiveConfig
- type KubeArchiveConfigCustomDefaulter
- type KubeArchiveConfigCustomValidator
- func (kaccv *KubeArchiveConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (kaccv *KubeArchiveConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
- func (kaccv *KubeArchiveConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
- type KubeArchiveConfigList
- type KubeArchiveConfigResource
- type KubeArchiveConfigSpec
- type KubeArchiveConfigStatus
- type NamespaceVacuumConfig
- type NamespaceVacuumConfigCustomDefaulter
- type NamespaceVacuumConfigCustomValidator
- func (nvcv *NamespaceVacuumConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (nvcv *NamespaceVacuumConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
- func (nvcv *NamespaceVacuumConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
- type NamespaceVacuumConfigList
- type NamespaceVacuumConfigSpec
- type NamespaceVacuumConfigStatus
- type SinkFilter
- type SinkFilterCustomDefaulter
- type SinkFilterCustomValidator
- func (sfcv *SinkFilterCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (sfcv *SinkFilterCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
- func (sfcv *SinkFilterCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
- type SinkFilterList
- type SinkFilterSpec
- type SinkFilterStatus
Constants ¶
This section is empty.
Variables ¶
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 )
var ClusterKubeArchiveConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "clusterkubearchiveconfigs"}
var ClusterVacuumConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "clustervacuumconfigs"}
var KubeArchiveConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "kubearchiveconfigs"}
var NamespaceVacuumConfigGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "namespacevacuumconfigs"}
var SinkFilterGVR = schema.GroupVersionResource{Group: "kubearchive.org", Version: "v1", Resource: "sinkfilters"}
Functions ¶
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{}
type ClusterKubeArchiveConfigCustomValidator ¶
type ClusterKubeArchiveConfigCustomValidator struct {
// contains filtered or unexported fields
}
func (*ClusterKubeArchiveConfigCustomValidator) ValidateCreate ¶
func (ckaccv *ClusterKubeArchiveConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*ClusterKubeArchiveConfigCustomValidator) ValidateDelete ¶
func (ckaccv *ClusterKubeArchiveConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*ClusterKubeArchiveConfigCustomValidator) ValidateUpdate ¶
func (ckaccv *ClusterKubeArchiveConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
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{}
type ClusterVacuumConfigCustomValidator ¶
type ClusterVacuumConfigCustomValidator struct { }
func (*ClusterVacuumConfigCustomValidator) ValidateCreate ¶
func (cvcv *ClusterVacuumConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*ClusterVacuumConfigCustomValidator) ValidateDelete ¶
func (cvcv *ClusterVacuumConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*ClusterVacuumConfigCustomValidator) ValidateUpdate ¶
func (cvcv *ClusterVacuumConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
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{}
type KubeArchiveConfigCustomValidator ¶
type KubeArchiveConfigCustomValidator struct {
// contains filtered or unexported fields
}
func (*KubeArchiveConfigCustomValidator) ValidateCreate ¶
func (kaccv *KubeArchiveConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*KubeArchiveConfigCustomValidator) ValidateDelete ¶
func (kaccv *KubeArchiveConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
ValidateDelete 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{}
type NamespaceVacuumConfigCustomValidator ¶
type NamespaceVacuumConfigCustomValidator struct { }
func (*NamespaceVacuumConfigCustomValidator) ValidateCreate ¶
func (nvcv *NamespaceVacuumConfigCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*NamespaceVacuumConfigCustomValidator) ValidateDelete ¶
func (nvcv *NamespaceVacuumConfigCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*NamespaceVacuumConfigCustomValidator) ValidateUpdate ¶
func (nvcv *NamespaceVacuumConfigCustomValidator) ValidateUpdate(_ context.Context, _ runtime.Object, new runtime.Object) (admission.Warnings, error)
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{}
type SinkFilterCustomValidator ¶
type SinkFilterCustomValidator struct {
// contains filtered or unexported fields
}
func (*SinkFilterCustomValidator) ValidateCreate ¶
func (sfcv *SinkFilterCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*SinkFilterCustomValidator) ValidateDelete ¶
func (sfcv *SinkFilterCustomValidator) ValidateDelete(_ context.Context, new runtime.Object) (admission.Warnings, error)
ValidateDelete 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
Source Files
¶
- clusterkubearchiveconfig_types.go
- clusterkubearchiveconfig_webhook.go
- clustervacuumconfig_types.go
- clustervacuumconfig_webhook.go
- groupversion_info.go
- kubearchiveconfig_types.go
- kubearchiveconfig_webhook.go
- namespacevacuumconfig_types.go
- namespacevacuumconfig_webhook.go
- sinkfilter_types.go
- sinkfilter_webhook.go