Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pkg/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,6 @@ func fromConfig(ctx context.Context, cfg *Config) ([]api.Step, []api.Step, error
return nil, nil, fmt.Errorf("cannot promote images, no promotion configuration defined")
}

if !api.ConsolidatedQuayPromotion(cfg.CIConfig) {
promotionSteps = append(promotionSteps, releasesteps.PromotionStep(api.PromotionStepName, cfg.CIConfig, requiredNames, cfg.SkippedImages, cfg.JobSpec, cfg.podClient, cfg.PushSecret, registryDomain(cfg.CIConfig.PromotionConfiguration), api.DefaultMirrorFunc, api.DefaultTargetNameFunc, cfg.NodeArchitectures))
}
// Used primarily (only?) by the ci-chat-bot
if cfg.CIConfig.PromotionConfiguration.RegistryOverride != "" {
logrus.Info("No images to promote to quay.io if the registry is overridden")
Expand Down
6 changes: 3 additions & 3 deletions pkg/defaults/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ func TestFromConfig(t *testing.T) {
},
promote: true,
expectedSteps: []string{"[output-images]", "[images]"},
expectedPost: []string{"[promotion]", "[promotion-quay]"},
expectedPost: []string{"[promotion-quay]"},
}, {
name: "promote 4.12 consolidated quay",
config: api.ReleaseBuildConfiguration{
Expand Down Expand Up @@ -1743,7 +1743,7 @@ func TestFromConfig(t *testing.T) {
},
promote: true,
expectedSteps: []string{"[output-images]", "[images]"},
expectedPost: []string{"[promotion]", "[promotion-quay]"},
expectedPost: []string{"[promotion-quay]"},
}, {
name: "promote 5.0 legacy quay",
config: api.ReleaseBuildConfiguration{
Expand All @@ -1757,7 +1757,7 @@ func TestFromConfig(t *testing.T) {
},
promote: true,
expectedSteps: []string{"[output-images]", "[images]"},
expectedPost: []string{"[promotion]", "[promotion-quay]"},
expectedPost: []string{"[promotion-quay]"},
}, {
name: "duplicate input images",
config: api.ReleaseBuildConfiguration{
Expand Down