UNPKG

@kubernetes-models/flux-cd

Version:
39 lines (38 loc) 1.72 kB
import { IComGithubFluxcdKustomizeControllerApiV1SubstituteReference } from "./SubstituteReference.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * PostBuild describes which actions to perform on the YAML manifest * generated by building the kustomize overlay. */ export interface IPostBuild { /** * Substitute holds a map of key/value pairs. * The variables defined in your YAML manifests that match any of the keys * defined in the map will be substituted with the set value. * Includes support for bash string replacement functions * e.g. ${var:=default}, ${var:position} and ${var/substring/replacement}. */ "substitute"?: { [key: string]: string; }; /** * SubstituteFrom holds references to ConfigMaps and Secrets containing * the variables and their values to be substituted in the YAML manifests. * The ConfigMap and the Secret data keys represent the var names, and they * must match the vars declared in the manifests for the substitution to * happen. */ "substituteFrom"?: Array<IComGithubFluxcdKustomizeControllerApiV1SubstituteReference>; } /** * PostBuild describes which actions to perform on the YAML manifest * generated by building the kustomize overlay. */ export declare class PostBuild extends Model<IPostBuild> implements IPostBuild { "substitute"?: { [key: string]: string; }; "substituteFrom"?: Array<IComGithubFluxcdKustomizeControllerApiV1SubstituteReference>; constructor(data?: ModelData<IPostBuild>); } export type { IPostBuild as IComGithubFluxcdKustomizeControllerApiV1PostBuild, PostBuild as ComGithubFluxcdKustomizeControllerApiV1PostBuild };