feat: add connections to Runner configuration #1378
No reviewers
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/runner!1378
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "aahlenst/runner:server-settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduce a new configuration element called
serverthat can hold one or moreconnections. It enables connecting Forgejo Runner to multiple Forgejo instances (not implemented yet). It is planned thatserver.connectionsfully replaces the runnner file.runner.See forgejo/forgejo-actions-feature-requests#88 for background and design considerations.
Attention: stacked on top of #1377.
Questions/notes:
Connectionsis a map. Helps generating better diagnostics if multiple connections are present and one is invalid. Advantage of the map: YAML enforces that names are unqiue..runner. The Runner administrator might not want to make every label available on every connection. Furthermore, different Forgejo instances might have labels with different meanings.labelbe an object? Could help if plan on expanding the configuration options for labels. I lean towards no.@aahlenst wrote in #1378 (comment):
Sure, simple. 👍 I feel this is coming at some point but if we can avoid it, I'm happy.
Sounds good.
@ -42,0 +85,4 @@// Connection defines a connection to a Forgejo instance.type Connection struct {URL *url.URL // URL of the Forgejo instance to connect to. Mandatory value.Why a pointer for this field?
Ah, never mind -- all the methods on
url.URLtake a pointer receiver. 👍803834ba3f7a7aedc9c7