custompolicytemplate

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

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

func ResourceCustomPolicyTemplate

func ResourceCustomPolicyTemplate() *schema.Resource

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL