Documentation ¶
Index ¶
- Constants
- Variables
- type RegistrationCache
- type RegistrationsController
- func (r *RegistrationsController) Logger(name types.NamespacedName) logr.Logger
- func (r *RegistrationsController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *RegistrationsController) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- func (r *RegistrationsController) UpdateStatus(ctx context.Context, log logr.Logger, registration *v1alpha1.Registration, ...) error
- type Result
Constants ¶
View Source
const ( ConditionSynced = "Synced" ConditionRegistered = "Registered" ConditionDeregistered = "Deregistered" )
Conditions.
View Source
const ( SyncError = "SyncError" ConsulErrorRegistration = "ConsulErrorRegistration" ConsulErrorDeregistration = "ConsulErrorDeregistration" ConsulDeregistration = "ConsulDeregistration" )
Status Reasons.
View Source
const NotInServiceMeshFilter = "ServiceMeta[\"managed-by\"] != \"consul-k8s-endpoints-controller\""
View Source
const (
RegistrationFinalizer = "registration.finalizers.consul.hashicorp.com"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RegistrationCache ¶
type RegistrationCache struct { ConsulClientConfig *consul.Config ConsulServerConnMgr consul.ServerConnectionManager Services map[string]*v1alpha1.Registration UpdateChan chan string // contains filtered or unexported fields }
func NewRegistrationCache ¶
func NewRegistrationCache(ctx context.Context, consulClientConfig *consul.Config, consulServerConnMgr consul.ServerConnectionManager, k8sClient client.Client, namespacesEnabled, partitionsEnabled bool) *RegistrationCache
type RegistrationsController ¶
type RegistrationsController struct { client.Client configentries.FinalizerPatcher Scheme *runtime.Scheme Cache *RegistrationCache Log logr.Logger }
RegistrationsController is the controller for Registrations resources.
func (*RegistrationsController) Logger ¶
func (r *RegistrationsController) Logger(name types.NamespacedName) logr.Logger
func (*RegistrationsController) SetupWithManager ¶
func (*RegistrationsController) UpdateStatus ¶
func (r *RegistrationsController) UpdateStatus(ctx context.Context, log logr.Logger, registration *v1alpha1.Registration, result Result) error
Click to show internal directories.
Click to hide internal directories.