v2alpha1

package
v0.0.0-...-546eec4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package v2alpha1 contains API Schema definitions for the infinispan v2alpha1 API group +kubebuilder:object:generate=true +groupName=infinispan.org

Index

Constants

This section is empty.

Variables

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

	// 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

func RegisterCacheValidatingWebhook

func RegisterCacheValidatingWebhook(mgr ctrl.Manager)

RegisterCacheValidatingWebhook explicitly adds the validating webhook to the Webhook Server This is necessary as we need to implement admission.Handler interface directly so that the request context can be used by the runtime client

func StatusError

func StatusError(c *Cache, allErrs field.ErrorList) error

Types

type AdminAuth

type AdminAuth struct {
	// The secret that contains user credentials.
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Authentication Secret",xDescriptors="urn:alm:descriptor:io.kubernetes:Secret"
	SecretName string `json:"secretName,omitempty"`
	// Secret and key containing the admin username for authentication.
	// +optional
	Username v1.SecretKeySelector `json:"username,omitempty"`
	// Secret and key containing the admin password for authentication.
	// +optional
	Password v1.SecretKeySelector `json:"password,omitempty"`
}

AdminAuth description of the auth info

func (*AdminAuth) DeepCopy

func (in *AdminAuth) DeepCopy() *AdminAuth

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

func (*AdminAuth) DeepCopyInto

func (in *AdminAuth) DeepCopyInto(out *AdminAuth)

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

type Backup

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

	Spec   BackupSpec   `json:"spec,omitempty"`
	Status BackupStatus `json:"status,omitempty"`
}

+kubebuilder:subresource:status +kubebuilder:resource:path=backups,scope=Namespaced Backup is the Schema for the backups API

func (*Backup) DeepCopy

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

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

func (*Backup) DeepCopyObject

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

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

func (*Backup) Default

func (b *Backup) Default()

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

func (*Backup) SetupWebhookWithManager

func (b *Backup) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Backup) StatusError

func (b *Backup) StatusError(allErrs field.ErrorList) error

func (*Backup) ValidateCreate

func (b *Backup) ValidateCreate() error

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

func (*Backup) ValidateDelete

func (b *Backup) ValidateDelete() error

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

func (*Backup) ValidateUpdate

func (b *Backup) ValidateUpdate(old runtime.Object) error

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

type BackupList

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

BackupList contains a list of Backup

func (*BackupList) DeepCopy

func (in *BackupList) DeepCopy() *BackupList

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

func (*BackupList) DeepCopyInto

func (in *BackupList) DeepCopyInto(out *BackupList)

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

func (*BackupList) DeepCopyObject

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

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

type BackupPhase

type BackupPhase string
const (
	// BackupInitializing means the request has been accepted by the system, but the underlying resources are still
	// being initialized.
	BackupInitializing BackupPhase = "Initializing"
	// BackupInitialized means that all required resources have been initialized
	BackupInitialized BackupPhase = "Initialized"
	// BackupRunning means that the backup pod has been created and the backup process initiated on the infinispan server.
	BackupRunning BackupPhase = "Running"
	// BackupSucceeded means that the backup process on the server has completed and the backup pod has been terminated.
	BackupSucceeded BackupPhase = "Succeeded"
	// BackupFailed means that the backup failed on the infinispan server and the backup pod has terminated.
	BackupFailed BackupPhase = "Failed"
	// BackupUnknown means that for some reason the state of the backup could not be obtained, typically due
	// to an error in communicating with the underlying backup pod.
	BackupUnknown BackupPhase = "Unknown"
)

type BackupResources

type BackupResources struct {
	// +optional
	Caches []string `json:"caches,omitempty"`
	// +optional
	Templates []string `json:"templates,omitempty"`
	// +optional
	Counters []string `json:"counters,omitempty"`
	// +optional
	ProtoSchemas []string `json:"protoSchemas,omitempty"`
	// +optional
	Tasks []string `json:"tasks,omitempty"`

	// Deprecated and to be removed on subsequent release. Use .Templates instead.
	// +optional
	CacheConfigs []string `json:"cacheConfigs,omitempty"`
	// Deprecated and to be removed on subsequent release. Use .Tasks instead.
	// +optional
	Scripts []string `json:"scripts,omitempty"`
}

func (*BackupResources) DeepCopy

func (in *BackupResources) DeepCopy() *BackupResources

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

func (*BackupResources) DeepCopyInto

func (in *BackupResources) DeepCopyInto(out *BackupResources)

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

type BackupSpec

type BackupSpec struct {
	// Infinispan cluster name
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Name",xDescriptors="urn:alm:descriptor:io.kubernetes:infinispan.org:v1:Infinispan"
	Cluster string `json:"cluster"`
	// +optional
	Volume BackupVolumeSpec `json:"volume,omitempty"`
	// +optional
	Resources *BackupResources `json:"resources,omitempty"`
	// +optional
	Container v1.InfinispanContainerSpec `json:"container,omitempty"`
}

BackupSpec defines the desired state of Backup

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

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

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

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

type BackupStatus

type BackupStatus struct {
	// Current phase of the backup operation
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Phase"
	Phase BackupPhase `json:"phase"`
	// Reason indicates the reason for any backup related failures.
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Reason"
	Reason string `json:"reason,omitempty"`
	// The name of the created PersistentVolumeClaim used to store the backup
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Persistent Volume Claim"
	PVC string `json:"pvc,omitempty"`
}

BackupStatus defines the observed state of Backup

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

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

type BackupVolumeSpec

type BackupVolumeSpec struct {
	// +optional
	Storage *string `json:"storage,omitempty"`
	// +optional
	// Names the storage class object for persistent volume claims.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage Class Name",xDescriptors="urn:alm:descriptor:io.kubernetes:StorageClass"
	StorageClassName *string `json:"storageClassName,omitempty"`
}

func (*BackupVolumeSpec) DeepCopy

func (in *BackupVolumeSpec) DeepCopy() *BackupVolumeSpec

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

func (*BackupVolumeSpec) DeepCopyInto

func (in *BackupVolumeSpec) DeepCopyInto(out *BackupVolumeSpec)

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

type Batch

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

	Spec   BatchSpec   `json:"spec,omitempty"`
	Status BatchStatus `json:"status,omitempty"`
}

+kubebuilder:subresource:status +kubebuilder:resource:path=batches,scope=Namespaced Batch is the Schema for the batches API

func (*Batch) ConfigMapName

func (b *Batch) ConfigMapName() string

func (*Batch) DeepCopy

func (in *Batch) DeepCopy() *Batch

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

func (*Batch) DeepCopyInto

func (in *Batch) DeepCopyInto(out *Batch)

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

func (*Batch) DeepCopyObject

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

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

func (*Batch) SetupWebhookWithManager

func (b *Batch) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Batch) StatusError

func (b *Batch) StatusError(allErrs field.ErrorList) error

func (*Batch) ValidateCreate

func (b *Batch) ValidateCreate() error

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

func (*Batch) ValidateDelete

func (b *Batch) ValidateDelete() error

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

func (*Batch) ValidateUpdate

func (b *Batch) ValidateUpdate(old runtime.Object) error

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

type BatchList

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

BatchList contains a list of Batch

func (*BatchList) DeepCopy

func (in *BatchList) DeepCopy() *BatchList

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

func (*BatchList) DeepCopyInto

func (in *BatchList) DeepCopyInto(out *BatchList)

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

func (*BatchList) DeepCopyObject

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

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

type BatchPhase

type BatchPhase string
const (
	// BatchInitializing means the request has been accepted by the system, but the underlying resources are still
	// being initialized.
	BatchInitializing BatchPhase = "Initializing"
	// BatchInitialized means that all required resources have been initialized
	BatchInitialized BatchPhase = "Initialized"
	// BatchRunning means that the Batch job has been created and the Batch process initiated on the infinispan server.
	BatchRunning BatchPhase = "Running"
	// BatchSucceeded means that the Batch job has completed successfully.
	BatchSucceeded BatchPhase = "Succeeded"
	// BatchFailed means that the Batch has failed.
	BatchFailed BatchPhase = "Failed"
)

type BatchSpec

type BatchSpec struct {
	// Infinispan cluster name
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Name",xDescriptors="urn:alm:descriptor:io.kubernetes:infinispan.org:v1:Infinispan"
	Cluster string `json:"cluster"`
	// Batch string to be executed
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Config Command"
	Config *string `json:"config,omitempty"`
	// Name of the ConfigMap containing the batch and resource files to be executed
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="ConfigMap Name"
	ConfigMap *string `json:"configMap,omitempty"`
}

BatchSpec defines the desired state of Batch

func (*BatchSpec) DeepCopy

func (in *BatchSpec) DeepCopy() *BatchSpec

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

func (*BatchSpec) DeepCopyInto

func (in *BatchSpec) DeepCopyInto(out *BatchSpec)

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

type BatchStatus

type BatchStatus struct {
	// Current phase of the batch operation
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Phase"
	Phase BatchPhase `json:"phase"`
	// The reason for any batch related failures
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Reason"
	Reason string `json:"reason,omitempty"`
	// The UUID of the Infinispan instance that the Batch is associated with
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Cluster UUID"
	ClusterUID *types.UID `json:"clusterUID,omitempty"`
}

BatchStatus defines the observed state of Batch

func (*BatchStatus) DeepCopy

func (in *BatchStatus) DeepCopy() *BatchStatus

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

func (*BatchStatus) DeepCopyInto

func (in *BatchStatus) DeepCopyInto(out *BatchStatus)

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

type Cache

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

	Spec   CacheSpec   `json:"spec,omitempty"`
	Status CacheStatus `json:"status,omitempty"`
}

Cache is the Schema for the caches API +kubebuilder:subresource:status +kubebuilder:resource:path=caches,scope=Namespaced

func (*Cache) DeepCopy

func (in *Cache) DeepCopy() *Cache

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

func (*Cache) DeepCopyInto

func (in *Cache) DeepCopyInto(out *Cache)

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

func (*Cache) DeepCopyObject

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

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

func (*Cache) Default

func (c *Cache) Default()

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

func (*Cache) GetCacheName

func (cache *Cache) GetCacheName() string

func (*Cache) GetCondition

func (cache *Cache) GetCondition(condition CacheConditionType) CacheCondition

GetCondition return the Status of the given condition or nil if condition is not present

func (*Cache) SetCondition

func (cache *Cache) SetCondition(condition CacheConditionType, status metav1.ConditionStatus, message string) bool

SetCondition set condition to status

func (*Cache) SetupWebhookWithManager

func (c *Cache) SetupWebhookWithManager(mgr ctrl.Manager) error

type CacheCondition

type CacheCondition struct {
	// Type is the type of the condition.
	Type CacheConditionType `json:"type"`
	// Status is the status of the condition.
	Status metav1.ConditionStatus `json:"status"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

CacheCondition define a condition of the cluster

func (*CacheCondition) DeepCopy

func (in *CacheCondition) DeepCopy() *CacheCondition

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

func (*CacheCondition) DeepCopyInto

func (in *CacheCondition) DeepCopyInto(out *CacheCondition)

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

type CacheConditionType

type CacheConditionType string
const (
	CacheConditionReady CacheConditionType = "Ready"
)

type CacheList

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

+kubebuilder:object:root=true CacheList contains a list of Cache

func (*CacheList) DeepCopy

func (in *CacheList) DeepCopy() *CacheList

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

func (*CacheList) DeepCopyInto

func (in *CacheList) DeepCopyInto(out *CacheList)

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

func (*CacheList) DeepCopyObject

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

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

type CacheSpec

type CacheSpec struct {
	// Deprecated. This no longer has any effect. The operator's admin credentials are now used to perform cache operations
	AdminAuth *AdminAuth `json:"adminAuth,omitempty"`
	// Infinispan cluster name
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Name",xDescriptors="urn:alm:descriptor:io.kubernetes:infinispan.org:v1:Infinispan"
	ClusterName string `json:"clusterName"`
	// Name of the cache to be created. If empty ObjectMeta.Name will be used
	// +optional
	Name string `json:"name,omitempty"`
	// Cache template in XML format
	// +optional
	Template string `json:"template,omitempty"`
	// Name of the template to be used to create this cache
	// +optional
	TemplateName string `json:"templateName,omitempty"`
	// How updates to Cache CR template should be reconciled on the Infinispan server
	// +optional
	Updates *CacheUpdateSpec `json:"updates,omitempty"`
}

CacheSpec defines the desired state of Cache

func (*CacheSpec) DeepCopy

func (in *CacheSpec) DeepCopy() *CacheSpec

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

func (*CacheSpec) DeepCopyInto

func (in *CacheSpec) DeepCopyInto(out *CacheSpec)

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

type CacheStatus

type CacheStatus struct {
	// Conditions list for this cache
	// +optional
	Conditions []CacheCondition `json:"conditions,omitempty"`
	// Deprecated. This is no longer set. Service name that exposes the cache inside the cluster
	// +optional
	ServiceName string `json:"serviceName,omitempty"`
}

CacheStatus defines the observed state of Cache

func (*CacheStatus) DeepCopy

func (in *CacheStatus) DeepCopy() *CacheStatus

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

func (*CacheStatus) DeepCopyInto

func (in *CacheStatus) DeepCopyInto(out *CacheStatus)

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

type CacheUpdateSpec

type CacheUpdateSpec struct {
	// How updates to Cache CR template should be applied on the Infinispan server
	// +optional
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Update Strategy",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:select:recreate", "urn:alm:descriptor:com.tectonic.ui:select:retain"}
	Strategy CacheUpdateStrategyType `json:"strategy,omitempty"`
}

func (*CacheUpdateSpec) DeepCopy

func (in *CacheUpdateSpec) DeepCopy() *CacheUpdateSpec

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

func (*CacheUpdateSpec) DeepCopyInto

func (in *CacheUpdateSpec) DeepCopyInto(out *CacheUpdateSpec)

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

type CacheUpdateStrategyType

type CacheUpdateStrategyType string

+kubebuilder:validation:Enum=recreate;retain

const (
	CacheUpdateRecreate CacheUpdateStrategyType = "recreate"
	CacheUpdateRetain   CacheUpdateStrategyType = "retain"
)

type Restore

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

	Spec   RestoreSpec   `json:"spec,omitempty"`
	Status RestoreStatus `json:"status,omitempty"`
}

Restore is the Schema for the restores API +kubebuilder:subresource:status +kubebuilder:resource:path=restores,scope=Namespaced

func (*Restore) DeepCopy

func (in *Restore) DeepCopy() *Restore

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

func (*Restore) DeepCopyInto

func (in *Restore) DeepCopyInto(out *Restore)

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

func (*Restore) DeepCopyObject

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

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

func (*Restore) Default

func (r *Restore) Default()

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

func (*Restore) SetupWebhookWithManager

func (r *Restore) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Restore) StatusError

func (b *Restore) StatusError(allErrs field.ErrorList) error

func (*Restore) ValidateCreate

func (b *Restore) ValidateCreate() error

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

func (*Restore) ValidateDelete

func (b *Restore) ValidateDelete() error

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

func (*Restore) ValidateUpdate

func (b *Restore) ValidateUpdate(old runtime.Object) error

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

type RestoreList

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

RestoreList contains a list of Restore

func (*RestoreList) DeepCopy

func (in *RestoreList) DeepCopy() *RestoreList

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

func (*RestoreList) DeepCopyInto

func (in *RestoreList) DeepCopyInto(out *RestoreList)

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

func (*RestoreList) DeepCopyObject

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

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

type RestorePhase

type RestorePhase string
const (
	// RestoreInitializing means the request has been accepted by the system, but the underlying resources are still
	// being initialized.
	RestoreInitializing RestorePhase = "Initializing"
	// RestoreInitialized means that all required resources have been initialized.
	RestoreInitialized RestorePhase = "Initialized"
	// RestoreRunning means that the Restore pod has been created and the Restore process initiated on the infinispan server.
	RestoreRunning RestorePhase = "Running"
	// RestoreSucceeded means that the Restore process on the server has completed and the Restore pod has been terminated.
	RestoreSucceeded RestorePhase = "Succeeded"
	// RestoreFailed means that the Restore failed on the infinispan server and the Restore pod has terminated.
	RestoreFailed RestorePhase = "Failed"
	// RestoreUnknown means that for some reason the state of the Restore could not be obtained, typically due
	// to an error in communicating with the underlying Restore pod.
	RestoreUnknown RestorePhase = "Unknown"
)

type RestoreResources

type RestoreResources struct {
	// +optional
	Caches []string `json:"caches,omitempty"`
	// +optional
	Templates []string `json:"templates,omitempty"`
	// +optional
	Counters []string `json:"counters,omitempty"`
	// +optional
	ProtoSchemas []string `json:"protoSchemas,omitempty"`
	// +optional
	Tasks []string `json:"tasks,omitempty"`

	// Deprecated and to be removed on subsequent release. Use .Templates instead.
	// +optional
	CacheConfigs []string `json:"cacheConfigs,omitempty"`
	// Deprecated and to be removed on subsequent release. Use .Tasks instead.
	// +optional
	Scripts []string `json:"scripts,omitempty"`
}

func (*RestoreResources) DeepCopy

func (in *RestoreResources) DeepCopy() *RestoreResources

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

func (*RestoreResources) DeepCopyInto

func (in *RestoreResources) DeepCopyInto(out *RestoreResources)

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

type RestoreSpec

type RestoreSpec struct {
	// Infinispan cluster name
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Name",xDescriptors="urn:alm:descriptor:io.kubernetes:infinispan.org:v1:Infinispan"
	Cluster string `json:"cluster"`
	// The Infinispan Backup to restore
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Backup Name",xDescriptors="urn:alm:descriptor:io.kubernetes:infinispan.org:v2alpha1:Backup"
	Backup string `json:"backup"`
	// +optional
	Resources *RestoreResources `json:"resources,omitempty"`
	// +optional
	Container v1.InfinispanContainerSpec `json:"container,omitempty"`
}

BackupSpec defines the desired state of Backup

func (*RestoreSpec) DeepCopy

func (in *RestoreSpec) DeepCopy() *RestoreSpec

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

func (*RestoreSpec) DeepCopyInto

func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)

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

type RestoreStatus

type RestoreStatus struct {
	// Current phase of the restore operation
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Phase"
	Phase RestorePhase `json:"phase"`
	// Reason indicates the reason for any restore related failures.
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Reason"
	Reason string `json:"reason,omitempty"`
}

RestoreStatus defines the observed state of Restore

func (*RestoreStatus) DeepCopy

func (in *RestoreStatus) DeepCopy() *RestoreStatus

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

func (*RestoreStatus) DeepCopyInto

func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)

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