@deploystack/docker-to-iac
Version:
Translate docker run and docker compose file to Infrastructure as Code
18 lines (17 loc) • 745 B
TypeScript
import { DockerImageInfo } from '../parsers/base-parser';
import { DatabaseConfig } from '../config/helm/database-types';
/**
* Gets the Helm chart configuration for a database Docker image, if available
*
* @param image The Docker image info to check
* @returns Database configuration or null if not a supported database
*/
export declare function getHelmDatabaseType(image: DockerImageInfo): DatabaseConfig | null;
/**
* Checks if a Docker image represents a database that should be handled
* as a separate Helm dependency chart
*
* @param image The Docker image info to check
* @returns True if the image is a database that should use a Helm chart
*/
export declare function isHelmManagedDatabase(image: DockerImageInfo): boolean;