Omer Aplatony
dc6975b78c
port-forward: fixed error handling for empty remote port
...
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Kubernetes-commit: c01a8a51af10811e182be896795168bbd561c7e9
2024-10-26 14:24:09 +03:00
Sean Sullivan
13611d4701
Graduate PortForwardWebsockets to Beta
...
Kubernetes-commit: 3ae3b4ea551443d8ef695d31bf0c51963fe35ac3
2024-06-15 16:09:23 -07:00
Sean Sullivan
858d3a5b72
portforward: tunnel spdy through websockets
...
Kubernetes-commit: 8b447d8c97e8823b4308eb91cf7d75693e867c61
2024-02-21 08:56:07 +00:00
Stephen Kitt
cfd2169f88
cli: replace intstr.FromInt with intstr.FromInt32
...
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Kubernetes-commit: 45836971f27ca70cd7742e8ee66e99e3c648cf9f
2023-03-14 16:17:48 +01:00
Arda Güçlü
3f05cfcd78
Migrate genericclioptions.IOStreams usage to genericiooptions
...
Kubernetes-commit: 00c30941260a27e6929aef84c7fdbc8f1508518c
2023-04-05 14:07:46 +03:00
Adrian Moreno
3de8ce8105
portforward: Fix UDP-only ports calculation
...
If a service has both TCP and UDP but the TCP port appears before in the
range loop, it will be considered a UDP-only port and the forwarding
will fail.
Fix that by calculating the difference between UDP ports and TCP ports.
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Kubernetes-commit: 21b598cbe752dc5d2a2bca0e46729c9e72d162a3
2020-09-11 19:50:11 +02:00
knight42
5ee889da0a
feat(port-forward): warn users about UDP port
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
Kubernetes-commit: ca8da7e2984a92a9c024f8f0e6cac2b9ae87339b
2020-06-01 12:28:01 +08:00
Marius Ziemke
a45347152c
fix kubectl port-forward for services with explicit local port
...
Kubernetes-commit: ef2eaa4f8f7ce85478310775a134047a77a8e310
2020-03-08 17:49:18 +01:00
Naoki Oketani
fe07b19cb4
Fix a bug in port-forward: named port not working with service
...
Kubernetes-commit: 73c1ab71e27eee0066ba637575e60093952f3ff1
2019-11-22 02:59:26 +09:00
Clayton Coleman
4ca8f5ecfe
test: kubectl unit tests should be using codecs without conversion
...
Tests are also refactored to use the simpler RESTClient code path.
Kubernetes-commit: 8a9b8c87c40ee65751828d9dd02f4f642588f0ce
2019-11-03 15:20:10 -05:00
clarklee92
87db492820
Modify the status code number to HTTP status semantics
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
Kubernetes-commit: f86f5ee14ef3c8adf9855ce16dcc57beca949719
2019-11-06 00:45:35 +08:00
Sean Sullivan
1483769081
Update gofmt
...
Kubernetes-commit: e2cae2344486af198f8ab38e4dd97d4f24dfd190
2019-08-01 13:14:06 -07:00
Sean Sullivan
5b48717f2d
Update import statements to reflect code move
...
Kubernetes-commit: acece3c2964115a4f29a43e368ad5de59dbbc258
2019-08-01 11:10:05 -07:00
Sean Sullivan
c6063dd846
Move pkg/kubectl/cmd/{command} to staging
...
Kubernetes-commit: 0e0ea523392f1121f61f99ac30a9bc2043eaed90
2019-08-01 11:01:40 -07:00