Skip to content

[api] add support for TunnelNodes as a Backend#23

Merged
theRealWardo merged 3 commits intomainfrom
mw-tun-bak
Jan 22, 2025
Merged

[api] add support for TunnelNodes as a Backend#23
theRealWardo merged 3 commits intomainfrom
mw-tun-bak

Conversation

@theRealWardo
Copy link
Copy Markdown
Member

I think I could see two options here, this one and putting TunnelRefs in BackendEndpoint

thoughts either way?


type TunnelNodePeer struct {
// TunnelNodeRef is a reference to a TunnelNode that this node should peer with.
type TunnelRefs struct {
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.

Should probably be singular Ref


// Connect tunnels for this backend.
// +optional
Tunnel *TunnelRef `json:"tunnel"`
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.

Suggested change
Tunnel *TunnelRef `json:"tunnel"`
Tunnel *TunnelRef `json:"tunnel,omitempty"`

@theRealWardo theRealWardo merged commit c8c611c into main Jan 22, 2025
@theRealWardo theRealWardo deleted the mw-tun-bak branch January 22, 2025 08:07
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