package
3.19.0-beta.1
Repository: https://github.com/open-policy-agent/gatekeeper.git
Documentation: pkg.go.dev

# Functions

Takes a CompactSyncRequirements (the json form provided in the template annotation) and expands it into a SyncRequirements.
Takes a GVK Clause and expands it into a GVKEquivalenceSet (to be unioned with the GVKEquivalenceSet expansions of the other clauses).
ReadSyncRequirements parses the sync requirements from a constraint template.

# Constants

syncAnnotationName is the name of the annotation that stores GVKS that are required to be synced.

# Structs

GVKClause contains a set of equivalent GVKs, expressed in the form [groups, versions, kinds] where any combination of items from these three fields can be considered a valid option.

# Type aliases

CompactSyncRequirements contains a list of ANDed requirements, each of which contains a list of GVK clauses.
GVKEquivalenceSet is a set of GVKs that a template can use interchangeably in its referential policy implementation.
SyncRequirements contains a list of ANDed requirements, each of which contains a GVK equivalence set.