Skip to content
Merged
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
4 changes: 4 additions & 0 deletions common/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@ linters:
- contextcheck
path: libimage
text: LookupImage

issues:
Copy link
Member

Choose a reason for hiding this comment

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

+1 I did this in podman a long time ago, no idea why they choose such default really
containers/podman@93c35a7

It always just leads to the wrong assumption of let me just fix these three issues really quick.

max-issues-per-linter: 0
max-same-issues: 0
1 change: 1 addition & 0 deletions common/libimage/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const (

// NormalizePlatform normalizes (according to the OCI spec) the specified os,
// arch and variant. If left empty, the individual item will be normalized.
//
// Deprecated: new code should call libimage/platform.Normalize() instead.
func NormalizePlatform(rawOS, rawArch, rawVariant string) (os, arch, variant string) {
return platform.Normalize(rawOS, rawArch, rawVariant)
Expand Down
1 change: 1 addition & 0 deletions common/libnetwork/types/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ type PortMapping struct {
}

// OCICNIPortMapping maps to the standard CNI portmapping Capability.
//
// Deprecated: Do not use this struct for new fields. This only exists
// for backwards compatibility.
type OCICNIPortMapping struct {
Expand Down
2 changes: 2 additions & 0 deletions common/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ type ContainersConfig struct {
UserNS string `toml:"userns,omitempty"`

// UserNSSize how many UIDs to allocate for automatically created UserNS
//
// Deprecated: no user of this field is known.
UserNSSize int `toml:"userns_size,omitempty,omitzero"`
}
Expand Down Expand Up @@ -558,6 +559,7 @@ type EngineConfig struct {
// PodmanshTimeout is the number of seconds to wait for podmansh logins.
// In other words, the timeout for the `podmansh` container to be in running
// state.
//
// Deprecated: Use podmansh.Timeout instead. podmansh.Timeout has precedence.
PodmanshTimeout uint `toml:"podmansh_timeout,omitempty,omitzero"`
}
Expand Down
1 change: 1 addition & 0 deletions common/pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ const (
// DefaultShmSize is the default upper limit on the size of tmpfs mounts.
DefaultShmSize = "65536k"
// DefaultUserNSSize indicates the default number of UIDs allocated for user namespace within a container.
//
// Deprecated: no user of this field is known.
DefaultUserNSSize = 65536
// OCIBufSize limits maximum LogSizeMax.
Expand Down
4 changes: 4 additions & 0 deletions image/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ linters:
- comments
- common-false-positives
- std-error-handling

issues:
max-issues-per-linter: 0
max-same-issues: 0
4 changes: 4 additions & 0 deletions storage/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ linters:
- all
- -ST1003 # https://staticcheck.dev/docs/checks/#ST1003 Poorly chosen identifier.
- -QF1008 # https://staticcheck.dev/docs/checks/#QF1008 Omit embedded fields from selector expression.

issues:
max-issues-per-linter: 0
max-same-issues: 0
Loading