Metadata-Version: 2.3
Name: kubectlgetall
Version: 0.4.0
Summary: Get a list of CRs for cluster CRDs in a namespace
Keywords: OpenShift,Kubernetes,k8s,CRD,CR
Author: Jim Fitzpatrick
Author-email: jimfity@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Provides-Extra: rich
Requires-Dist: rich (>=13.9.4,<14.0.0) ; extra == "rich"
Project-URL: Documentation, https://github.com/Boomatang/kubectlgetall
Project-URL: Homepage, https://github.com/Boomatang/kubectlgetall
Project-URL: Repository, https://github.com/Boomatang/kubectlgetall
Description-Content-Type: text/markdown

# 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.
```shell
pipx install kubectallgetall
```

Install with nice formatting.
```shell
pipx install kubectallgetall[rich]
```

## Usage

```shell
kubectlgetall <namespace>
```

There are some flags that can be passed.
```shell
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.


