Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/core/v1alpha/backend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ type BackendEndpoint struct {
// +kubebuilder:validation:Format=ipv6
// +optional
IP string `json:"ip,omitempty"`

// Connect tunnels for this backend.
// +optional
Tunnel *TunnelRef `json:"tunnel,omitempty"`
}

type DynamicProxySpec struct {
Expand Down
8 changes: 4 additions & 4 deletions api/core/v1alpha/tunnel_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ type TunnelNode struct {
}

type TunnelNodeSpec struct {
Peers []TunnelNodePeer `json:"peers,omitempty"`
Peers []TunnelRef `json:"peers,omitempty"`
}

type TunnelNodePeer struct {
// TunnelNodeRef is a reference to a TunnelNode that this node should peer with.
type TunnelRef struct {
// TunnelNodeRef is a reference to an individual TunnelNode.
TunnelNodeRef *TunnelNodeRef `json:"tunnelNodeRef,omitempty"`
// LabelSelector is a label selector that selects the peers to peer with.
// LabelSelector is a label selector to dynamically select multiple TunnelNode objects.
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
}

Expand Down
63 changes: 35 additions & 28 deletions api/core/v1alpha/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 37 additions & 29 deletions api/generated/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.