@@ -21,36 +21,36 @@ import (
2121 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222)
2323
24- // ReplicationState represents the replication operations to be performed on the volume
24+ // ReplicationState represents the replication operations to be performed on the volume.
2525// +kubebuilder:validation:Enum=primary;secondary;resync
2626type ReplicationState string
2727
2828const (
29- // Primary ReplicationState enables mirroring and promotes the volume to primary
29+ // Primary ReplicationState enables mirroring and promotes the volume to primary.
3030 Primary ReplicationState = "primary"
3131
32- // Secondary ReplicationState demotes the volume to secondary and resyncs the volume if out of sync
32+ // Secondary ReplicationState demotes the volume to secondary and resyncs the volume if out of sync.
3333 Secondary ReplicationState = "secondary"
3434
35- // Resync option resyncs the volume
35+ // Resync option resyncs the volume.
3636 Resync ReplicationState = "resync"
3737)
3838
39- // State captures the latest state of the replication operation
39+ // State captures the latest state of the replication operation.
4040type State string
4141
4242const (
43- // PrimaryState represents the Primary replication state
43+ // PrimaryState represents the Primary replication state.
4444 PrimaryState State = "Primary"
4545
46- // SecondaryState represents the Secondary replication state
46+ // SecondaryState represents the Secondary replication state.
4747 SecondaryState State = "Secondary"
4848
49- // UnknownState represents the Unknown replication state
49+ // UnknownState represents the Unknown replication state.
5050 UnknownState State = "Unknown"
5151)
5252
53- // VolumeReplicationSpec defines the desired state of VolumeReplication
53+ // VolumeReplicationSpec defines the desired state of VolumeReplication.
5454type VolumeReplicationSpec struct {
5555 // VolumeReplicationClass is the VolumeReplicationClass name for this VolumeReplication resource
5656 // +kubebuilder:validation:Required
@@ -70,7 +70,7 @@ type VolumeReplicationSpec struct {
7070 ReplicationHandle string `json:"replicationHandle"`
7171}
7272
73- // VolumeReplicationStatus defines the observed state of VolumeReplication
73+ // VolumeReplicationStatus defines the observed state of VolumeReplication.
7474type VolumeReplicationStatus struct {
7575 State State `json:"state,omitempty"`
7676 Message string `json:"message,omitempty"`
@@ -92,7 +92,7 @@ type VolumeReplicationStatus struct {
9292// +kubebuilder:printcolumn:JSONPath=".status.state",name=currentState,type=string
9393// +kubebuilder:resource:shortName=vr
9494
95- // VolumeReplication is the Schema for the volumereplications API
95+ // VolumeReplication is the Schema for the volumereplications API.
9696type VolumeReplication struct {
9797 metav1.TypeMeta `json:",inline"`
9898 metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -103,7 +103,7 @@ type VolumeReplication struct {
103103
104104// +kubebuilder:object:root=true
105105
106- // VolumeReplicationList contains a list of VolumeReplication
106+ // VolumeReplicationList contains a list of VolumeReplication.
107107type VolumeReplicationList struct {
108108 metav1.TypeMeta `json:",inline"`
109109 metav1.ListMeta `json:"metadata,omitempty"`
0 commit comments