external

package
v0.0.0-...-bd48ef2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCustomClientSet

func GetCustomClientSet() *customClient.Clientset

GetCustomClientSet return custom clientset

func GetCustomInformerFactory

func GetCustomInformerFactory() customeInformers.SharedInformerFactory

GetCustomInformerFactory return custom informer factory

func GetK8sClientSet

func GetK8sClientSet() *kubernetes.Clientset

GetK8sClientSet return k8s clientset

func GetKubeInformerFactory

func GetKubeInformerFactory() informers.SharedInformerFactory

GetKubeInformerFactory return k8s informer factory

func Init

func Init(inCluster bool)

Init 初始化

func InitInformers

func InitInformers()

InitInformers 初始化informers

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller 自定义实现的Controller

func NewController

func NewController(
	ctx context.Context,
	k8sClientSet kubernetes.Interface,
	customClientSet customClient.Interface,
	k8sInformer appsinformers.DeploymentInformer,
	informer customInformers.RedisInformer) *Controller

NewController 自定义的创建controller的函数

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int) error

Run controller执行

Jump to

Keyboard shortcuts

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