com.coralogix.zio.k8s.model.policy.v1beta1
RuntimeClassStrategyOptions
Companion object RuntimeClassStrategyOptions
case class RuntimeClassStrategyOptions(allowedRuntimeClassNames: Vector[String], defaultRuntimeClassName: Optional[String] = Optional.Absent) extends Product with Serializable
RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.
- allowedRuntimeClassNames
allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.
- defaultRuntimeClassName
defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.
- Alphabetic
- By Inheritance
- RuntimeClassStrategyOptions
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RuntimeClassStrategyOptions(allowedRuntimeClassNames: Vector[String], defaultRuntimeClassName: Optional[String] = Optional.Absent)
- allowedRuntimeClassNames
allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.
- defaultRuntimeClassName
defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.
Value Members
- val allowedRuntimeClassNames: Vector[String]
- val defaultRuntimeClassName: Optional[String]
-
def
getAllowedRuntimeClassNames: IO[K8sFailure, Vector[String]]
allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.
This effect always succeeds, it is safe to use the field allowedRuntimeClassNames directly.
-
def
getDefaultRuntimeClassName: IO[K8sFailure, String]
defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.