Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleKubeClient ¶
func SimpleKubeClient(config *viper.Viper) (*kubernetes.Clientset, error)
SimpleKubeClient create a *kubernetes.Clientset by using viper config
Types ¶
type Application ¶
type Application struct { Config *viper.Viper KubeClient *kubernetes.Clientset // contains filtered or unexported fields }
Application is program entry
func InitApplication ¶
func InitApplication(config *viper.Viper) *Application
InitApplication init an application, the program only execute once
func (*Application) Endpoints2ClusterLoadAssignment ¶
func (a *Application) Endpoints2ClusterLoadAssignment(endpoints *k8sApiV1Core.Endpoints, healthStatus envoyApiV2Core.HealthStatus) *envoyApiV2.ClusterLoadAssignment
Endpoints2ClusterLoadAssignment convert Endpoints to ClusterLoadAssignment
func (*Application) WatchEndpoints ¶
func (a *Application) WatchEndpoints()
WatchEndpoints watch kubernetes endpoint changes
Click to show internal directories.
Click to hide internal directories.