Skip to content

Commit

Permalink
fix(export, multiplatform): fix unexpected condition: stage image wit…
Browse files Browse the repository at this point in the history
…hout labels

Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
  • Loading branch information
alexey-igrychev committed Oct 25, 2024
1 parent dc77272 commit d3c67b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/storage/repo_stages_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ func (storage *RepoStagesStorage) ExportStage(ctx context.Context, stageDescript

func mutateExportStageConfig(mutateConfigFunc func(config v1.Config) (v1.Config, error)) func(config v1.Config) (v1.Config, error) {
return func(config v1.Config) (v1.Config, error) {
if config.Labels == nil {
panic("unexpected condition: stage image without labels")
}

for name := range config.Labels {
if strings.HasPrefix(name, image.WerfLabelPrefix) {
delete(config.Labels, name)
Expand Down

0 comments on commit d3c67b8

Please sign in to comment.