Skip to main content

chart_name_for

Function chart_name_for 

Source
pub fn chart_name_for(project: &str, export: Option<&ExportConfig>) -> String
Expand description

Returns the Helm chart name.

If export.helm.chart_name is set, it is returned. Otherwise the project name is used.

use lightshuttle_export::resolve::chart_name_for;

assert_eq!(chart_name_for("my-project", None), "my-project");