Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Kubernetes() kubernetes.Interface Config() *rest.Config }
func NewKubernetesClient ¶
func NewKubernetesClient(options *KubernetesOptions) (Client, error)
NewKubernetesClient creates a kubernetesClient
func NewKubernetesClientOrDie ¶
func NewKubernetesClientOrDie(options *KubernetesOptions) Client
NewKubernetesClient creates kubernetesClient and panic if there is an error
type KubernetesOptions ¶
type KubernetesOptions struct { // kubeconfig path, if not specified, will use // in cluster way to create clientset KubeConfig string `json:"kubeconfig" yaml:"kubeconfig"` // kubernetes apiserver public address, used to generate kubeconfig // for downloading, default to host defined in kubeconfig // +optional Master string `json:"master,omitempty" yaml:"master"` // kubernetes clientset qps // +optional QPS float32 `json:"qps,omitempty" yaml:"qps"` // kubernetes clientset burst // +optional Burst int `json:"burst,omitempty" yaml:"burst"` }
func NewKubernetesOptions ¶
func NewKubernetesOptions() *KubernetesOptions
NewKubernetesOptions returns a `zero` instance
func (*KubernetesOptions) AddFlags ¶
func (k *KubernetesOptions) AddFlags(fs *pflag.FlagSet, c *KubernetesOptions)
func (*KubernetesOptions) Validate ¶
func (k *KubernetesOptions) Validate() (errs []error)
Click to show internal directories.
Click to hide internal directories.