Class RuntimeClass
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.node.v1.RuntimeClass
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class RuntimeClass extends java.lang.Object implements com.marcnuri.yakc.model.Model
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuntimeClass.Builder
-
Constructor Summary
Constructors Constructor Description RuntimeClass()
RuntimeClass(java.lang.String apiVersion, @NonNull java.lang.String handler, java.lang.String kind, ObjectMeta metadata, Overhead overhead, Scheduling scheduling)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeClass.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getApiVersion()
APIVersion defines the versioned schema of this representation of an object.@NonNull java.lang.String
getHandler()
handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.java.lang.String
getKind()
Kind is a string value representing the REST resource this object represents.ObjectMeta
getMetadata()
Overhead
getOverhead()
Scheduling
getScheduling()
int
hashCode()
void
setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.void
setHandler(@NonNull java.lang.String handler)
handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.void
setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.void
setMetadata(ObjectMeta metadata)
void
setOverhead(Overhead overhead)
void
setScheduling(Scheduling scheduling)
RuntimeClass.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
RuntimeClass
public RuntimeClass(java.lang.String apiVersion, @NonNull @NonNull java.lang.String handler, java.lang.String kind, ObjectMeta metadata, Overhead overhead, Scheduling scheduling)
-
RuntimeClass
public RuntimeClass()
-
-
Method Detail
-
builder
public static RuntimeClass.Builder builder()
-
toBuilder
public RuntimeClass.Builder toBuilder()
-
getApiVersion
public java.lang.String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
getHandler
@NonNull public @NonNull java.lang.String getHandler()
handler 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 Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
-
getKind
public java.lang.String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMetadata
public ObjectMeta getMetadata()
-
getOverhead
public Overhead getOverhead()
-
getScheduling
public Scheduling getScheduling()
-
setApiVersion
public void setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
setHandler
public void setHandler(@NonNull @NonNull java.lang.String handler)
handler 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 Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
-
setKind
public void setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setMetadata
public void setMetadata(ObjectMeta metadata)
-
setOverhead
public void setOverhead(Overhead overhead)
-
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
-
-