(isArchivingWAL bool, lastFailedWAL string, isWalArchivingDisabled bool)
| 655 | } |
| 656 | |
| 657 | func getWalArchivingStatus(isArchivingWAL bool, lastFailedWAL string, isWalArchivingDisabled bool) string { |
| 658 | switch { |
| 659 | case isWalArchivingDisabled: |
| 660 | return aurora.Yellow("Disabled").String() |
| 661 | case isArchivingWAL: |
| 662 | return aurora.Green("OK").String() |
| 663 | case lastFailedWAL != "": |
| 664 | return aurora.Red("Failing").String() |
| 665 | default: |
| 666 | return aurora.Yellow("Starting Up").String() |
| 667 | } |
| 668 | } |
| 669 | |
| 670 | func (fullStatus *PostgresqlStatus) areReplicationSlotsEnabled() bool { |
| 671 | return fullStatus.Cluster.Spec.ReplicationSlots != nil && |
no test coverage detected