IsComplete checks the PostgreSQL status list for Pods which contain errors. Returns true if everything is green and false otherwise
()
| 378 | // contain errors. Returns true if everything is green and |
| 379 | // false otherwise |
| 380 | func (list PostgresqlStatusList) IsComplete() bool { |
| 381 | for idx := range list.Items { |
| 382 | if list.Items[idx].Error != nil { |
| 383 | return false |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | return true |
| 388 | } |
| 389 | |
| 390 | // ArePodsUpgradingInstanceManager checks if there are pods on which we are upgrading the instance manager |
| 391 | func (list PostgresqlStatusList) ArePodsUpgradingInstanceManager() bool { |
no outgoing calls
no test coverage detected