aggregator

package
v0.31.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateStatus added in v0.7.0

func AggregateStatus(rss []*event.ResourceStatus, desired status.Status) status.Status

AggregateStatus computes the aggregate status for all the resources. The rules are the following:

  • If any of the resources has the FailedStatus, the aggregate status is also FailedStatus
  • If none of the resources have the FailedStatus and at least one is UnknownStatus, the aggregate status is UnknownStatus
  • If all the resources have the desired status, the aggregate status is the desired status.
  • If none of the first three rules apply, the aggregate status is InProgressStatus

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL