Skip to main content

Get a list of CRs for cluster CRDs in a namespace

Project description

kubectlgetall

List all CR's for all CRD types on a cluster in a given namespace.

Requires kubectl to be installed.

Installation

Installing with no external dependencies.

pipx install kubectallgetall

Install with nice formatting.

pipx install kubectallgetall[rich]

Usage

kubectlgetall <namespace>

There are some flags that can be passed.

kubectlgetall --help
usage: kubectlgetall [-h] [-n NAMESPACE] [-A] [--version] [-s]
                     [-e [EXCLUDE ...]] [-o {tty,json,sqlite}] [-d DATABASE]
                     [-l LABEL] [--debug]

Returns a list of CR for the different CRDs in a given namespace

options:
  -h, --help            show this help message and exit
  -n, --namespace NAMESPACE
                        Namespace to get resources from.
  -A, --all-namespaces  If present, list all objects across all namespaces.
                        Specifinig --namespace will be ignored
  --version             show program's version number and exit
  -s, --sort            Prints the resources in an order. Initial results take
                        longer to show. Unsorted return results faster but can
                        hit rate limits.
  -e, --exclude [EXCLUDE ...]
                        Exclude crd types. Multiple can be excluded eg: "-e
                        <CRD> <CRD>"
  -o, --output {tty,json,sqlite}
                        Changes the output format of the results (default:
                        tty)
  -d, --database DATABASE
                        Path to the sqlite file to save the results. If the
                        file does not exist it will be created.
  -l, --label LABEL     Set the label that will be saved with entries when
                        using the --database option.
  --debug               Enable debug mode.

Dev

Creating the changelog

On new changes a news fragment is required. This can be created by and news fragments to the changes directory. These files are should have the following naming schema <issue id>.<feature|bugfix|dic|removal|misc>. Using towncrier create -c "change message" <file name> will also create the file for you in the correct location.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubectlgetall-0.4.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kubectlgetall-0.4.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file kubectlgetall-0.4.0.tar.gz.

File metadata

  • Download URL: kubectlgetall-0.4.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.12.11-200.fc41.x86_64

File hashes

Hashes for kubectlgetall-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0e1ad40fff2dda0b3d2a11cee543c4fc93ae95f230dce9a021fabd9e1f75a393
MD5 c18fae6f31f527f2b8a2885dacf76ee8
BLAKE2b-256 af707e4e3dc881076b361b698726e7122915eb69c4e3a230c04aea409da4383e

See more details on using hashes here.

File details

Details for the file kubectlgetall-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: kubectlgetall-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.12.11-200.fc41.x86_64

File hashes

Hashes for kubectlgetall-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0315df8ad8b4db3527c5a0919a38357636a49dac756ee400381faedd6920d95a
MD5 8ad0df5f9099fe19b88f3431968c3e40
BLAKE2b-256 1051142035f6325de0adc6054ed0e59ad1bd473397776d433e3c44eefcf5dbb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page