Documentation
¶
Index ¶
- Variables
- func ConfigMapToConfig(cm *coreV1.ConfigMap) (*[]Config, error)
- func FileToConfig(filePath string) (*[]Config, error)
- func GetAliases(app string, config []Config) []coreV1.HostAlias
- func GetAliasesByKV(k, v string, config []Config) []coreV1.HostAlias
- func GetClient(kubeMaster, kubeConfig string) *kubernetes.Clientset
- type Config
- type Controller
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IntializerConfigmapName string InitializerName string IntializerNamespace string )
Functions ¶
func FileToConfig ¶
func GetClient ¶
func GetClient(kubeMaster, kubeConfig string) *kubernetes.Clientset
Get a clientset with in-cluster config.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewHostAliasesInitializer ¶
func NewHostAliasesInitializer(clientset *kubernetes.Clientset, conf *[]Config) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(ctx <-chan struct{})
Click to show internal directories.
Click to hide internal directories.