Merge pull request #16462 from rhatdan/manifest

Add hidden podman manifest inspect -v option
This commit is contained in:
OpenShift Merge Robot
2022-11-12 10:51:53 +00:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,7 @@ func init() {
})
flags := inspectCmd.Flags()
flags.Bool("verbose", false, "Added for Docker compatibility")
flags.BoolP("verbose", "v", false, "Added for Docker compatibility")
_ = flags.MarkHidden("verbose")
flags.BoolVar(&tlsVerifyCLI, "tls-verify", true, "require HTTPS and verify certificates when accessing the registry")
flags.Bool("insecure", false, "Purely for Docker compatibility")

View File

@ -10,7 +10,10 @@ load helpers
iid=$output
run_podman manifest create test:1.0
run_podman manifest inspect --verbose $output
mid=$output
run_podman manifest inspect --verbose $mid
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
run_podman manifest inspect -v $mid
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
run_podman images --format '{{.ID}}' --no-trunc
is "$output" ".*sha256:$iid" "Original image ID still shown in podman-images output"