⚡ docsfy

openshift-python-wrapper

Manage OpenShift and Kubernetes resources with clean, Pythonic code instead of raw API calls

Get Started →

Getting Started

Explore →

User Guides

Explore →

Recipes

Explore →

Reference

Explore →

Internals

Explore →

Using Resources

  • Working with Kubernetes Events

    How to use the standalone Event class to watch, list, and delete Kubernetes events. Covers Event.get() for streaming events in real-time, Event.list() for fetching existing events with time-based filtering, Event.delete_events() for cleanup, and the resource.events() method for getting events related to a specific resource. Includes field selectors, namespace filtering, and common debugging patterns.

  • Executing Commands in Pods and Retrieving Logs

    How to use Pod.execute() to run commands inside pod containers with timeout handling, container selection, and error handling via ExecOnPodError. Covers Pod.log() for retrieving pod logs, accessing pod properties like node, IP address, and practical recipes for debugging running workloads.

Explore →

API Reference

  • Error Handling and Exception Reference

    Reference for all custom exceptions raised by the library including ExecOnPodError, MissingRequiredArgumentError, ResourceTeardownError, ValidationError, ConditionError, NNCPConfigurationFailed, and ClientWithBasicAuthError. Covers which operations raise each exception, how to catch and handle them, and common error-handling patterns for robust automation scripts.

Explore →
🤖
AI-friendly documentation

This documentation is optimized for AI consumption.