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 ¶
func ExpandTargetKubernetesResources ¶
func ExpandTargetKubernetesResources(data interface{}) (kubernetesResources *policyrecipecustomcommonmodel.VmwareTanzuManageV1alpha1CommonPolicySpecCustomV1TargetKubernetesResources)
func FlattenTargetKubernetesResources ¶
func FlattenTargetKubernetesResources(kubernetesResources *policyrecipecustomcommonmodel.VmwareTanzuManageV1alpha1CommonPolicySpecCustomV1TargetKubernetesResources) (data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.