You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"kubernetes_priority_class" {
source="./modules/kubernetes/r/kubernetes_priority_class"# description - (optional) is a type of stringdescription=null# global_default - (optional) is a type of boolglobal_default=null# value - (required) is a type of numbervalue=nullmetadata=[{
annotations = {}
generate_name =null
generation =null
labels = {}
name =null
resource_version =null
self_link =null
uid =null
}]
}
variable"description" {
description="(optional) - An arbitrary string that usually provides guidelines on when this priority class should be used."type=stringdefault=null
}
variable"global_default" {
description="(optional) - Specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority."type=booldefault=null
}
variable"value" {
description="(required) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec."type=number
}
variable"metadata" {
description="nested block: NestingList, min items: 1, max items: 1"type=set(object(
{
annotations =map(string)
generate_name =string
generation =number
labels =map(string)
name =string
resource_version =string
self_link =string
uid =string
}
))
}
resource"kubernetes_priority_class""this" {
# description - (optional) is a type of stringdescription=var.description# global_default - (optional) is a type of boolglobal_default=var.global_default# value - (required) is a type of numbervalue=var.valuedynamic"metadata" {
for_each=var.metadatacontent {
# annotations - (optional) is a type of map of stringannotations=metadata.value["annotations"]
# generate_name - (optional) is a type of stringgenerate_name=metadata.value["generate_name"]
# labels - (optional) is a type of map of stringlabels=metadata.value["labels"]
# name - (optional) is a type of stringname=metadata.value["name"]
}
}
}