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 ¶
func New(newRoundTripper apifunc.K8sRoundTripperFactory) runner.BuiltinFunction
New returns a runner.BuiltinFunction whose Run method obtains its Kubernetes client and RESTMapper through newRoundTripper.
Types ¶
This section is empty.