[PR #628] [MERGED] Update all nodes after ACL has been reloaded with sighup #1536

Closed
opened 2025-12-29 02:30:28 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/628
Author: @kradalby
Created: 6/11/2022
Status: Merged
Merged: 6/11/2022
Merged by: @kradalby

Base: mainHead: acl-update-nodes


📝 Commits (2)

  • 7e6291c Change Set state change function to filter instead of single namespace
  • 0c2648c Update the nodes after we have reloaded the ACL policy with sighup

📊 Changes

2 files changed (+35 additions, -6 deletions)

View changed files

📝 app.go (+20 -6)
📝 namespaces.go (+15 -0)

📄 Description

This PR makes the setLastStateChangeToNow function take a list of
namespaces instead of a single namespace. If no namespaces is passed,
all namespaces will be updated. This means that the argument acts like a
filter.

Update the nodes after we have reloaded the ACL policy with sighup


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/628 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 6/11/2022 **Status:** ✅ Merged **Merged:** 6/11/2022 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `acl-update-nodes` --- ### 📝 Commits (2) - [`7e6291c`](https://github.com/juanfont/headscale/commit/7e6291c21c480f797bce6ee1611ad45702032ce8) Change Set state change function to filter instead of single namespace - [`0c2648c`](https://github.com/juanfont/headscale/commit/0c2648c1889c332bca61e82006793ea40695faa1) Update the nodes after we have reloaded the ACL policy with sighup ### 📊 Changes **2 files changed** (+35 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `app.go` (+20 -6) 📝 `namespaces.go` (+15 -0) </details> ### 📄 Description This PR makes the setLastStateChangeToNow function take a list of namespaces instead of a single namespace. If no namespaces is passed, all namespaces will be updated. This means that the argument acts like a filter. Update the nodes after we have reloaded the ACL policy with sighup --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:30:28 +01:00
adam closed this issue 2025-12-29 02:30:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1536