Skip to content

Commit ef9e210

Browse files
nmarukovichhors
andauthored
K8SPG-748 fix statuses (#1285)
Co-authored-by: Viacheslav Sarzhan <slava.sarzhan@percona.com>
1 parent c0a3088 commit ef9e210

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

percona/controller/pgcluster/status.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ func updateConditions(cr *v2.PerconaPGCluster, status *v1beta1.PostgresClusterSt
146146
}
147147
}
148148

149+
syncConditionsFromPostgresToPercona(cr, status)
150+
151+
syncPatroniFromPostgresToPercona(cr, status)
152+
153+
syncPgbackrestFromPostgresToPercona(cr, status)
154+
149155
repoCondition := meta.FindStatusCondition(status.Conditions, postgrescluster.ConditionRepoHostReady)
150156
if repoCondition == nil || repoCondition.Status != metav1.ConditionTrue {
151157
setClusterNotReadyCondition(metav1.ConditionFalse, postgrescluster.ConditionRepoHostReady)
@@ -160,12 +166,6 @@ func updateConditions(cr *v2.PerconaPGCluster, status *v1beta1.PostgresClusterSt
160166

161167
setClusterNotReadyCondition(metav1.ConditionTrue, "AllConditionsAreTrue")
162168

163-
syncConditionsFromPostgresToPercona(cr, status)
164-
165-
syncPatroniFromPostgresToPercona(cr, status)
166-
167-
syncPgbackrestFromPostgresToPercona(cr, status)
168-
169169
}
170170

171171
func syncConditionsFromPostgresToPercona(cr *v2.PerconaPGCluster, postgresStatus *v1beta1.PostgresClusterStatus) {

0 commit comments

Comments
 (0)