import type { IIoK8sApiCoreV1Container } from "kubernetes-models/_definitions/IoK8sApiCoreV1Container"; import { Deployment } from "kubernetes-models/apps/v1/Deployment"; import type { ILocalObjectReference, IVolume } from "kubernetes-models/v1"; /** Parameters to create a [[Deployment]] with [[createDeployment]] */ export interface DeploymentParams { /** kubernetes annotations */ annotations?: Record; /** container params */ container?: Omit; /** default container port */ containerPort: number; /** deployment docker image */ image?: string; /** kubernetes labels */ labels?: Record; /** deployment name **/ name: string; /** docker registry secrets */ imagePullSecrets?: ILocalObjectReference[]; /** volumes */ volumes?: IVolume[]; /** registry */ registry: string; /** git tag */ tag?: string; /** git sha */ sha: string; } /** * * This function will return a [[Deployment]] with some defaults * * ```typescript * import { createDeployment } from "@socialgouv/kosko-charts/utils" * * const deployment = createDeployment({ * name: "app"; * image: "containous/whoami:latest" * }); * ``` * @category utils * @return {Deployment} */ export declare const createDeployment: (params: DeploymentParams) => Deployment; export default createDeployment;