Changes for version 1.114 - 2026-12-05

  • Documentation: the tutorial in Kubernetes::REST::Example and the README run against the shipped API; examples that did not are corrected.
  • The test CRD classes declare spec and status as Opaque, so t/08 no longer warns. Test::Warn is no longer a test requirement.
  • ensure_only: an undef entry in namespaces now means cluster scope only - it prunes cluster-scoped Kinds, and a named namespace prunes only namespaced Kinds. Before, the undef pass listed a namespaced Kind (Role, RoleBinding, ...) across every namespace and deleted labelled objects not in `objects` wherever they were, and every named namespace listed and pruned a cluster-scoped Kind once more. The default namespaces => [undef] therefore no longer prunes namespaced Kinds; a Kind that no namespaces entry applies to is skipped with a warning naming it.
  • ensure_only croaks on an empty-string entry in namespaces before anything is applied; it used to list, and prune, every namespace.
  • A resource or namespace named 0 can be read, changed and deleted: every method tested names for truth. An empty name still croaks before any request, and build_path now croaks on one too instead of returning the collection path - a DELETE there would remove the whole collection.
  • port_forward rejects a port with a trailing newline ("80\n").
  • SECURITY: the boolean fields of a kubeconfig (insecure-skip-tls-verify, disable-compression, exec provideClusterInfo, preferences colors) are read as kubectl reads them. "insecure-skip-tls-verify: no" (likewise n, off, False, FALSE, ...) used to be the string "no", true in Perl, and switched TLS verification off; it now keeps verification on. A value that is no boolean ("maybe", 2) now dies naming the field and the file instead of counting as true. 1 and 0 stay accepted.
  • YAML::XS is no longer a dependency; YAML::PP 0.026 replaces it. Plain kubeconfig values stay the text written (1.0, 0644, 012345678901 are not rewritten). A kubeconfig that is not UTF-8 or not valid YAML dies naming the file (and the line and column), without quoting its content. A kubeconfig with several YAML documents is read as its first document, as client-go reads it; it used to be the last.
  • Kubernetes::REST::AuthExec reads the plugin's output as JSON and, failing that, as YAML, as client-go does. Output that is neither now dies with "exec credential output is neither JSON nor YAML" without quoting it.
  • kube_client and kube_watch "-o yaml" print booleans as true/false instead of "!!perl/scalar:JSON::PP::Boolean 1", and quote strings kubectl would read as something else (yes, on, 1.0); the output is the same as IO::K8s's to_yaml.
  • kube_client and kube_watch take 0 as a namespace, resource name or context: "get Pod 0" fetches the Pod named 0 instead of listing, "delete Pod 0" deletes it instead of printing the usage, "-n 0" and "--context 0" are no longer dropped.
  • Security: an inline CA (ssl_ca_pem, which Kubeconfig sets from certificate-authority-data) is now the only CA a connection trusts. Before, Kubernetes::REST::HTTPTinyIO also trusted the system CA bundle or Mozilla::CA, so a server certificate from any public CA was accepted for the API server as long as the hostname matched; Kubernetes::REST::LWPIO did the same with Mozilla::CA when IO::Socket::SSL found no default CA. Both backends now hand the PEM to IO::Socket::SSL as a private temporary file (mode 0600, removed with the IO object). A host without a CA bundle and without Mozilla::CA no longer fails when a CA is given. A CA bundle with several certificates is trusted in full. ssl_ca_file and ssl_verify_server => 0 are unchanged.
  • Declares perl 5.010 and MooX::Options 4.000 as minimum versions, Test::More 0.98 for the tests, and lists LWP::ConsoleLogger as a suggestion instead of a recommendation. HTTP::Tiny is recommended at 0.056 instead of 0.054: from there a missing ssl_ca_file is an error, not a silent fallback to the system CAs.
  • The test suite runs on perl 5.18 to 5.22: t/44_unstructured_fallback.t counted list items with postfix dereference, which perl parses from 5.24 on.

Documentation

Kubernetes CLI client using Kubernetes::REST
Generate IO::K8s classes from a CustomResourceDefinition
Run a command against a throwaway minikube cluster
Watch Kubernetes resources for changes

Modules

A Perl REST Client for the Kubernetes API
An HTTP error status answered by the Kubernetes API
Compatibility helper for deprecated v0 Admission Registration calls
Compatibility helper for deprecated v0 API Extensions calls
Compatibility helper for deprecated v0 API Registration calls
Compatibility helper for deprecated v0 Apps calls
Bearer token from an exec credential plugin, run again before it expires
Kubernetes API authentication token
Bearer token read from a file, re-read when the file changes
Compatibility helper for deprecated v0 Authentication calls
Compatibility helper for deprecated v0 Authorization calls
Compatibility helper for deprecated v0 Autoscaling calls
Compatibility helper for deprecated v0 Batch calls
CLI base class for Kubernetes::REST command-line tools
The create command of kube_client
The delete command of kube_client
The get command of kube_client
The raw command of kube_client
Generate IO::K8s classes from a CustomResourceDefinition
Bring up a minikube test cluster and run a command against it
Shared kubeconfig/auth options for CLI tools
CLI for watching Kubernetes resources
Compatibility helper for deprecated v0 Certificates calls
Compatibility helper for deprecated v0 Coordination calls
Compatibility helper for deprecated v0 Core calls
Compatibility helper for deprecated v0 error handling
Compatibility helper for deprecated v0 Events calls
Working examples for Kubernetes::REST with Minikube, K3s, and other clusters
HTTP request object
HTTP response object
HTTP client using HTTP::Tiny
Parse kubeconfig files and create Kubernetes::REST instances
The YAML reader for kubeconfig files and exec credential output
HTTP client using LWP::UserAgent
A single log line from the Kubernetes Pod Log API
Compatibility helper for deprecated v0 Networking calls
Compatibility helper for deprecated v0 Policy calls
Compatibility helper for deprecated v0 RBAC calls
Compatibility helper for deprecated v0 remote errors
Interface role for HTTP backends
Compatibility helper for deprecated v0 Scheduling calls
Kubernetes API server connection configuration
Compatibility helper for deprecated v0 Storage calls
Base class for backwards-compatible v0 API group wrappers
A single event from the Kubernetes Watch API

Examples