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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kge_kubectl_get_events-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 6b57321c3b5063cb8464b4e949d5f8c0863077765130e5790399f9df1d319cac
MD5 cd3eb10f7482dd2f474b3b2c8c6bfcf8
BLAKE2b-256 af6e87008f47df49f40ad448acb22e9c10373fdd9fec0c40ea2857f1cf1979d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kge_kubectl_get_events-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 342e0ddb5e01c20270ebc4f6947f3af7b53f190a87f06b8bfa85045f3a3f481a
MD5 0f6754a69186b486956c703265af1b41
BLAKE2b-256 f569f189aab7bb7daf158c4cb6153f09b359906b0b6a2d6a1ccc30be9c155b7a

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