Package org.cdk8s.plus23.k8s
Enum IoK8SApiCoreV1ContainerTerminationMessagePolicy
- java.lang.Object
-
- java.lang.Enum<IoK8SApiCoreV1ContainerTerminationMessagePolicy>
-
- org.cdk8s.plus23.k8s.IoK8SApiCoreV1ContainerTerminationMessagePolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<IoK8SApiCoreV1ContainerTerminationMessagePolicy>
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:35.334Z") @Stability(Stable) public enum IoK8SApiCoreV1ContainerTerminationMessagePolicy extends Enum<IoK8SApiCoreV1ContainerTerminationMessagePolicy>
Indicate how the termination message should be populated.File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
Possible enum values:
"FallbackToLogsOnError"
will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents."File"
is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.
Default: File. Cannot be updated.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FALLBACK_TO_LOGS_ON_ERROR
FallbackToLogsOnError.FILE
File.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IoK8SApiCoreV1ContainerTerminationMessagePolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static IoK8SApiCoreV1ContainerTerminationMessagePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FALLBACK_TO_LOGS_ON_ERROR
@Stability(Stable) public static final IoK8SApiCoreV1ContainerTerminationMessagePolicy FALLBACK_TO_LOGS_ON_ERROR
FallbackToLogsOnError.
-
FILE
@Stability(Stable) public static final IoK8SApiCoreV1ContainerTerminationMessagePolicy FILE
File.
-
-
Method Detail
-
values
public static IoK8SApiCoreV1ContainerTerminationMessagePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IoK8SApiCoreV1ContainerTerminationMessagePolicy c : IoK8SApiCoreV1ContainerTerminationMessagePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IoK8SApiCoreV1ContainerTerminationMessagePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-