Skip to main content

A kubectl plugin for viewing Kubernetes events

Project description

kge-kubectl-get-events - Kubernetes Events Viewer

A kubectl plugin for viewing Kubernetes events in a user-friendly way.

Installation

pip install kge-kubectl-get-events

Usage

View events for all pods in current namespace

kge -A
# or
kge --all

View events for a specific pod

kge <pod-name>

Interactive mode

kge

This will show a menu of all pods in the current namespace, allowing you to select which pod's events to view.

Shell completion

The tool supports shell completion for pod names. To use it, add the following to your shell configuration:

For zsh:

source <(kge --completion=zsh)

Alternatively, you can add the completion script directly to your zsh configuration:

compdef _kge kge
_kge() {
    local -a pods
    pods=($(kge --complete))
    _describe 'pods' pods
}

Command-line Options

  • -A, --all: Get events for all pods in the current namespace
  • --complete: List pods for shell completion (internal use)
  • --completion=zsh: Generate zsh completion script

Features

  • View events for all pods in a namespace
  • View events for a specific pod
  • Interactive pod selection
  • Shell completion support
  • Automatic namespace detection
  • Caching for better performance

Requirements

  • Python 3.6 or higher
  • Kubernetes Python client
  • kubectl configured with access to a Kubernetes cluster

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

kge_kubectl_get_events-0.1.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

kge_kubectl_get_events-0.1.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file kge_kubectl_get_events-0.1.5.tar.gz.

File metadata

  • Download URL: kge_kubectl_get_events-0.1.5.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for kge_kubectl_get_events-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c1d44920670130d5f65dc21a5c485ac36b89f8877f7b4ac544cdfd10c2824583
MD5 ddfeca3d0d1e0b23ef2ee6ee664576f0
BLAKE2b-256 dca12d28bb1ab1718d9ab5d5ad01db19bd5c7314b36340215f834addcee9dbe2

See more details on using hashes here.

File details

Details for the file kge_kubectl_get_events-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for kge_kubectl_get_events-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6c258200c0e44ae0f096f5093ebe58fcade3f7d0cb2b0d22eb33d810f07002
MD5 359f76e93926ef5fba748b08f6bbafc0
BLAKE2b-256 47749fd18245b1e7d10b75d3ad51178e83f3297900979275c572591f2ae52fab

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