recipe

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

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{},
	},
}
View Source
var Medium = &schema.Schema{
	Type:        schema.TypeList,
	Description: "The input schema for namespace quota policy medium recipe version v1",
	Optional:    true,
	ForceNew:    true,
	MaxItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{},
	},
}
View Source
var Small = &schema.Schema{
	Type:        schema.TypeList,
	Description: "The input schema for namespace quota policy small recipe version v1",
	Optional:    true,
	ForceNew:    true,
	MaxItems:    1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{},
	},
}

Functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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