Skip to content
Merged
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
8 changes: 8 additions & 0 deletions chelm/internal/chelm/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ func resolveField(f images.RefField, imageID string, repo name.Repository) strin
return DefaultTestTag + "@" + d.String()
case images.Ref:
return repo.Digest(d.String()).Name()
case images.ImageName:
return strings.ToLower(imageID)
case images.RegistryRepoPrefix:
full := repo.Name()
if idx := strings.LastIndex(full, "/"); idx >= 0 {
return full[:idx]
}
return full
default:
return ""
}
Expand Down