kubectl/pkg
Masashi Honma 3c3bc4f5e8 Namespace has no effect when exposing deployment with --dry-run=client
This is how to reproduce.

$ kubectl create ns testns
$ kubectl -n testns create deployment test-deploy --image=nginx
$ kubectl -n testns expose deployment.apps/test-deploy --port=80 --dry-run=client -o yaml
apiVersion: v1
kind: Service
metadata:
  creationTimestamp: null
  labels:
    app: test-deploy
  name: test-deploy
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 80
  selector:
    app: test-deploy
status:
  loadBalancer: {}

If --dry-run=client is not specified, namespace element is contained in the yaml.

Kubernetes-commit: 8d83dfe2075be68344a633418de7ef81e1dd5957
2020-12-24 09:40:10 +09:00
..
apply Rename test/data directory to testdata 2019-10-31 13:40:02 -07:00
apps Move pkg/kubectl/apps to staging 2019-07-24 20:02:05 -07:00
cmd Namespace has no effect when exposing deployment with --dry-run=client 2020-12-24 09:40:10 +09:00
describe fix invalid indentation 2021-01-12 13:02:52 +09:00
drain Fixes high CPU usage in kubectl drain 2020-10-02 16:02:12 -03:00
explain Improve kubectl explain formatting-preservation 2020-06-05 00:46:51 -04:00
generate Add datapolicy tags to staging/src/k8s.io/kubectl 2020-10-29 18:11:22 +01:00
generated Add sigs for root folders 2020-08-11 10:35:20 -04:00
metricsutil Sort kubectl top output when --sort-by and --containers are used together 2020-08-06 11:47:09 -04:00
polymorphichelpers Add tests for daemonset view history 2020-09-05 22:10:28 +05:30
proxy Add NewProxyHandler func 2021-01-04 15:58:23 +08:00
rawhttp refactor 2020-01-27 18:19:44 -08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme remove pod presets 2020-08-18 16:31:46 -04:00
util Downward API hugepages 2020-11-06 14:22:53 -05:00
validation Move pkg/kubectl/validation to staging 2019-06-26 12:56:28 -07:00