Documentation ¶
Overview ¶
Package constrainttemplate includes a controller and reconciler for PolicyController constraint templates.
Index ¶
Constants ¶
View Source
const (
// TemplatesGroup is the api group for gatekeeper constraint templates
TemplatesGroup = "templates.gatekeeper.sh"
)
Variables ¶
View Source
var (
// GVK is the GVK for gatekeeper ConstraintTemplates.
GVK = gk.WithVersion("v1beta1")
)
Functions ¶
func AddController ¶
AddController adds the ConstraintTemplate controller to the given Manager.
func EmptyConstraintTemplate ¶
func EmptyConstraintTemplate() unstructured.Unstructured
EmptyConstraintTemplate returns an empty ConstraintTemplate.
func MatchesGK ¶
func MatchesGK(crd *apiextensionsv1.CustomResourceDefinition) bool
MatchesGK returns true if the given CRD defines the gatekeeper ConstraintTemplate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.