@@ -50,8 +50,6 @@ type MemberStatus struct {
5050 Phase MemberPhase `json:"phase"`
5151 // CreatedAt holds the creation timestamp of this member.
5252 CreatedAt meta.Time `json:"created-at"`
53- // PersistentVolumeClaimName holds the name of the persistent volume claim used for this member (if any).
54- PersistentVolumeClaimName string `json:"persistentVolumeClaimName,omitempty"`
5553 // Conditions specific to this member
5654 Conditions ConditionList `json:"conditions,omitempty"`
5755 // RecentTerminatons holds the times when this member was recently terminated.
@@ -81,6 +79,12 @@ type MemberStatus struct {
8179 Pod * MemberPodStatus `json:"pod,omitempty"`
8280 SecondaryPod * MemberPodStatus `json:"secondaryPod,omitempty"`
8381
82+ // PersistentVolumeClaim keeps information about PVC for Primary Pod
83+ PersistentVolumeClaim * MemberPersistentVolumeClaimStatus `json:"persistentVolumeClaim,omitempty"`
84+
85+ // SecondaryPersistentVolumeClaim keeps information about PVC for SecondaryPod
86+ SecondaryPersistentVolumeClaim * MemberPersistentVolumeClaimStatus `json:"secondaryPersistentVolumeClaim,omitempty"`
87+
8488 // deprecated
8589 // SideCarSpecs contains list of specifications specified for side cars
8690 SideCarSpecs map [string ]core.Container `json:"sidecars-specs,omitempty"`
@@ -93,6 +97,9 @@ type MemberStatus struct {
9397 // deprecated
9498 // PodSpecVersion holds the checksum of Pod spec that currently runs this member. Used to rotate pods
9599 PodSpecVersion string `json:"podSpecVersion,omitempty"`
100+ // deprecated
101+ // PersistentVolumeClaimName holds the name of the persistent volume claim used for this member (if any).
102+ PersistentVolumeClaimName string `json:"persistentVolumeClaimName,omitempty"`
96103}
97104
98105// Equal checks for equality
@@ -103,7 +110,8 @@ func (s MemberStatus) Equal(other MemberStatus) bool {
103110 s .ClusterID == other .ClusterID &&
104111 s .Phase == other .Phase &&
105112 util .TimeCompareEqual (s .CreatedAt , other .CreatedAt ) &&
106- s .PersistentVolumeClaimName == other .PersistentVolumeClaimName &&
113+ s .PersistentVolumeClaim .Equal (other .PersistentVolumeClaim ) &&
114+ s .SecondaryPersistentVolumeClaim .Equal (other .SecondaryPersistentVolumeClaim ) &&
107115 s .Pod .Equal (other .Pod ) &&
108116 s .SecondaryPod .Equal (other .SecondaryPod ) &&
109117 s .Conditions .Equal (other .Conditions ) &&
0 commit comments