Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceName = "tanzu-mission-control_custom_policy_template" // Root Keys. NameKey = "name" SpecKey = "spec" // Spec Directive Keys. IsDeprecatedKey = "is_deprecated" DataInventoryKey = "data_inventory" TemplateManifestKey = "template_manifest" ObjectTypeKey = "object_type" TemplateTypeKey = "template_type" // Data Inventory Directive Keys. GroupKey = "group" VersionKey = "version" KindKey = "kind" )
Variables ¶
View Source
var DataInventorySchema = &schema.Schema{ Type: schema.TypeList, Description: "List of Kubernetes api-resource kinds that need to be synced/replicated in Gatekeeper in order to enforce policy rules on those resources.\nNote: This is used for OPAGatekeeper based templates, and should be used if the policy enforcement logic in Rego code uses cached data using \"data.inventory\" fields.", Optional: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ GroupKey: { Type: schema.TypeString, Description: "API resource group", Required: true, }, KindKey: { Type: schema.TypeString, Description: "API resource kind", Required: true, }, VersionKey: { Type: schema.TypeString, Description: "API resource version", Required: true, }, }, }, }
Functions ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.