Skip to content

feat: additional names of hosts-changed event - #109

Merged
DavidePrincipi merged 1 commit into
mainfrom
feat-7544-2
Sep 23, 2025
Merged

DavidePrincipi merged 1 commit into
mainfrom
feat-7544-2

Conversation

@DavidePrincipi

@DavidePrincipi DavidePrincipi commented Sep 18, 2025 •

Copy link
Copy Markdown
Member
  • Include default certificate names in the hosts-changed event (for set-default-certificate and set-certificate actions).
  • Emit the event only when the set of HTTP route hostnames actually changes, avoiding redundant notifications from delete-route and set-route.
  • Suppress duplicate events during Traefik restarts.

Refs NethServer/dev#7544

@DavidePrincipi DavidePrincipi self-assigned this Sep 18, 2025
@DavidePrincipi
DavidePrincipi marked this pull request as ready for review September 18, 2025 15:57

@Tbaile Tbaile left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a hard time remembering how this worked, but changes looks good

@DavidePrincipi
DavidePrincipi force-pushed the feat-7544 branch 3 times, most recently from 9959186 to e5985f4 Compare September 23, 2025 16:09
Base automatically changed from feat-7544 to main September 23, 2025 16:31
- Consider Traefik's default certificate names in the same way of HTTP
  routes. Notify hosts-changed event on set-default-certificate and
  set-certificate actions.

- Optimize hosts-changed event notification. The traefik.service unit
  runs write-hosts on restart. Fix delete-route and set-route actions to
  raise the event only if strictly needed. That means:
  + Traefik is not restarted
  + Names of HTTP routes were changed
@DavidePrincipi
DavidePrincipi merged commit a501ff0 into main Sep 23, 2025
@DavidePrincipi
DavidePrincipi deleted the feat-7544-2 branch September 23, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants