policykindcustom

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceName = "tanzu-mission-control_custom_policy"
)

Variables

View Source
var SpecSchema = &schema.Schema{
	Type:        schema.TypeList,
	Description: "Spec for the custom policy",
	Required:    true,
	MaxItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{
			policy.InputKey:             inputSchema,
			policy.NamespaceSelectorKey: policy.NamespaceSelector,
		},
	},
}

Functions

func FlattenSpec

func FlattenSpec(spec *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec) (data []interface{})

func ValidateInput

func ValidateInput(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error

Types

type Recipe

type Recipe string
const (
	UnknownRecipe                     Recipe = policy.UnknownRecipe
	TMCBlockNodeportServiceRecipe     Recipe = reciperesource.TMCBlockNodeportServiceKey
	TMCBlockResourcesRecipe           Recipe = reciperesource.TMCBlockResourcesKey
	TMCBlockRolebindingSubjectsRecipe Recipe = reciperesource.TMCBlockRolebindingSubjectsKey
	TMCExternalIPSRecipe              Recipe = reciperesource.TMCExternalIPSKey
	TMCHTTPSIngressRecipe             Recipe = reciperesource.TMCHTTPSIngressKey
	TMCRequireLabelsRecipe            Recipe = reciperesource.TMCRequireLabelsKey
)

Allowed input recipes.

Directories

Path Synopsis
Package recipe contains schema and helper functions for different input recipes.
Package recipe contains schema and helper functions for different input recipes.

Jump to

Keyboard shortcuts

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