Skip to content

API Reference parrot_tools.kubernetes.config

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.kubernetes.config

View source

Kubernetes Toolkit configuration and result models.

Provides Pydantic models for KubernetesConfig and K8sOperationResult, mirroring the PulumiConfig/PulumiOperationResult pattern.

Class K8sOperationResult

Result of a Kubernetes operation.

Contains the outcome of a kubectl-like operation with bounded projections. Items are simplified dicts — never full Kubernetes API objects — to avoid flooding the LLM context with raw API responses.

Fields:

Field Type Default Description
success bool Whether the operation completed successfully.
operation str Operation type: 'list_pods', 'get_logs', 'describe', 'get', 'apply', 'scale', 'delete', 'rollout_restart'.
summary str Human-readable summary of the operation result.
items list[dict[str, Any]] Bounded projection of resources affected/returned. Never contains full Kubernetes API objects.
error Optional[str] None Error message if operation failed. None on success.

Class KubernetesConfig

Configuration for KubernetesExecutor.

Supports both in-cluster (service account) and kubeconfig-based authentication. Mirrors PulumiConfig pattern but stands alone (no Docker/CLI inheritance).

Fields:

Field Type Default Description
kubeconfig_path Optional[str] None Path to kubeconfig file. None uses default (~/.kube/config or KUBECONFIG env).
context Optional[str] None Kubernetes context to use from kubeconfig. None uses the current context.
namespace str 'default' Default namespace for operations when not explicitly specified.
in_cluster bool False If True, use in-cluster service account config (for pods running inside k8s).
timeout_seconds int 60 Timeout in seconds for Kubernetes API operations. Must be positive.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally