Commit Graph

4 Commits

Author SHA1 Message Date
Nalin Dahyabhai ee0f750ea7 internal/util.SetHas(): handle maps of [generic]generic
Make SetHas() a generic function for checking if a map holds a value of
whatever kind for a key of some comparable kind.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-05-20 17:53:33 -04:00
Daniel J Walsh 6714a79eb0
Make cli.EncryptConfig,DecryptConfig, GetFormat public
We want to share these functions with Podman, Podman currently
has a slightly different version which is correct, so use correct
version in Buildah and vendor it into Podman.

Fixing: https://github.com/containers/podman/issues/18196

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-06-09 11:09:18 -04:00
Miloslav Trmač b3e39dfd94
Don't decrypt images by default
A non-nil but empty decryption configuration
seems to be valid enough to trigger decryption in some
configurations, per
https://github.com/containers/podman/issues/18196 .

Like in Skopeo and Podman, only decrypt when the user explicitly
instructs us to (e.g. not triggering decryption based on environment
variables).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-06-09 07:45:38 -04:00
Daniel J Walsh 3aea4093d4
Sort buildoptions and move cli/build functions to internal
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-06-07 10:31:55 -04:00