Documentation ¶
Index ¶
- type Builder
- func (cb *Builder) APIExtClientOrDie(name string) apiext.Interface
- func (cb *Builder) ConfigClientOrDie(name string) configclientset.Interface
- func (cb *Builder) KubeClient(name string) (kubernetes.Interface, error)
- func (cb *Builder) KubeClientOrDie(name string) kubernetes.Interface
- func (cb *Builder) MachineConfigClient(name string) (mcfgclientset.Interface, error)
- func (cb *Builder) MachineConfigClientOrDie(name string) mcfgclientset.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder can create a variety of kubernetes client interface with its embedded rest.Config.
func NewBuilder ¶
NewBuilder returns a *ClientBuilder with the given kubeconfig.
func (*Builder) APIExtClientOrDie ¶
APIExtClientOrDie returns the kubernetes client interface for extended kubernetes objects.
func (*Builder) ConfigClientOrDie ¶
func (cb *Builder) ConfigClientOrDie(name string) configclientset.Interface
ConfigClientOrDie returns the kubernetes client interface for security related kubernetes objects such as pod security policy, security context.
func (*Builder) KubeClient ¶
func (cb *Builder) KubeClient(name string) (kubernetes.Interface, error)
KubeClient is used in onceFrom mode where we can or cannot have a cluster ready based on the configuration provided
func (*Builder) KubeClientOrDie ¶
func (cb *Builder) KubeClientOrDie(name string) kubernetes.Interface
KubeClientOrDie returns the kubernetes client interface for general kubernetes objects.
func (*Builder) MachineConfigClient ¶
func (cb *Builder) MachineConfigClient(name string) (mcfgclientset.Interface, error)
MachineConfigClient is used in onceFrom mode where we can or cannot have a cluster ready based on the configuration provided
func (*Builder) MachineConfigClientOrDie ¶
func (cb *Builder) MachineConfigClientOrDie(name string) mcfgclientset.Interface
MachineConfigClientOrDie returns the kubernetes client interface for machine config.