k3s/pkg
Kubernetes Submit Queue 01ec7a9eb8
Merge pull request #59809 from phsiao/59733_port_forward_with_target_port
Automatic merge from submit-queue (batch tested with PRs 59809, 59955). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubectl port-forward should resolve service port to target port

**What this PR does / why we need it**:

Continues on the work in #59705, this PR adds additional support for looking up targetPort for a service, as well as enable using svc/name to select a pod.

**Which issue(s) this PR fixes**:
Fixes #15180
Fixes #59733

**Special notes for your reviewer**:

I decided to create pkg/kubectl/util/service_port.go to contain two functions that might be re-usable.

**Release note**:
```release-note
`kubectl port-forward` now supports specifying a service to port forward to: `kubectl port-forward svc/myservice 8443:443`
```
2018-02-15 22:42:30 -08:00
..
api Remove myself (timothysc) from OWNERS files on areas that I do not 2018-02-12 18:56:41 -06:00
apis Rename ConfigOK to KubeletConfigOk 2018-02-14 19:36:52 -08:00
auth fix all the typos across the project 2018-02-11 11:04:14 +08:00
capabilities
client Fix typo 2018-02-01 19:11:19 +08:00
cloudprovider Merge pull request #59830 from khenidak/az-ratelimit 2018-02-15 16:43:37 -08:00
controller Merge pull request #59939 from dims/avoid-calls-to-cloud-instances-unless-taint-present 2018-02-15 16:43:34 -08:00
credentialprovider update azure API for auth 2018-02-12 14:07:05 +08:00
features Merge pull request #59630 from k82cn/k8s_59194_0 2018-02-15 09:10:58 -08:00
fieldpath
generated Move the kubeletconfig v1alpha1 API to beta, rename to kubelet.config.k8s.io 2018-02-14 17:30:22 -08:00
kubeapiserver Merge pull request #59492 from dims/remove-old-keystone-authenticator 2018-02-13 14:14:45 -08:00
kubectl Merge pull request #59809 from phsiao/59733_port_forward_with_target_port 2018-02-15 22:42:30 -08:00
kubelet Merge pull request #59953 from Random-Liu/fix-pod-scheduled 2018-02-15 20:16:44 -08:00
kubemark Secure Kubelet's componentconfig defaults while maintaining CLI compatibility 2018-02-13 18:10:15 -08:00
master Merge pull request #59685 from cheftako/pkg_master 2018-02-13 18:48:31 -08:00
printers Merge pull request #59353 from juanvallejo/jvallejo/update-name-printer-output 2018-02-15 10:37:19 -08:00
probe
proxy Standardize on KUBE_PROXY_MODE (not KUBEPROXY_MODE) 2018-02-14 21:26:54 -05:00
quota fix all the typos across the project 2018-02-11 11:04:14 +08:00
registry controller-manager: switch to config/option struct pattern 2018-02-13 11:16:17 +01:00
routes Remove /ui/ redirect 2018-02-12 10:54:33 -05:00
scheduler Merge pull request #59323 from zetaab/nodetaint 2018-02-15 09:52:10 -08:00
security rename func ValidatePodSecurityContext to ValidatePod 2018-02-14 10:55:50 +08:00
securitycontext
serviceaccount svcacct: move claim generation out of TokenGenerator 2018-02-06 13:19:54 -08:00
ssh
util Merge pull request #58433 from yue9944882/bugfix/lstat-parent-with-abs-path 2018-02-14 03:55:34 -08:00
version Kubelet flags take precedence 2018-01-29 10:07:37 -08:00
volume Merge pull request #59923 from jsafrane/volumemanager-logs 2018-02-15 20:16:38 -08:00
watch/json
.import-restrictions
BUILD Merge pull request #58295 from zouyee/outdate 2018-02-05 22:28:41 -08:00
OWNERS