Class NodeConfigStatus.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.NodeConfigStatus.Builder
-
- Enclosing class:
- NodeConfigStatus
public static class NodeConfigStatus.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeConfigStatus.Builder
active(NodeConfigSource active)
NodeConfigStatus.Builder
assigned(NodeConfigSource assigned)
NodeConfigStatus
build()
NodeConfigStatus.Builder
error(java.lang.String error)
Error describes any problems reconciling the Spec.ConfigSource to the Active config.NodeConfigStatus.Builder
lastKnownGood(NodeConfigSource lastKnownGood)
java.lang.String
toString()
-
-
-
Method Detail
-
active
public NodeConfigStatus.Builder active(NodeConfigSource active)
- Returns:
this
.
-
assigned
public NodeConfigStatus.Builder assigned(NodeConfigSource assigned)
- Returns:
this
.
-
error
public NodeConfigStatus.Builder error(java.lang.String error)
Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.- Returns:
this
.
-
lastKnownGood
public NodeConfigStatus.Builder lastKnownGood(NodeConfigSource lastKnownGood)
- Returns:
this
.
-
build
public NodeConfigStatus build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-