Skip to content

Commit

Permalink
Update pkg/prowgen/prowgen_config.go
Browse files Browse the repository at this point in the history
Co-authored-by: David Simansky <dsimansk@redhat.com>
  • Loading branch information
cardil and dsimansk committed Jun 19, 2024
1 parent 9f27b9e commit f837021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/prowgen/prowgen_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func withNamePromotion(r Repository, branchName string) ReleaseBuildConfiguratio
cfg.PromotionConfiguration = &cioperatorapi.PromotionConfiguration{
Targets: []cioperatorapi.PromotionTarget{{
Namespace: ns,
Name: createPropotionName(r.Promotion, branchName),
Name: createPromotionName(r.Promotion, branchName),
AdditionalImages: createPromotionAdditionalImages(r),
}},
}
Expand All @@ -357,7 +357,7 @@ func withTagPromotion(r Repository, branchName string) ReleaseBuildConfiguration
cfg.PromotionConfiguration = &cioperatorapi.PromotionConfiguration{
Targets: []cioperatorapi.PromotionTarget{{
Namespace: ns,
Tag: createPropotionName(r.Promotion, branchName),
Tag: createPromotionName(r.Promotion, branchName),
TagByCommit: false, // TODO: revisit this later
AdditionalImages: createPromotionAdditionalImages(r),
}},
Expand All @@ -376,7 +376,7 @@ func createPromotionAdditionalImages(r Repository) map[string]string {
}
}

func createPropotionName(p Promotion, branchName string) string {
func createPromotionName(p Promotion, branchName string) string {
tpl := "knative-${version}"
if p.Template != "" {
tpl = p.Template
Expand Down

0 comments on commit f837021

Please sign in to comment.