Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConsulRegisterEnabledAnnotation string = "consul.register/enabled"
)
These are valid annotations names which are take into account. "ConsulRegisterEnabledAnnotation" is a name of annotation key for `enabled` option.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller describes the attributes that are uses by Controller
func (*Controller) Clean ¶
func (c *Controller) Clean() error
Clean checks Consul services and remove them if service does not appear in K8S cluster
func (*Controller) Sync ¶
func (c *Controller) Sync() error
Sync synchronizes services between Consul and K8S cluster
type FactoryAdapter ¶
FactoryAdapter has a method to work with Controller resources.
func New ¶
func New(clientset *kubernetes.Clientset, consulInstance consul.Adapter, cfg *config.Config, namespace string) FactoryAdapter
New creates an instance of controller
Click to show internal directories.
Click to hide internal directories.