UNPKG

@atomist/atomist-sdm

Version:

Atomist SDM to deliver our own projects

30 lines (29 loc) 1.27 kB
import { GitProject } from "@atomist/automation-client"; import { SdmGoalEvent } from "@atomist/sdm"; import { KubernetesApplication, KubernetesDeploy } from "@atomist/sdm-pack-k8s"; export declare const kubernetesDeployRegistrationProd: { name: string; applicationData: typeof kubernetesApplicationData; }; export declare const kubernetesDeployRegistrationGlobal: { name: string; applicationData: typeof kubernetesApplicationData; }; export declare const kubernetesDeployRegistrationDemo: { name: string; applicationData: typeof kubernetesApplicationData; }; /** * Augment default Kubernetes application object with specifics for * the provided deploy goal event. */ export declare function kubernetesApplicationData(app: KubernetesApplication, p: GitProject, goal: KubernetesDeploy, goalEvent: SdmGoalEvent): Promise<KubernetesApplication>; /** * Determine if this deploy requires an ingress, returning it if is * does. * * @param repo Name of repository. * @param ns Kubernetes namespace where app will be deployed. * @return Object with ingress-related properties of KubernetesApplication populated or `undefined`. */ export declare function ingressFromGoal(repo: string, ns: string): Partial<KubernetesApplication> | undefined;