Skip to content

Commit

Permalink
fix(controller): fix index out of range on some usage of fromChart() (a…
Browse files Browse the repository at this point in the history
…kuity#2998)

Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
  • Loading branch information
krancour authored Nov 26, 2024
1 parent a8757d4 commit ac18cc2
Show file tree
Hide file tree
Showing 2 changed files with 390 additions and 135 deletions.
6 changes: 3 additions & 3 deletions internal/directives/promotions.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ func (s *PromotionStep) GetConfig(
expr.Function(
"commitFrom",
getCommitFunc(ctx, cl, promoCtx),
new(func(repoURL string) kargoapi.GitCommit),
new(func(repoURL string, origin kargoapi.FreightOrigin) kargoapi.GitCommit),
new(func(repoURL string) kargoapi.GitCommit),
),
expr.Function(
"imageFrom",
Expand All @@ -154,10 +154,10 @@ func (s *PromotionStep) GetConfig(
expr.Function(
"chartFrom",
getChartFunc(ctx, cl, promoCtx),
new(func(repoURL string) kargoapi.Chart),
new(func(repoURL string, chartName string, origin kargoapi.FreightOrigin) kargoapi.Chart),
new(func(repoURL string, chartName string) kargoapi.Chart),
new(func(repoURL string, origin kargoapi.FreightOrigin) kargoapi.Chart),
new(func(repoURL string, chartName string, origin kargoapi.FreightOrigin) kargoapi.Chart),
new(func(repoURL string) kargoapi.Chart),
),
)
if err != nil {
Expand Down
Loading

0 comments on commit ac18cc2

Please sign in to comment.