MCPcopy Index your code
hub / github.com/cloudnative-pg/cloudnative-pg / IsComplete

Method IsComplete

pkg/postgres/status.go:380–388  ·  view source on GitHub ↗

IsComplete checks the PostgreSQL status list for Pods which contain errors. Returns true if everything is green and false otherwise

()

Source from the content-addressed store, hash-verified

378// contain errors. Returns true if everything is green and
379// false otherwise
380func (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
391func (list PostgresqlStatusList) ArePodsUpgradingInstanceManager() bool {

Callers 2

status_test.goFile · 0.80
reconcilePodsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected