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.4.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.4-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kge_kubectl_get_events-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 6bae38149069c78f1c05242800de2c956cd5b383e82e93bbca3162e67b452092
MD5 58068d357a8d64f7590fe9e5692c42a3
BLAKE2b-256 18843c58d1b1aee4c44124f888503dae116781ffc5d01f08aa0b6d0fd0f596ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kge_kubectl_get_events-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 16ad5b6fd3575b2f62b9e80513c5efa3630b9e8a53ac8c8a69e6c014387c7a85
MD5 ee1ea37068cbdc91df7dd26b21a7cce4
BLAKE2b-256 5e53a223cceb133f9829069fc94c2d475a2e1aedf8cc8e7f9e66ec94bb0d5bf2

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