Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllStatuses = []Status{ActiveStatus, ErrorStatus}
AllStatuses is the set of all allowed values of Status.
var AllVAPStatuses = []VAPStatus{VAPStatusActive, VAPStatusError}
AllVAPStatuses is the set of all allowed values of VAPStatus.
Functions ¶
func AddToManager ¶
func DisableRESTClientMetrics ¶
func DisableRESTClientMetrics()
DisableRESTClientMetrics disables the rest client latency histograms configured by controller-runtime in sigs.k8s.io/controller-runtime/pkg/metrics/client_go_adapter.go#registerClientMetrics.
Types ¶
type Status ¶
type Status string
Status is whether a ConstraintTemplate is functioning properly. Reported in metrics.
type VAPStatus ¶ added in v3.22.0
type VAPStatus string
VAPStatus represents the status of a VAP resource. Reported in metrics.
type VAPStatusRegistry ¶ added in v3.22.0
type VAPStatusRegistry struct {
// contains filtered or unexported fields
}
VAPStatusRegistry tracks VAP/VAPB resources by their status for accurate counting. This is a thread-safe registry that can be used by both constraint and constrainttemplate controllers to track VAP-related resource statuses.
func NewVAPStatusRegistry ¶ added in v3.22.0
func NewVAPStatusRegistry() *VAPStatusRegistry
NewVAPStatusRegistry creates a new VAPStatusRegistry instance.
func (*VAPStatusRegistry) Add ¶ added in v3.22.0
func (r *VAPStatusRegistry) Add(key types.NamespacedName, status VAPStatus)
Add adds or updates a resource's status in the registry. If the resource already exists with the same status, this is a no-op.
func (*VAPStatusRegistry) ComputeTotals ¶ added in v3.22.0
func (r *VAPStatusRegistry) ComputeTotals() map[VAPStatus]int64
ComputeTotals returns the count of resources for each status.
func (*VAPStatusRegistry) Remove ¶ added in v3.22.0
func (r *VAPStatusRegistry) Remove(key types.NamespacedName)
Remove removes a resource from the registry.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
exporters
|
|
|
Package registry provides a dynamic registry of available exporters.
|
Package registry provides a dynamic registry of available exporters. |