cel

package
v0.28.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Metrics provides access to validation admission metrics.
	Metrics = newValidationAdmissionMetrics()
)

Functions

This section is empty.

Types

type ValidatingAdmissionPolicyMetrics

type ValidatingAdmissionPolicyMetrics struct {
	// contains filtered or unexported fields
}

ValidatingAdmissionPolicyMetrics aggregates Prometheus metrics related to validation admission control.

func (*ValidatingAdmissionPolicyMetrics) ObserveAdmissionWithError

func (m *ValidatingAdmissionPolicyMetrics) ObserveAdmissionWithError(ctx context.Context, elapsed time.Duration, policy, binding, state string)

ObserveAdmissionWithError observes a policy validation error that was ignored due to failure policy.

func (*ValidatingAdmissionPolicyMetrics) ObserveAudit added in v0.27.0

func (m *ValidatingAdmissionPolicyMetrics) ObserveAudit(ctx context.Context, elapsed time.Duration, policy, binding, state string)

ObserveAudit observes a policy validation audit annotation was published for a validation failure.

func (*ValidatingAdmissionPolicyMetrics) ObserveDefinition

func (m *ValidatingAdmissionPolicyMetrics) ObserveDefinition(ctx context.Context, state, enforcementAction string)

ObserveDefinition observes a policy definition.

func (*ValidatingAdmissionPolicyMetrics) ObserveRejection

func (m *ValidatingAdmissionPolicyMetrics) ObserveRejection(ctx context.Context, elapsed time.Duration, policy, binding, state string)

ObserveRejection observes a policy validation error that was at least one of the reasons for a deny.

func (*ValidatingAdmissionPolicyMetrics) ObserveWarn added in v0.27.0

func (m *ValidatingAdmissionPolicyMetrics) ObserveWarn(ctx context.Context, elapsed time.Duration, policy, binding, state string)

ObserveWarn observes a policy validation warning was published for a validation failure.

func (*ValidatingAdmissionPolicyMetrics) Reset

Reset resets all validation admission-related Prometheus metrics.

Jump to

Keyboard shortcuts

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