Skip to content

Commit

Permalink
set ghcr blob limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Dec 12, 2024
1 parent 3645500 commit b5263d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/ocm/extensions/repositories/genericocireg/bloblimits.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ var (
lock sync.Mutex
)

const (
KB = int64(1000)
MB = 1000 * KB
GB = 1000 * MB
)

func init() {
defaultBlobLimits = config.BlobLimits{}

// Add limits for known OCI repositories, here,
// or provide init functions in specialized packages
// by calling AddDefaultBlobLimit.
AddDefaultBlobLimit("ghcr.io", 10*GB) // https://github.com/orgs/community/discussions/77429
}

// AddDefaultBlobLimit can be used to set default blob limits
Expand Down

0 comments on commit b5263d8

Please sign in to comment.