Skip to content

Commit 6e25096

Browse files
GrigoryPervakovscanhex12
authored andcommitted
Add server version in the Status. Add warnings on replica version divergence. (#116)
1 parent a878783 commit 6e25096

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

api/v1alpha1/conditions.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const (
5252
ConditionReasonMajorUpdateAvailable ConditionReason = "MajorUpdateAvailable"
5353
ConditionReasonVersionOutdated ConditionReason = "VersionOutdated"
5454
ConditionReasonUpgradeCheckFailed ConditionReason = "UpgradeCheckFailed"
55-
5655
// ConditionTypeReady indicates that cluster is ready to serve client requests.
5756
ConditionTypeReady ConditionType = "Ready"
5857
ClickHouseConditionAllShardsReady ConditionReason = "AllShardsReady"

internal/controller/clickhouse/sync.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,6 @@ func (r *clickhouseReconciler) reconcileConditions(ctx context.Context, log ctrl
732732
if err := r.UpdateUpgradeCondition(ctx, log, r.versionProbe, r.Cluster.Spec.UpgradeChannel); err != nil {
733733
return nil, fmt.Errorf("update VersionUpgraded condition: %w", err)
734734
}
735-
736735
exists := len(r.ReplicaState)
737736
expected := int(r.Cluster.Replicas() * r.Cluster.Shards())
738737

internal/controller/keeper/sync.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ func (r *keeperReconciler) reconcileConditions(ctx context.Context, log ctrlutil
647647
if err := r.UpdateUpgradeCondition(ctx, log, r.versionProbe, r.Cluster.Spec.UpgradeChannel); err != nil {
648648
return nil, fmt.Errorf("update VersionUpgraded condition: %w", err)
649649
}
650-
651650
exists := len(r.ReplicaState)
652651
expected := int(r.Cluster.Replicas())
653652

0 commit comments

Comments
 (0)