Skip to content

Show inactive status on constraints #4305

@grosser

Description

@grosser

Describe the solution you'd like
a status.active:false field on constraints and constrainttemplates that are not active

Anything else you would like to add:

We got alerted by this metric that a constraint is inactive, but there was no obvious way of finding it without digging through the logs

Environment:

  • Gatekeeper version: 3.21.0
  • Kubernetes version: (use kubectl version): 1.33

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions