k8sget

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package k8sget implements the k8s.get builtin function: a generic, idempotent read of a single Kubernetes object, identified by api_version, kind, (optional) namespace, and name. Runs in-process inside kas; callers construct it with a K8sRoundTripperFactory. In production that factory routes to the tenant cluster's apiserver through agentk; k8s.get turns its http.RoundTripper into a dynamic Kubernetes client plus a discovery-backed RESTMapper internally. It encodes no resource-specific logic — the workflow decides which fields of the returned object matter. See gitlab-org/gitlab#600983.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a runner.BuiltinFunction whose Run method obtains its Kubernetes client and RESTMapper through newRoundTripper.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL