Skip to content

use --no-headers instead of grep #2

@Atoms

Description

@Atoms

use:
kubectl get xxx --all-namespaces --no-headers | wc -l
instead of
kubectl get xxx --all-namespaces | grep -v NAMESPACE | wc -l

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions