Documentation ¶
Index ¶
Constants ¶
View Source
const ( SmallKey = "small" MediumKey = "medium" LargeKey = "large" CustomKey = "custom" LimitsCPUKey = "limits_cpu" LimitsMemoryKey = "limits_memory" PersistentVolumeClaimsKey = "persistent_volume_claims" PersistentVolumeClaimsPerClassKey = "persistent_volume_claims_per_class" RequestsCPUKey = "requests_cpu" RequestsMemoryKey = "requests_memory" RequestsStorageKey = "requests_storage" RequestsStoragePerClassKey = "requests_storage_per_class" ResourceCountsKey = "resource_counts" )
Variables ¶
View Source
var Custom = &schema.Schema{ Type: schema.TypeList, Description: "The input schema for namespace quota policy custom recipe version v1", Optional: true, ForceNew: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ LimitsCPUKey: { Type: schema.TypeString, Description: "The sum of CPU limits across all pods in a non-terminal state cannot exceed this value", Optional: true, }, LimitsMemoryKey: { Type: schema.TypeString, Description: "The sum of memory limits across all pods in a non-terminal state cannot exceed this value", Optional: true, }, PersistentVolumeClaimsKey: { Type: schema.TypeInt, Description: "The total number of PersistentVolumeClaims that can exist in a namespace", Optional: true, }, PersistentVolumeClaimsPerClassKey: { Type: schema.TypeMap, Description: "Across all persistent volume claims associated with each storage class, the total number of persistent volume claims that can exist in the namespace", Optional: true, Elem: &schema.Schema{Type: schema.TypeInt}, }, RequestsCPUKey: { Type: schema.TypeString, Description: "The sum of CPU requests across all pods in a non-terminal state cannot exceed this value", Optional: true, }, RequestsMemoryKey: { Type: schema.TypeString, Description: "The sum of memory requests across all pods in a non-terminal state cannot exceed this value", Optional: true, }, RequestsStorageKey: { Type: schema.TypeString, Description: "The sum of storage requests across all persistent volume claims cannot exceed this value", Optional: true, }, RequestsStoragePerClassKey: { Type: schema.TypeMap, Description: "Across all persistent volume claims associated with each storage class, the sum of storage requests cannot exceed this value", Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, }, ResourceCountsKey: { Type: schema.TypeMap, Description: "The total number of Services of the given type that can exist in a namespace", Optional: true, Elem: &schema.Schema{Type: schema.TypeInt}, }, }, }, }
View Source
var Large = &schema.Schema{ Type: schema.TypeList, Description: "The input schema for namespace quota policy large recipe version v1", Optional: true, ForceNew: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{}, }, }
Functions ¶
func ConstructCustom ¶
func ConstructCustom(data []interface{}) (custom *policyrecipequotamodel.VmwareTanzuManageV1alpha1CommonPolicySpecQuotaV1Custom)
func FlattenCustom ¶
func FlattenCustom(custom *policyrecipequotamodel.VmwareTanzuManageV1alpha1CommonPolicySpecQuotaV1Custom) (data []interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.