MCPcopy
hub / github.com/open-policy-agent/gatekeeper / IsTemplate

Function IsTemplate

pkg/gator/reader/read_resources.go:301–304  ·  view source on GitHub ↗
(u *unstructured.Unstructured)

Source from the content-addressed store, hash-verified

299}
300
301func IsTemplate(u *unstructured.Unstructured) bool {
302 gvk := u.GroupVersionKind()
303 return gvk.Group == templatesv1.SchemeGroupVersion.Group && gvk.Kind == "ConstraintTemplate"
304}
305
306func IsConfig(u *unstructured.Unstructured) bool {
307 gvk := u.GroupVersionKind()

Callers 3

TestFunction · 0.92
TestFunction · 0.92
RunFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestFunction · 0.74
TestFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…