UNPKG

kubernetes-models

Version:
31 lines (30 loc) 1.75 kB
import { ModelData, Model } from "@kubernetes-models/base"; /** * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ export interface ISeccompProfile { /** * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. */ "localhostProfile"?: string; /** * type indicates which kind of seccomp profile will be applied. Valid options are: * * Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. * * Possible enum values: * - `"Localhost"` indicates a profile defined in a file on the node should be used. The file's location relative to <kubelet-root-dir>/seccomp. * - `"RuntimeDefault"` represents the default container runtime seccomp profile. * - `"Unconfined"` indicates no seccomp profile is applied (A.K.A. unconfined). */ "type": "Localhost" | "RuntimeDefault" | "Unconfined"; } /** * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ export declare class SeccompProfile extends Model<ISeccompProfile> implements ISeccompProfile { "localhostProfile"?: string; "type": "Localhost" | "RuntimeDefault" | "Unconfined"; constructor(data?: ModelData<ISeccompProfile>); } export { ISeccompProfile as IIoK8sApiCoreV1SeccompProfile, SeccompProfile as IoK8sApiCoreV1SeccompProfile };