Skip to content

Commit

Permalink
Merge pull request #409 from Random-Liu/cherrypick-#406-release-1.11
Browse files Browse the repository at this point in the history
[release-1.11] Cherrypick #406
  • Loading branch information
k8s-ci-robot authored Nov 10, 2018
2 parents edabfb5 + ad6f472 commit b6bd6d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
24 changes: 0 additions & 24 deletions cmd/crictl/constants.go

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/crictl/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ func ListPodSandboxes(client pb.RuntimeServiceClient, opts listOptions) error {
}
for _, pod := range r.Items {
// Filter by pod name/namespace regular expressions.
if !podMatchesRegex(opts.podNameRegexp, pod.Labels[kubePodNameLabel]) {
if !podMatchesRegex(opts.podNameRegexp, pod.Metadata.Name) {
continue
}
if !podMatchesRegex(opts.podNamespaceRegexp, pod.Labels[kubePodNamespaceLabel]) {
if !podMatchesRegex(opts.podNamespaceRegexp, pod.Metadata.Namespace) {
continue
}

Expand Down

0 comments on commit b6bd6d4

Please sign in to comment.