kubeconfig

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package kubeconfig implements the credential.Credential interface for Kubernetes token-based authentication. When a workspace mount targets the host kubeconfig file or directory and the current context uses token-based auth, this credential intercepts the mount and substitutes a pruned kubeconfig containing only the current context with a placeholder token. The real token is forwarded through the OneCLI proxy as a Bearer Authorization header on requests to the cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() credential.Credential

New returns a new kubeconfig Credential implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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