1
0
mirror of synced 2026-02-13 13:06:56 +00:00

fix: #5654 by check if both --chart and --chart-ref are set

Signed-off-by: Jesper Axelsen <jesperbaxelsen@gmail.com>
This commit is contained in:
Jesper Axelsen
2025-12-10 21:46:50 +01:00
parent 9b76ba19a8
commit 3fb05a604f
2 changed files with 9 additions and 0 deletions

View File

@@ -182,6 +182,10 @@ func createHelmReleaseCmdRun(cmd *cobra.Command, args []string) error {
return fmt.Errorf("chart or chart-ref is required")
}
if helmReleaseArgs.chart != "" && helmReleaseArgs.chartRef != "" {
return fmt.Errorf("cannot use --chart in combination with --chart-ref")
}
sourceLabels, err := parseLabels()
if err != nil {
return err