Class RuntimeClassSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.node.v1alpha1.RuntimeClassSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class RuntimeClassSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuntimeClassSpec.Builder
-
Constructor Summary
Constructors Constructor Description RuntimeClassSpec()
RuntimeClassSpec(Overhead overhead, @NonNull java.lang.String runtimeHandler, Scheduling scheduling)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeClassSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
Overhead
getOverhead()
@NonNull java.lang.String
getRuntimeHandler()
RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.Scheduling
getScheduling()
int
hashCode()
void
setOverhead(Overhead overhead)
void
setRuntimeHandler(@NonNull java.lang.String runtimeHandler)
RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.void
setScheduling(Scheduling scheduling)
RuntimeClassSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
RuntimeClassSpec
public RuntimeClassSpec(Overhead overhead, @NonNull @NonNull java.lang.String runtimeHandler, Scheduling scheduling)
-
RuntimeClassSpec
public RuntimeClassSpec()
-
-
Method Detail
-
builder
public static RuntimeClassSpec.Builder builder()
-
toBuilder
public RuntimeClassSpec.Builder toBuilder()
-
getOverhead
public Overhead getOverhead()
-
getRuntimeHandler
@NonNull public @NonNull java.lang.String getRuntimeHandler()
RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
-
getScheduling
public Scheduling getScheduling()
-
setOverhead
public void setOverhead(Overhead overhead)
-
setRuntimeHandler
public void setRuntimeHandler(@NonNull @NonNull java.lang.String runtimeHandler)
RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
-
setScheduling
public void setScheduling(Scheduling scheduling)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-