common

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIGroupsKey = "api_groups"
	KindsKey     = "kinds"
)

Variables

View Source
var TargetKubernetesResourcesSchema = &schema.Schema{
	Type:        schema.TypeList,
	Description: "A list of kubernetes api resources on which the policy will be enforced, identified using apiGroups and kinds.",
	Required:    true,
	MinItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			APIGroupsKey: {
				Type:        schema.TypeList,
				Description: "APIGroup is a group containing the resource type.",
				Required:    true,
				MinItems:    1,
				Elem:        &schema.Schema{Type: schema.TypeString},
			},
			KindsKey: {
				Type:        schema.TypeList,
				Description: "Kind is the name of the object schema (resource type).",
				Required:    true,
				MinItems:    1,
				Elem: &schema.Schema{
					Type: schema.TypeString,
					ValidateFunc: validation.All(
						validation.StringIsNotEmpty,
						validation.StringIsNotWhiteSpace,
					),
				},
			},
		},
	},
}

Functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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