Skip to content

Commit

Permalink
views: Add shortcut to ServersTransport*
Browse files Browse the repository at this point in the history
Add shortcuts to ServersTransport and ServersTransportTCP,
respectively, from __IngressRouteEntry and
__IngressRouteTCPEntry.

Signed-off-by: David Weinehall <[email protected]>
  • Loading branch information
taotriad committed Dec 29, 2024
1 parent deeb5d7 commit 55be6ec
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
7 changes: 6 additions & 1 deletion views/IngressRouteTCP.traefik.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ infoview:
fields: ["entry_points", "tls_header", "tls_cert_resolver",
"tls_secret_name", "tls_options_header",
"tls_options_name", "tls_options_namespace",
"tls_domains"]
"tls_domains", "tls_passthrough"]
rows:
entry_points:
header: [["Entry Points:", ["main", "infoheader"]]]
Expand Down Expand Up @@ -68,6 +68,11 @@ infoview:
path: "spec#tls#options#namespace"
default: "<none>"
type: "str"
tls_passthrough:
header: [[" Passthrough:", ["main", "infoheader"]]]
path: "spec#tls#passthrough"
default: "<none>"
type: "bool"
tls_secret_name:
header: [[" ", ["main", "infoheader"]],
["S", ["main", "infoheader_shortcut"]],
Expand Down
15 changes: 15 additions & 0 deletions views/__IngressRouteEntry.traefik.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,18 @@ infoview:
api_family: "traefik.io"
name_path: 1
namespace_path: 0
"ServersTransport":
key: "t"
modifier: "shift"
read_only: true
helptext: "Open ServersTransport"
action: "call"
action_call: "resourceinfodispatch_with_lookup"
force_update: true
action_args:
_pass_selected: true
_pass_selected_obj: true
kind: "ServersTransport"
api_family: "traefik.io"
name_path: "serversTransport"
namespace_path: "namespace"
15 changes: 15 additions & 0 deletions views/__IngressRouteTCPEntry.traefik.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,18 @@ infoview:
api_family: "traefik.io"
name_path: 1
namespace_path: 0
"ServersTransportTCP":
key: "t"
modifier: "shift"
read_only: true
helptext: "Open ServersTransportTCP"
action: "call"
action_call: "resourceinfodispatch_with_lookup"
force_update: true
action_args:
_pass_selected: true
_pass_selected_obj: true
kind: "ServersTransportTCP"
api_family: "traefik.io"
name_path: "serversTransport"
namespace_path: "_extra_data#namespace"

0 comments on commit 55be6ec

Please sign in to comment.