Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the multicluster v1alpha1 API group +kubebuilder:object:generate=true +groupName=multicluster.odf.openshift.io
Index ¶
- Constants
- Variables
- type DRType
- type MirrorPeer
- func (in *MirrorPeer) DeepCopy() *MirrorPeer
- func (in *MirrorPeer) DeepCopyInto(out *MirrorPeer)
- func (in *MirrorPeer) DeepCopyObject() runtime.Object
- func (r *MirrorPeer) Default()
- func (r *MirrorPeer) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MirrorPeer) ValidateCreate() (warnings admission.Warnings, err error)
- func (r *MirrorPeer) ValidateDelete() (warnings admission.Warnings, err error)
- func (r *MirrorPeer) ValidateUpdate(old runtime.Object) (warnings admission.Warnings, err error)
- type MirrorPeerList
- type MirrorPeerSpec
- type MirrorPeerStatus
- type PeerRef
- type PhaseType
- type StorageClusterRef
Constants ¶
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "multicluster.odf.openshift.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 MirrorPeer ¶
type MirrorPeer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MirrorPeerSpec `json:"spec,omitempty"` Status MirrorPeerStatus `json:"status,omitempty"` }
MirrorPeer is the Schema for the mirrorpeers API
func (*MirrorPeer) DeepCopy ¶
func (in *MirrorPeer) DeepCopy() *MirrorPeer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorPeer.
func (*MirrorPeer) DeepCopyInto ¶
func (in *MirrorPeer) DeepCopyInto(out *MirrorPeer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MirrorPeer) DeepCopyObject ¶
func (in *MirrorPeer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MirrorPeer) Default ¶
func (r *MirrorPeer) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*MirrorPeer) SetupWebhookWithManager ¶
func (r *MirrorPeer) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MirrorPeer) ValidateCreate ¶
func (r *MirrorPeer) ValidateCreate() (warnings admission.Warnings, err error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MirrorPeer) ValidateDelete ¶
func (r *MirrorPeer) ValidateDelete() (warnings admission.Warnings, err error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MirrorPeer) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MirrorPeerList ¶
type MirrorPeerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MirrorPeer `json:"items"` }
MirrorPeerList contains a list of MirrorPeer
func (*MirrorPeerList) DeepCopy ¶
func (in *MirrorPeerList) DeepCopy() *MirrorPeerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorPeerList.
func (*MirrorPeerList) DeepCopyInto ¶
func (in *MirrorPeerList) DeepCopyInto(out *MirrorPeerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MirrorPeerList) DeepCopyObject ¶
func (in *MirrorPeerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MirrorPeerSpec ¶
type MirrorPeerSpec struct { // Type represents the mode of DR operation (sync or async) // +kubebuilder:default=async // +kubebuilder:validation:Enum=async;sync Type DRType `json:"type"` // Items is a list of PeerRef. // +kubebuilder:validation:MaxItems=2 // +kubebuilder:validation:MinItems=2 Items []PeerRef `json:"items"` // SchedulingIntervals is a list of intervals at which mirroring snapshots are taken. // DEPRECATED : Any changes to this field will not affect the cluster state. Use DRPolicy.Spec.SchedulingInterval instead. // +kubebuilder:validation:Optional SchedulingIntervals []string `json:"schedulingIntervals,omitempty" deprecated:"true"` // +kubebuilder:validation:Optional // +kubebuilder:default=false ManageS3 bool `json:"manageS3,omitempty"` // OverlappingCIDR should be set to true if the peer clusters // have overlapping Pod or Service CIDR. This will enable storage // clusters to use submariner globalnet. Enabling this will cause // storage service disruption while network is being reconfigured. // +kubebuilder:validation:Optional // +kubebuilder:default=false OverlappingCIDR bool `json:"overlappingCIDR,omitempty"` }
MirrorPeerSpec defines the desired state of MirrorPeer
func (*MirrorPeerSpec) DeepCopy ¶
func (in *MirrorPeerSpec) DeepCopy() *MirrorPeerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorPeerSpec.
func (*MirrorPeerSpec) DeepCopyInto ¶
func (in *MirrorPeerSpec) DeepCopyInto(out *MirrorPeerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MirrorPeerStatus ¶
type MirrorPeerStatus struct { Phase PhaseType `json:"phase,omitempty"` Message string `json:"message,omitempty"` }
MirrorPeerStatus defines the observed state of MirrorPeer
func (*MirrorPeerStatus) DeepCopy ¶
func (in *MirrorPeerStatus) DeepCopy() *MirrorPeerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorPeerStatus.
func (*MirrorPeerStatus) DeepCopyInto ¶
func (in *MirrorPeerStatus) DeepCopyInto(out *MirrorPeerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeerRef ¶
type PeerRef struct { // ClusterName is the name of ManagedCluster. // ManagedCluster matching this name is considered // a peer cluster. ClusterName string `json:"clusterName"` // StorageClusterRef holds a reference to StorageCluster object StorageClusterRef StorageClusterRef `json:"storageClusterRef"` }
PeerRef holds a reference to a mirror peer
func (*PeerRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerRef.
func (*PeerRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClusterRef ¶
StorageClusterRef holds a reference to a StorageCluster
func (*StorageClusterRef) DeepCopy ¶
func (in *StorageClusterRef) DeepCopy() *StorageClusterRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClusterRef.
func (*StorageClusterRef) DeepCopyInto ¶
func (in *StorageClusterRef) DeepCopyInto(out *StorageClusterRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.