kubernetes-models
Version:
59 lines (58 loc) • 2.06 kB
TypeScript
import { IIoK8sApiCoreV1ContainerState } from "./ContainerState";
import { Model } from "@kubernetes-models/base";
/**
* ContainerStatus contains details for the current status of this container.
*/
export interface IContainerStatus {
/**
* Container's ID in the format '<type>://<container_id>'.
*/
"containerID"?: string;
/**
* The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.
*/
"image": string;
/**
* ImageID of the container's image.
*/
"imageID": string;
/**
* Details about the container's last termination condition.
*/
"lastState"?: IIoK8sApiCoreV1ContainerState;
/**
* This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.
*/
"name": string;
/**
* Specifies whether the container has passed its readiness probe.
*/
"ready": boolean;
/**
* The number of times the container has been restarted.
*/
"restartCount": number;
/**
* Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.
*/
"started"?: boolean;
/**
* Details about the container's current condition.
*/
"state"?: IIoK8sApiCoreV1ContainerState;
}
/**
* ContainerStatus contains details for the current status of this container.
*/
export declare class ContainerStatus extends Model<IContainerStatus> implements IContainerStatus {
"containerID"?: string;
"image": string;
"imageID": string;
"lastState"?: IIoK8sApiCoreV1ContainerState;
"name": string;
"ready": boolean;
"restartCount": number;
"started"?: boolean;
"state"?: IIoK8sApiCoreV1ContainerState;
}
export { IContainerStatus as IIoK8sApiCoreV1ContainerStatus, ContainerStatus as IoK8sApiCoreV1ContainerStatus };