@deploystack/docker-to-iac
Version:
Translate docker run and docker compose file to Infrastructure as Code
47 lines (46 loc) • 1.48 kB
TypeScript
import { BaseParser, ParserInfo, TemplateFormat } from './base-parser';
import { ApplicationConfig, FileOutput } from '../types/container-config';
declare class HelmParser extends BaseParser {
parse(config: ApplicationConfig, templateFormat?: TemplateFormat): any;
parseFiles(config: ApplicationConfig): {
[path: string]: FileOutput;
};
private generateChartYaml;
private generateValuesYaml;
/**
* Categorizes environment variables into regular and sensitive
* This allows Helm to separate them into ConfigMaps and Secrets
*/
private categorizeEnvironmentVariables;
/**
* Sanitizes a string to be used as a Kubernetes resource name
*/
private sanitizeKubernetesName;
/**
* Generates the Kubernetes Deployment template for Helm
*/
private generateDeploymentTemplate;
/**
* Generates the Kubernetes Service template for Helm
*/
private generateServiceTemplate;
/**
* Generates the Kubernetes ConfigMap template for Helm
*/
private generateConfigMapTemplate;
/**
* Generates the Kubernetes Secret template for Helm
*/
private generateSecretTemplate;
/**
* Generates the NOTES.txt template for Helm
*/
private generateNotesTemplate;
/**
* Generates the _helpers.tpl template for Helm
*/
private generateHelpersTemplate;
getInfo(): ParserInfo;
}
declare const _default: HelmParser;
export default _default;