client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Wraps some of the initialization details for the k8s clientset

Index

Constants

View Source
const UseInCluster = "use-in-cluster"

Variables

This section is empty.

Functions

func GetClientSet

func GetClientSet(kubeConfig *rest.Config) (*kubernetes.Clientset, error)

Based on the application configuration, retrieve the k8s clientset

func GetKubeConfig

func GetKubeConfig(appConfig *config.Application) (*rest.Config, error)

Types

type Client

type Client struct {
	Clientset kubernetes.Interface
}

Jump to

Keyboard shortcuts

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