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 |
Julian V. Modesto
|
f9460c5333
|
Use --dry-run=client,server in kubectl.
- Support --dry-run=server for subcommands apply, run, create, annotate,
expose, patch, label, autoscale, apply set-last-applied, drain, rollout undo
- Support --dry-run=server for set subcommands
- image
- resources
- serviceaccount
- selector
- env
- subject
- Support --dry-run=server for create subcommands.
- clusterrole
- clusterrolebinding
- configmap
- cronjob
- job
- deployment
- namespace
- poddisruptionbudget
- priorityclass
- quota
- role
- rolebinding
- service
- secret
- serviceaccount
- Remove GetClientSideDryRun
Kubernetes-commit: 13b80b48cd02b8263d910f2423a1f5b92cdf7644
|
2020-01-30 20:23:33 -05: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 |
Sean Sullivan
|
3ec9685c39
|
Rename test/data directory to testdata
Kubernetes-commit: 4ce97d6c48ae4735463f020430dd20539a03e8c5
|
2019-10-31 13:40:02 -07:00 |
Sean Sullivan
|
1cba7858ad
|
Update test data to reflect code move to staging
Kubernetes-commit: 58b59ae4e07f9d3718271a43740a4de9508d8688
|
2019-08-01 15:17:53 -07: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 |