summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-08 10:42:44 -0400
committerGitHub <noreply@github.com>2022-04-08 10:42:44 -0400
commitcdbc33112ef6407db1292f0a40778e6ac1d8996e (patch)
tree071c7cc2744f62d007ee16419307932acb5e100a /pkg/bindings
parent0c9c3e6714905fbb493e0b634e09b56ae096592e (diff)
parentdc17195bd9d1027b19c3e7f0975f17f4ebda408a (diff)
downloadpodman-cdbc33112ef6407db1292f0a40778e6ac1d8996e.tar.gz
podman-cdbc33112ef6407db1292f0a40778e6ac1d8996e.tar.bz2
podman-cdbc33112ef6407db1292f0a40778e6ac1d8996e.zip
Merge pull request #13687 from rhatdan/VENDOR
Vendor in new opencontainers/selinux
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/build.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index ab562377f..15900a2ed 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -19,6 +19,7 @@ import (
"strings"
"github.com/containers/buildah/define"
+ "github.com/containers/image/v5/types"
"github.com/containers/podman/v4/pkg/auth"
"github.com/containers/podman/v4/pkg/bindings"
"github.com/containers/podman/v4/pkg/domain/entities"
@@ -250,6 +251,12 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
params.Set("pullpolicy", options.PullPolicy.String())
+ switch options.CommonBuildOpts.IdentityLabel {
+ case types.OptionalBoolTrue:
+ params.Set("identitylabel", "1")
+ case types.OptionalBoolFalse:
+ params.Set("identitylabel", "0")
+ }
if options.Quiet {
params.Set("q", "1")
}