Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3.2] logs: k8s-file: restore poll sleep #10743

Closed
wants to merge 79 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
f88de46
Add script for identifying commits in release branches
mheon May 17, 2021
38ec00c
Initial release notes for v3.2.0-RC2
mheon May 18, 2021
fe05956
Merge pull request #10388 from mheon/release_notes_320rc2
openshift-merge-robot May 20, 2021
9025075
Updated vendors of c/image, c/storage, Buildah
mheon May 20, 2021
0649552
Update Cirrus DEST_BRANCH to v3.2
mheon May 20, 2021
32dd933
update c/common
vrothberg May 18, 2021
5d1e39b
Merge pull request #10415 from mheon/32_vendor
openshift-merge-robot May 20, 2021
e849ba2
Bump to v3.2.0-RC2
mheon May 20, 2021
6705536
Bump to v3.2.0-dev
mheon May 20, 2021
b909bca
Merge pull request #10418 from mheon/bump_320_rc2
openshift-merge-robot May 20, 2021
bb589be
Fix problem copying files when container is in host pid namespace
rhatdan May 13, 2021
a9108ab
docs: generate systemd: XDG_RUNTIME_DIR
vrothberg May 19, 2021
efa15b9
add libimage events
vrothberg May 5, 2021
18e917c
Downgrade API service routing table logging
jwhonce May 10, 2021
ac8b7dd
Drop container does not exist on removal to debugf
rhatdan May 21, 2021
c53638e
Podman info add support for status of cgroup controllers
flouthoc May 18, 2021
ba88486
Handle hard links in remote builds
rhatdan May 20, 2021
5eecc27
Improve OCI Runtime error
rhatdan May 21, 2021
934f36d
Handle hard links in different directories
rhatdan May 24, 2021
69bae47
docs: --cert-dir: point to containers-certs.d(5)
vrothberg May 25, 2021
6c9de93
Fix race condition in running ls container in a pod
rhatdan May 25, 2021
ee5dd06
Fix race on podman start --all
rhatdan May 25, 2021
f490230
Update release notes for v3.2.0-RC3
mheon May 25, 2021
a5a2416
Merge pull request #10461 from mheon/rc3_backports
openshift-merge-robot May 26, 2021
6847294
Bump to v3.2.0-RC3
mheon May 26, 2021
fbf8b78
Bump to v3.2.0-dev
mheon May 26, 2021
06db724
Merge pull request #10473 from mheon/bump_320_rc3
openshift-merge-robot May 26, 2021
1e45631
vendor containers/[email protected]
vrothberg May 27, 2021
6f28b15
Merge pull request #10484 from vrothberg/3.2-vendor-common
rhatdan May 27, 2021
abb57e5
vendor containers/[email protected]
vrothberg May 31, 2021
ba1dac7
Merge pull request #10505 from vrothberg/v3.2-vendor-storage
openshift-merge-robot May 31, 2021
32927f5
generate systemd: make mounts portable
vrothberg May 31, 2021
96c0aa6
Merge pull request #10509 from vrothberg/v3.2-cherry-pick-53072184192…
openshift-merge-robot Jun 1, 2021
dd83f5c
System tests: add :Z to volume mounts
edsantiago Jun 1, 2021
4b202ae
Merge pull request #10532 from edsantiago/mount_colon_z
openshift-merge-robot Jun 2, 2021
ce5c3b5
[v.3.2] events: support disjunctive filters
vrothberg Jun 1, 2021
326c758
Merge pull request #10534 from vrothberg/v3.2-fix-10507
openshift-merge-robot Jun 2, 2021
4b8ca63
Use request context instead of background
matejvasek Jun 1, 2021
f62c6bf
add ipv6 nameservers only when the container has ipv6 enabled
Luap99 Jun 2, 2021
8688f54
Final release notes updates for v3.2.0
mheon Jun 3, 2021
cff7376
Fix network create macvlan with subnet option
May 20, 2021
0281ef2
Bump to v3.2.0
mheon Jun 3, 2021
72455ec
Bump to v3.2.1-dev
mheon Jun 3, 2021
9647d88
Ensure minimum API version is set correctly in tests
mheon Jun 3, 2021
c7e96ed
Merge pull request #10552 from mheon/bump_320
openshift-merge-robot Jun 3, 2021
b6ef7cf
Correct qemu options for Intel macs
baude Jun 8, 2021
78430ee
[v3.2] vendor containers/[email protected]
vrothberg Jun 9, 2021
b0eeca6
Merge pull request #10608 from vrothberg/v3.2-vendor-common
openshift-merge-robot Jun 9, 2021
d22b544
Merge pull request #10605 from baude/3.2hvf
openshift-merge-robot Jun 9, 2021
f2b3da5
[v3.2] vendor containers/[email protected]
vrothberg Jun 9, 2021
a894a36
Merge pull request #10613 from vrothberg/v3.2-vendor-common
openshift-merge-robot Jun 9, 2021
d46deca
rootless: fix fast join userns path
giuseppe Jun 9, 2021
3d21dfe
Merge pull request #10631 from giuseppe/v32-fix-rootless-join
openshift-merge-robot Jun 10, 2021
e0dcffa
[v3.2] vendor containers/[email protected]
vrothberg Jun 10, 2021
41fcd4d
Merge pull request #10636 from vrothberg/v3.2-vendor-common
openshift-merge-robot Jun 10, 2021
b61701a
container: ignore named hierarchies
giuseppe Jun 9, 2021
c85b6b3
Fix pre-checkpointing
adrianreber Jun 10, 2021
80362b3
Fix build tags for pkg/machine...
Luap99 Jun 10, 2021
6beae86
System tests: deal with crun 0.20.1
edsantiago Jun 9, 2021
2afb5ee
podman-remote build should handle -f option properly
rhatdan Jun 3, 2021
5ddd76e
Several shell completion fixes
May 13, 2021
f1e7a07
Fix image prune --filter cmd behavior
jmguzik Jun 3, 2021
c3f6ef6
logs: k8s-file: fix race
vrothberg Jun 8, 2021
8ba0c92
Improve systemd-resolved detection
Luap99 Jun 8, 2021
2993bdf
Fix network prune api docs
Luap99 Jun 8, 2021
c28f442
remote pull: cancel pull when connection is closed
Luap99 Jun 8, 2021
c751544
remote events: support labels
vrothberg Jun 4, 2021
26eae3b
remote: always send resize before the container starts
Luap99 Jun 3, 2021
38fbd2c
[CI:DOCS] fix incorrect network remove api doc
Luap99 Jun 4, 2021
5a15856
remote events: fix --stream=false
vrothberg Jun 4, 2021
f697891
Fall back to string for dockerfile parameter
mwhahaha Jun 11, 2021
e42d727
Revert "Ensure minimum API version is set correctly in tests"
mheon Jun 11, 2021
4f56f7f
Fix network connect race with docker-compose
Luap99 Jun 11, 2021
c5d9c0a
Updated release notes for v3.2.1
mheon Jun 11, 2021
152952f
Bump to v3.2.1
mheon Jun 11, 2021
60752b3
Bump to v3.2.2-dev
mheon Jun 11, 2021
ab4d0cf
Merge pull request #10658 from mheon/bump_321
openshift-merge-robot Jun 14, 2021
b7c44e2
logs: k8s-file: fix spurious error logs
vrothberg Jun 21, 2021
0d86ef8
logs: k8s-file: restore poll sleep
vrothberg Jun 21, 2021
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
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
#### Global variables used for all tasks
####
# Name of the ultimate destination branch for this CI run, PR or post-merge.
DEST_BRANCH: "master"
DEST_BRANCH: "v3.2"
# Overrides default location (/tmp/cirrus) for repo clone
GOPATH: &gopath "/var/tmp/go"
GOBIN: "${GOPATH}/bin"
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ bin/podman.cross.%: .gopathok
.PHONY: local-cross
local-cross: $(CROSS_BUILD_TARGETS) ## Cross compile podman binary for multiple architectures

.PHONY: cross
cross: local-cross

# Update nix/nixpkgs.json its latest stable commit
.PHONY: nixpkgs
nixpkgs:
Expand Down
151 changes: 151 additions & 0 deletions RELEASE_NOTES.md

Large diffs are not rendered by default.

118 changes: 118 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,121 @@
- Changelog for v3.2.1 (2021-06-11):
* Updated release notes for v3.2.1
* remote events: fix --stream=false
* [CI:DOCS] fix incorrect network remove api doc
* remote: always send resize before the container starts
* remote events: support labels
* remote pull: cancel pull when connection is closed
* Fix network prune api docs
* Improve systemd-resolved detection
* logs: k8s-file: fix race
* Fix image prune --filter cmd behavior
* podman-remote build should handle -f option properly
* System tests: deal with crun 0.20.1
* Fix build tags for pkg/machine...
* Fix pre-checkpointing
* container: ignore named hierarchies
* [v3.2] vendor containers/[email protected]
* rootless: fix fast join userns path
* [v3.2] vendor containers/[email protected]
* [v3.2] vendor containers/[email protected]
* Correct qemu options for Intel macs

- Changelog for v3.2.0 (2021-06-03):
* Final release notes updates for v3.2.0
* add ipv6 nameservers only when the container has ipv6 enabled
* Use request context instead of background
* [v.3.2] events: support disjunctive filters
* System tests: add :Z to volume mounts
* generate systemd: make mounts portable
* vendor containers/[email protected]
* vendor containers/[email protected]

- Changelog for v3.2.0-RC3 (2021-05-26):
* Update release notes for v3.2.0-RC3
* Fix race on podman start --all
* Fix race condition in running ls container in a pod
* docs: --cert-dir: point to containers-certs.d(5)
* Handle hard links in different directories
* Improve OCI Runtime error
* Handle hard links in remote builds
* Podman info add support for status of cgroup controllers
* Drop container does not exist on removal to debugf
* Downgrade API service routing table logging
* add libimage events
* docs: generate systemd: XDG_RUNTIME_DIR
* Fix problem copying files when container is in host pid namespace

- Changelog for v3.2.0-RC2 (2021-05-20):
* update c/common
* Update Cirrus DEST_BRANCH to v3.2
* Updated vendors of c/image, c/storage, Buildah
* Initial release notes for v3.2.0-RC2
* Add script for identifying commits in release branches
* Add host.containers.internal entry into container's etc/hosts
* image prune: remove unused images only with `--all`
* podman network reload add rootless support
* Use more recent `stale` release...
* network tutorial: update with rootless cni changes
* [CI:DOCS] Update first line in intro page
* Use updated VM images + updated automation tooling
* auto-update service: prune images
* make vendor
* fix system upgrade tests
* Print "extracting" only on compressed file
* podman image tree: restore previous behavior
* fix network restart always test
* fix incorrect log driver in podman container image
* Add support for cli network prune --filter flag
* Move filter parsing to common utils
* Bump github.com/containers/storage from 1.30.2 to 1.30.3
* Update nix pin with `make nixpkgs`
* [CI:DOCS] hack/bats - new helper for running system tests
* fix restart always with slirp4netns
* Bump github.com/opencontainers/runc from 1.0.0-rc93 to 1.0.0-rc94
* Bump github.com/coreos/go-systemd/v22 from 22.3.1 to 22.3.2
* Add host.serviceIsRemote to podman info results
* Add client disconnect to build handler loop
* Remove obsolete skips
* Fix podman-remote build --rm=false ...
* fix: improved "containers/{name}/wait" endpoint
* Bump github.com/containers/storage from 1.30.1 to 1.30.2
* Add envars to the generated systemd unit
* fix: use UTC Time Stamps in response JSON
* fix container startup for empty pidfile
* Kube like pods should share ipc,net,uts by default
* fix: compat API "images/get" for multiple images
* Revert escaped double dash man page flag syntax
* Report Download complete in Compatibility mode
* Add documentation on short-names
* Bump github.com/docker/docker
* Adds support to preserve auto update labels in generate and play kube
* [CI:DOCS] Stop conversion of `--` into en dash
* Revert Patch to relabel if selinux not enabled
* fix per review request
* Add support for environment variable secrets
* fix pre review request
* Fix infinite loop in isPathOnVolume
* Add containers.conf information for changing defaults
* CI: run rootless tests under ubuntu
* Fix wrong macvlan PNG in networking doc.
* Add restart-policy to container filters & --filter to podman start
* Fixes docker-compose cannot set static ip when use ipam
* channel: simplify implementation
* build: improve regex for iidfile
* Bump github.com/onsi/gomega from 1.11.0 to 1.12.0
* cgroup: fix rootless --cgroup-parent with pods
* fix: docker APIv2 `images/get`
* codespell cleanup
* Minor podmanimage docs updates.
* Fix handling of runlabel IMAGE and NAME
* Bump to v3.2.0-dev
* Bump to v3.2.0-rc1
* podman: set volatile storage flag for --rm containers
* Bump github.com/onsi/ginkgo from 1.16.1 to 1.16.2
* Bump github.com/containers/image/v5 from 5.11.1 to 5.12.0
* Add filepath glob support to --security-opt unmask
* Force log_driver to k8s-file for containers in containers

- Changelog for v3.2.0-rc1 (2021-05-05)
* migrate Podman to containers/common/libimage
* add --mac-address to podman play kube
Expand Down
51 changes: 40 additions & 11 deletions cmd/podman/common/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/libpod/define"
"github.com/containers/podman/v3/pkg/domain/entities"
"github.com/containers/podman/v3/pkg/network"
"github.com/containers/podman/v3/pkg/registries"
"github.com/containers/podman/v3/pkg/rootless"
systemdDefine "github.com/containers/podman/v3/pkg/systemd/define"
Expand Down Expand Up @@ -243,7 +244,7 @@ func getRegistries() ([]string, cobra.ShellCompDirective) {
return regs, cobra.ShellCompDirectiveNoFileComp
}

func getNetworks(cmd *cobra.Command, toComplete string) ([]string, cobra.ShellCompDirective) {
func getNetworks(cmd *cobra.Command, toComplete string, cType completeType) ([]string, cobra.ShellCompDirective) {
suggestions := []string{}
networkListOptions := entities.NetworkListOptions{}

Expand All @@ -259,7 +260,15 @@ func getNetworks(cmd *cobra.Command, toComplete string) ([]string, cobra.ShellCo
}

for _, n := range networks {
if strings.HasPrefix(n.Name, toComplete) {
id := network.GetNetworkID(n.Name)
// include ids in suggestions if cType == completeIDs or
// more then 2 chars are typed and cType == completeDefault
if ((len(toComplete) > 1 && cType == completeDefault) ||
cType == completeIDs) && strings.HasPrefix(id, toComplete) {
suggestions = append(suggestions, id[0:12])
}
// include name in suggestions
if cType != completeIDs && strings.HasPrefix(n.Name, toComplete) {
suggestions = append(suggestions, n.Name)
}
}
Expand Down Expand Up @@ -502,7 +511,7 @@ func AutocompleteNetworks(cmd *cobra.Command, args []string, toComplete string)
if !validCurrentCmdLine(cmd, args, toComplete) {
return nil, cobra.ShellCompDirectiveNoFileComp
}
return getNetworks(cmd, toComplete)
return getNetworks(cmd, toComplete, completeDefault)
}

// AutocompleteDefaultOneArg - Autocomplete path only for the first argument.
Expand Down Expand Up @@ -588,7 +597,7 @@ func AutocompleteContainerOneArg(cmd *cobra.Command, args []string, toComplete s
// AutocompleteNetworkConnectCmd - Autocomplete podman network connect/disconnect command args.
func AutocompleteNetworkConnectCmd(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
if len(args) == 0 {
return getNetworks(cmd, toComplete)
return getNetworks(cmd, toComplete, completeDefault)
}
if len(args) == 1 {
return getContainers(cmd, toComplete, completeDefault)
Expand Down Expand Up @@ -624,7 +633,7 @@ func AutocompleteInspect(cmd *cobra.Command, args []string, toComplete string) (
containers, _ := getContainers(cmd, toComplete, completeDefault)
images, _ := getImages(cmd, toComplete)
pods, _ := getPods(cmd, toComplete, completeDefault)
networks, _ := getNetworks(cmd, toComplete)
networks, _ := getNetworks(cmd, toComplete, completeDefault)
volumes, _ := getVolumes(cmd, toComplete)
suggestions := append(containers, images...)
suggestions = append(suggestions, pods...)
Expand Down Expand Up @@ -885,7 +894,7 @@ func AutocompleteNetworkFlag(cmd *cobra.Command, args []string, toComplete strin
},
}

networks, _ := getNetworks(cmd, toComplete)
networks, _ := getNetworks(cmd, toComplete, completeDefault)
suggestions, dir := completeKeyValues(toComplete, kv)
// add slirp4netns here it does not work correct if we add it to the kv map
suggestions = append(suggestions, "slirp4netns")
Expand Down Expand Up @@ -1039,7 +1048,10 @@ func AutocompleteNetworkDriver(cmd *cobra.Command, args []string, toComplete str
// -> "ipc", "net", "pid", "user", "uts", "cgroup", "none"
func AutocompletePodShareNamespace(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
namespaces := []string{"ipc", "net", "pid", "user", "uts", "cgroup", "none"}
return namespaces, cobra.ShellCompDirectiveNoFileComp
split := strings.Split(toComplete, ",")
split[len(split)-1] = ""
toComplete = strings.Join(split, ",")
return prefixSlice(toComplete, namespaces), cobra.ShellCompDirectiveNoFileComp
}

// AutocompletePodPsSort - Autocomplete images sort options.
Expand Down Expand Up @@ -1115,7 +1127,7 @@ func AutocompletePsFilters(cmd *cobra.Command, args []string, toComplete string)
return []string{define.HealthCheckHealthy,
define.HealthCheckUnhealthy}, cobra.ShellCompDirectiveNoFileComp
},
"network=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s) },
"network=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s, completeDefault) },
"label=": nil,
"exited=": nil,
"until=": nil,
Expand All @@ -1138,7 +1150,7 @@ func AutocompletePodPsFilters(cmd *cobra.Command, args []string, toComplete stri
"ctr-status=": func(_ string) ([]string, cobra.ShellCompDirective) {
return containerStatuses, cobra.ShellCompDirectiveNoFileComp
},
"network=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s) },
"network=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s, completeDefault) },
"label=": nil,
}
return completeKeyValues(toComplete, kv)
Expand All @@ -1158,11 +1170,28 @@ func AutocompleteImageFilters(cmd *cobra.Command, args []string, toComplete stri
return completeKeyValues(toComplete, kv)
}

// AutocompletePruneFilters - Autocomplete container/image prune --filter options.
func AutocompletePruneFilters(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
kv := keyValueCompletion{
"until=": nil,
"label=": nil,
}
return completeKeyValues(toComplete, kv)
}

// AutocompleteNetworkFilters - Autocomplete network ls --filter options.
func AutocompleteNetworkFilters(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
kv := keyValueCompletion{
"name=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s) },
"plugin=": nil,
"name=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s, completeNames) },
"id=": func(s string) ([]string, cobra.ShellCompDirective) { return getNetworks(cmd, s, completeIDs) },
"plugin=": func(_ string) ([]string, cobra.ShellCompDirective) {
return []string{"bridge", "portmap",
"firewall", "tuning", "dnsname", "macvlan"}, cobra.ShellCompDirectiveNoFileComp
},
"label=": nil,
"driver=": func(_ string) ([]string, cobra.ShellCompDirective) {
return []string{"bridge"}, cobra.ShellCompDirectiveNoFileComp
},
}
return completeKeyValues(toComplete, kv)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/containers/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func init() {
flags.BoolVarP(&force, "force", "f", false, "Do not prompt for confirmation. The default is false")
filterFlagName := "filter"
flags.StringArrayVar(&filter, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')")
_ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
_ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters)
}

func prune(cmd *cobra.Command, args []string) error {
Expand Down
14 changes: 11 additions & 3 deletions cmd/podman/images/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

"github.com/containers/common/pkg/completion"
"github.com/containers/podman/v3/cmd/podman/common"
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/cmd/podman/utils"
"github.com/containers/podman/v3/cmd/podman/validate"
Expand Down Expand Up @@ -44,8 +45,7 @@ func init() {

filterFlagName := "filter"
flags.StringArrayVar(&filter, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')")
//TODO: add completion for filters
_ = pruneCmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
_ = pruneCmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters)
}

func prune(cmd *cobra.Command, args []string) error {
Expand All @@ -60,7 +60,15 @@ func prune(cmd *cobra.Command, args []string) error {
return nil
}
}

filterMap, err := common.ParseFilters(filter)
if err != nil {
return err
}
for k, v := range filterMap {
for _, val := range v {
pruneOpts.Filter = append(pruneOpts.Filter, fmt.Sprintf("%s=%s", k, val))
}
}
results, err := registry.ImageEngine().Prune(registry.GetContext(), pruneOpts)
if err != nil {
return err
Expand Down
3 changes: 1 addition & 2 deletions cmd/podman/networks/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"strings"

"github.com/containers/common/pkg/completion"
"github.com/containers/podman/v3/cmd/podman/common"
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/cmd/podman/utils"
Expand Down Expand Up @@ -39,7 +38,7 @@ func networkPruneFlags(cmd *cobra.Command, flags *pflag.FlagSet) {
flags.BoolVarP(&force, "force", "f", false, "do not prompt for confirmation")
filterFlagName := "filter"
flags.StringArrayVar(&filter, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')")
_ = cmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
_ = cmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters)
}

func init() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/podman/system/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"strings"

"github.com/containers/common/pkg/completion"
"github.com/containers/podman/v3/cmd/podman/common"
"github.com/containers/podman/v3/cmd/podman/parse"
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/cmd/podman/utils"
Expand Down Expand Up @@ -50,7 +51,7 @@ func init() {
flags.BoolVar(&pruneOptions.Volume, "volumes", false, "Prune volumes")
filterFlagName := "filter"
flags.StringArrayVar(&filters, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')")
_ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
_ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters)
}

func prune(cmd *cobra.Command, args []string) error {
Expand Down
2 changes: 1 addition & 1 deletion contrib/spec/podman.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Epoch: 99
%else
Epoch: 0
%endif
Version: 3.2.0
Version: 3.2.2
Release: #COMMITDATE#.git%{shortcommit0}%{?dist}
Summary: Manage Pods, Containers and Container Images
License: ASL 2.0
Expand Down
4 changes: 2 additions & 2 deletions docs/source/markdown/podman-build.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ given.
#### **--cert-dir**=*path*

Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry.
Default certificates directory is _/etc/containers/certs.d_. (This option is not available with the remote Podman client)
Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client)

#### **--cgroup-parent**=*path*

Expand Down Expand Up @@ -972,7 +972,7 @@ If you are using `useradd` within your build script, you should pass the
useradd to stop creating the lastlog file.

## SEE ALSO
podman(1), buildah(1), containers-registries.conf(5), crun(8), runc(8), useradd(8), podman-ps(1), podman-rm(1)
podman(1), buildah(1), containers-certs.d(5), containers-registries.conf(5), crun(8), runc(8), useradd(8), podman-ps(1), podman-rm(1)

## HISTORY
Aug 2020, Additional options and .dockerignore added by Dan Walsh `<[email protected]>`
Expand Down
4 changes: 2 additions & 2 deletions docs/source/markdown/podman-container-runlabel.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The runlabel command will not execute if --display is specified.
#### **--cert-dir**=*path*

Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry.
Default certificates directory is _/etc/containers/certs.d_. (This option is not available with the remote Podman client)
Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client)

#### **--creds**=*[username[:password]]*

Expand Down Expand Up @@ -105,7 +105,7 @@ $ sudo podman container runlabel --display run foobar
```

## SEE ALSO
podman(1)
podman(1), containers-certs.d(5)

## HISTORY
September 2018, Originally compiled by Brent Baude (bbaude at redhat dot com)
Loading