import type { Deployment } from "kubernetes-models/apps/v1/Deployment"; import { Container } from "kubernetes-models/v1/Container"; /** * * This function will add an initContainer with the given params to a given [[Deployment]] * * By default the initContainer will use the [[Deployment]] first [[Container]] image as image * * ```typescript * import { addInitContainerCommand } from "@socialgouv/kosko-charts/utils" * * const initContainerCommand = { * command: ["yarn"], * args: ["init-db"], * name: `yarn-init-db`, * }; * * addInitContainerCommand(deployment, initContainerCommand); * ``` * @category utils * @return {Deployment} */ export declare const addInitContainerCommand: (deployment: Deployment, container: Partial) => Deployment;