Creating a service and annotating it with consul.register/enabled=true registers the service. If the annotation is later removed the event shows up in the logs correctly:
controller.go:567] Service nginx in utility namespace is disabled by annotation. Value: false
But the service is not de-registered at all. Even if the service is deleted from kube it's status is not synced. The correct behavior should be to delete the service from consul if the annotation is disabled.
@tczekajlo I can try to fix the issue if you agree.
Creating a service and annotating it with
consul.register/enabled=true
registers the service. If the annotation is later removed the event shows up in the logs correctly:But the service is not de-registered at all. Even if the service is deleted from kube it's status is not synced. The correct behavior should be to delete the service from consul if the annotation is disabled.
@tczekajlo I can try to fix the issue if you agree.