Documentation ¶
Overview ¶
Package v2alpha1 contains API Schema definitions for the infinispan v2alpha1 API group +kubebuilder:object:generate=true +groupName=infinispan.org
Index ¶
- Variables
- func RegisterCacheValidatingWebhook(mgr ctrl.Manager)
- func StatusError(c *Cache, allErrs field.ErrorList) error
- type AdminAuth
- type Backup
- func (in *Backup) DeepCopy() *Backup
- func (in *Backup) DeepCopyInto(out *Backup)
- func (in *Backup) DeepCopyObject() runtime.Object
- func (b *Backup) Default()
- func (b *Backup) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (b *Backup) StatusError(allErrs field.ErrorList) error
- func (b *Backup) ValidateCreate() error
- func (b *Backup) ValidateDelete() error
- func (b *Backup) ValidateUpdate(old runtime.Object) error
- type BackupList
- type BackupPhase
- type BackupResources
- type BackupSpec
- type BackupStatus
- type BackupVolumeSpec
- type Batch
- func (b *Batch) ConfigMapName() string
- func (in *Batch) DeepCopy() *Batch
- func (in *Batch) DeepCopyInto(out *Batch)
- func (in *Batch) DeepCopyObject() runtime.Object
- func (b *Batch) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (b *Batch) StatusError(allErrs field.ErrorList) error
- func (b *Batch) ValidateCreate() error
- func (b *Batch) ValidateDelete() error
- func (b *Batch) ValidateUpdate(old runtime.Object) error
- type BatchContainerSpec
- func (spec *BatchContainerSpec) CpuResources() (requests resource.Quantity, limits resource.Quantity, err error)
- func (in *BatchContainerSpec) DeepCopy() *BatchContainerSpec
- func (in *BatchContainerSpec) DeepCopyInto(out *BatchContainerSpec)
- func (spec *BatchContainerSpec) MemoryResources() (requests resource.Quantity, limits resource.Quantity, err error)
- type BatchList
- type BatchPhase
- type BatchSpec
- type BatchStatus
- type Cache
- func (in *Cache) DeepCopy() *Cache
- func (in *Cache) DeepCopyInto(out *Cache)
- func (in *Cache) DeepCopyObject() runtime.Object
- func (c *Cache) Default()
- func (cache *Cache) GetCacheName() string
- func (cache *Cache) GetCondition(condition CacheConditionType) CacheCondition
- func (cache *Cache) SetCondition(condition CacheConditionType, status metav1.ConditionStatus, message string) bool
- func (c *Cache) SetupWebhookWithManager(mgr ctrl.Manager) error
- type CacheCondition
- type CacheConditionType
- type CacheList
- type CacheSpec
- type CacheStatus
- type CacheUpdateSpec
- type CacheUpdateStrategyType
- type Restore
- func (in *Restore) DeepCopy() *Restore
- func (in *Restore) DeepCopyInto(out *Restore)
- func (in *Restore) DeepCopyObject() runtime.Object
- func (r *Restore) Default()
- func (r *Restore) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (b *Restore) StatusError(allErrs field.ErrorList) error
- func (b *Restore) ValidateCreate() error
- func (b *Restore) ValidateDelete() error
- func (b *Restore) ValidateUpdate(old runtime.Object) error
- type RestoreList
- type RestorePhase
- type RestoreResources
- type RestoreSpec
- type RestoreStatus
Constants ¶
This section is empty.
Variables ¶
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 ¶
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
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdminAuth.
func (*AdminAuth) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.
func (*Backup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backup) DeepCopyObject ¶
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 (*Backup) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Backup) ValidateDelete ¶
ValidateDelete 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 (*Batch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Batch.
func (*Batch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Batch) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Batch) SetupWebhookWithManager ¶
func (*Batch) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Batch) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type BatchContainerSpec ¶
type BatchContainerSpec struct { // +optional Memory string `json:"memory,omitempty"` // +optional CPU string `json:"cpu,omitempty"` }
BatchContainerSpec specify resource requirements per container
func (*BatchContainerSpec) CpuResources ¶
func (spec *BatchContainerSpec) CpuResources() (requests resource.Quantity, limits resource.Quantity, err error)
CpuResources returns the CPU request and limit values to be used by Batch pod
func (*BatchContainerSpec) DeepCopy ¶
func (in *BatchContainerSpec) DeepCopy() *BatchContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchContainerSpec.
func (*BatchContainerSpec) DeepCopyInto ¶
func (in *BatchContainerSpec) DeepCopyInto(out *BatchContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BatchContainerSpec) MemoryResources ¶
func (spec *BatchContainerSpec) MemoryResources() (requests resource.Quantity, limits resource.Quantity, err error)
MemoryResources returns the Memory request and limit values to be used by by Batch pod
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchList.
func (*BatchList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BatchList) DeepCopyObject ¶
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"` // +optional // Specify resource requirements per container // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Container Spec" Container *BatchContainerSpec `json:"container,omitempty"` }
BatchSpec defines the desired state of Batch
func (*BatchSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchSpec.
func (*BatchSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cache.
func (*Cache) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cache) DeepCopyObject ¶
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) 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
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheList.
func (*CacheList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CacheList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheSpec.
func (*CacheSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restore.
func (*Restore) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Restore) DeepCopyObject ¶
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 (*Restore) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Restore) ValidateDelete ¶
ValidateDelete 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.