kubernetes-models
Version:
19 lines (18 loc) • 923 B
TypeScript
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ExecAction describes a "run in container" action.
*/
export interface IExecAction {
/**
* Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*/
"command"?: Array<string>;
}
/**
* ExecAction describes a "run in container" action.
*/
export declare class ExecAction extends Model<IExecAction> implements IExecAction {
"command"?: Array<string>;
constructor(data?: ModelData<IExecAction>);
}
export { IExecAction as IIoK8sApiCoreV1ExecAction, ExecAction as IoK8sApiCoreV1ExecAction };