Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bertinatto committed Sep 26, 2024
1 parent 8532a86 commit 6c22f3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/operator/csidriveroperator/crcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ func (c *CSIDriverOperatorCRController) syncConditions(ctx context.Context, cond
degradedCnd = degradedCnd.WithStatus(operatorapi.ConditionFalse)
}

allConditions := []*applyoperatorv1.OperatorConditionApplyConfiguration{availableCnd, progressingCnd, degradedCnd, upgradeableCnd}
for _, cond := range allConditions {
if cond.Status == nil || len(*cond.Status) == 0 {
klog.Infof("fjb empty status: ---------------------------------------------------: %v", *cond)
}
if cond.Type == nil || len(*cond.Type) == 0 {
klog.Infof("fjb empty type: ---------------------------------------------------: %v", *cond)
}
}

// Create a partial status with conditions and newGeneration
status := applyoperatorv1.OperatorStatus().
WithConditions(
Expand Down

0 comments on commit 6c22f3c

Please sign in to comment.