Documentation
¶
Overview ¶
Package cluster provides function to interact with Kubernetes clusters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Name string
Namespace string
CS *kubernetes.Clientset
}
func NewInClusterContext ¶
NewInClusterContext creates a new Context for the in-cluster configuration. An "in-cluster" configuration means that the API server will assume its running inside a pod in a Kubernetes cluster and will configure the REST client from the pod's service account token and CA certificate.
type ContextManager ¶
type ContextManager interface {
HasContext(string) bool
GetContext(string) (Context, bool)
DefaultContext() (Context, bool)
}
func NewContextManager ¶
func NewContextManager( ctx context.Context, kubeConfig io.Reader, opts ContextManagerOpts, ) (ContextManager, error)
type ContextManagerOpts ¶
Click to show internal directories.
Click to hide internal directories.