@appsemble/node-utils
Version:
NodeJS utilities used by Appsemble internally.
18 lines (17 loc) • 820 B
TypeScript
import { type CompanionContainerDefinition } from '@appsemble/types';
import { type V1Deployment, type V1Service } from '@kubernetes/client-node';
/**
* Create the spec objects for a service, deployment, and pod.
* Use for a single companion container.
*
* @param definition Companion container properties.
* @param name Name to be used for the service and deployment objects.
* @param appName Name of the app.
* @param appId Id of the app creating the containers.
* @param registry The default container registry to be used.
* @returns `V1Service` and `V1Deployment` spec objects.
*/
export declare function generateDeploymentAndServiceSpecs(definition: CompanionContainerDefinition, name: string, appName: string, appId: string, registry?: string): {
service: V1Service;
deployment: V1Deployment;
};