Documentation ¶
Index ¶
- Constants
- func GetNamespace() string
- func GetPodName() string
- func LoadNamespace() string
- func NewK8sClientset(opts ...Option) (*kubernetes.Clientset, error)
- func NewKubernetesConfig(cli *kubernetes.Clientset, opts ...Option) (hconf.DataSource, error)
- func NewOptions(opts ...Option) *options
- type Option
Constants ¶
View Source
const ServiceAccount = "/var/run/secrets/kubernetes.io/serviceaccount"
Variables ¶
This section is empty.
Functions ¶
func LoadNamespace ¶
func LoadNamespace() string
func NewK8sClientset ¶
func NewK8sClientset(opts ...Option) (*kubernetes.Clientset, error)
func NewKubernetesConfig ¶
func NewKubernetesConfig(cli *kubernetes.Clientset, opts ...Option) (hconf.DataSource, error)
func NewOptions ¶
func NewOptions(opts ...Option) *options
Types ¶
type Option ¶
type Option func(*options)
func KubeConfigPath ¶
func KubeMasterUrl ¶
func WithContext ¶
func WithNamespace ¶
Click to show internal directories.
Click to hide internal directories.