kubernetes-models
Version:
29 lines (28 loc) • 2.21 kB
TypeScript
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ImageVolumeSource represents a image volume resource.
*/
export interface IImageVolumeSource {
/**
* Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
*
* Possible enum values:
* - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.
* - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.
* - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present
*/
"pullPolicy"?: "Always" | "IfNotPresent" | "Never";
/**
* Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[\*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
*/
"reference"?: string;
}
/**
* ImageVolumeSource represents a image volume resource.
*/
export declare class ImageVolumeSource extends Model<IImageVolumeSource> implements IImageVolumeSource {
"pullPolicy"?: "Always" | "IfNotPresent" | "Never";
"reference"?: string;
constructor(data?: ModelData<IImageVolumeSource>);
}
export { IImageVolumeSource as IIoK8sApiCoreV1ImageVolumeSource, ImageVolumeSource as IoK8sApiCoreV1ImageVolumeSource };