Skip to content
Open
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
2 changes: 2 additions & 0 deletions pkg/lib/filesystem/local-storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"errors"
"fmt"
"os"
"time"

"github.com/kitops-ml/kitops/pkg/artifact"
"github.com/kitops-ml/kitops/pkg/lib/constants"
Expand Down Expand Up @@ -345,6 +346,7 @@ func createManifest(configDesc ocispec.Descriptor, layerDescs []ocispec.Descript
manifest.Annotations = map[string]string{}
}
manifest.Annotations[constants.CliVersionAnnotation] = constants.Version
manifest.Annotations[ocispec.AnnotationCreated] = time.Now().UTC().Format(time.RFC3339)

Comment on lines 348 to 350
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

org.opencontainers.image.created is being set using a fresh time.Now() call here, which can diverge from the creation timestamp stored in the config blob (e.g., ModelPack config sets CreatedAt separately and currently uses non-UTC time). This can lead to inconsistent "created" times between manifest and config. Consider generating a single UTC timestamp once during pack and reusing it for both config creation and this manifest annotation (or deriving the manifest value from the config’s CreatedAt when available).

Copilot uses AI. Check for mistakes.
return manifest, nil
}