kubectl-apidocs

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: Apache-2.0

README

kubectl-apidocs

A kubectl plugin for learning about API resource documentation in a tree view format.


Examples

Here's a kubectl apidocs demo: apidocs demo GIF


Installation

Using krew
  1. Install the Krew plugin manager if you haven’t already.
  2. Run the following command:
    kubectl krew install apidocs
    
  3. Verify installation:
    kubectl apidocs --version
    
Manual Installation
  1. Download the latest binary for your platform from the Releases page.
  2. Place the binary in your system's PATH (e.g., /usr/local/bin).
  3. Example installation script for Unix-Based OS:
    (
      set -euo pipefail
    
      OS="$(uname | tr '[:upper:]' '[:lower:]')"
      ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
      TAG="$(curl -s https://api.github.com/repos/hashmap-kz/kubectl-apidocs/releases/latest | jq -r .tag_name)"
    
      curl -L "https://github.com/hashmap-kz/kubectl-apidocs/releases/download/${TAG}/kubectl-envsubst_${TAG}_${OS}_${ARCH}.tar.gz" |
        tar -xzf - -C /usr/local/bin && chmod +x /usr/local/bin/kubectl-apidocs
    )
    
  4. Verify installation:
    kubectl apidocs --version
    

Contributing

We welcome contributions! To contribute: see the Contribution guidelines.


License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Additional Resources

For more information, visit the project repository.


Directories

Path Synopsis
cmd
kubectl-apidocs command
pkg
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL