Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func K8sRestConfig ¶
K8sRestConfig gets rest config for K8s cluster
func NewK8sClientSet ¶
func NewK8sClientSet(k8sRestConfig *rest.Config) (kubernetes.Interface, error)
NewK8sClientSet creates and returns client set
Types ¶
type Git ¶
type Git struct { Owner string `yaml:"owner"` Repo string `yaml:"repo"` Ref string `yaml:"ref"` FilePath string `yaml:"filePath"` AccessToken string `yaml:"accessToken"` PullInterval string `yaml:"pullInterval"` AuthRequired bool `yaml:"authRequired"` Disabled bool `yaml:"disabled"` }
Git holds config that can be used to connect to Git repo
type K8sClient ¶
type K8sClient struct {
Clientset kubernetes.Interface
}
K8sClient represents the Kubernetes client object
type Provider ¶
type Provider struct {
Git *Git `yaml:"git"`
}
Provider holds the config of all the supported config providers
type Reloader ¶
type Reloader struct { Provider Provider `yaml:"configProvider"` Resource Resource `yaml:"resource"` ReloadEndpoint string `yaml:"reloadEndpoint"` }
Reloader holds reloader config
type ReloaderConfig ¶
type ReloaderConfig struct {
Reloaders []Reloader `yaml:"reloaders"`
}
ReloaderConfig holds slice of reloaders
func LoadConfig ¶
func LoadConfig(configFilePath string) (*ReloaderConfig, error)
LoadConfig loads the reloaders config from the config file
Click to show internal directories.
Click to hide internal directories.