aggregator

package
v0.36.0-flux.9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateStatus

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