Commit Graph

12252 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
fdefde717a Merge pull request #97590 from heqg/typo-expected-03
Fix typo in staging/src/.../wait_test.go
2021-01-03 04:03:54 -08:00
ialidzhikov
8a0bce0021 Fix staticcheck in staging/src/k8s.io/apiserver/pkg/admission/initializer
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-01-02 22:41:13 +02:00
xiongzhongliang
a7e15c7606 add -q as shorthand for --quiet 2020-12-31 19:18:17 +08:00
熊中谅10171568
033e4a5818 add more usage info for kubectl wait option --for
add more usage info for kubectl wait option --for
2020-12-31 16:31:37 +08:00
Kubernetes Prow Robot
b68e25113c Merge pull request #97433 from pandaamanda/kubectl_completion
fix typo of command “kubectl completion -h”
2020-12-30 20:23:50 -08:00
wojtekt
8ce71fbae2 Autogenerated 2020-12-30 16:00:41 +01:00
wojtekt
0f88bbe9b1 Promote Immutable Secrets/ConfigMaps feature to GA 2020-12-30 16:00:41 +01:00
he.qingguo
0f0fb40b8b Fix typo in staging/src/.../wait_test.go
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn>
2020-12-30 14:10:04 +08:00
Sachin Kumar Singh
1e4cba79ef Remove the dependency between create poddisruptionbudget and generators 2020-12-29 21:19:58 +05:30
Kubernetes Prow Robot
9406e145c2 Merge pull request #97326 from victor-timofei/deltafifo-doc
Update DeltaFIFO documentation and group Delta definitions to the top of the file
2020-12-28 23:50:28 -08:00
Kubernetes Prow Robot
b860d08e4b Merge pull request #96226 from jiahuif/feature/migration-configuration/parsing
leader migration configuration: parsing & validation.
2020-12-28 10:12:27 -08:00
André Martins
659f9d383a pkg/labels: replace bytes.Buffer with strings.Builder
strings.Builder has better performance over bytes.Buffer for building
strings:

Benchmark results:
```
name                 old time/op    new time/op    delta
RequirementString-8    92.6ns ± 1%    46.9ns ± 1%  -49.34%  (p=0.000 n=4+5)

name                 old alloc/op   new alloc/op   delta
RequirementString-8     96.0B ± 0%     32.0B ± 0%  -66.67%  (p=0.008 n=5+5)

name                 old allocs/op  new allocs/op  delta
RequirementString-8      2.00 ± 0%      1.00 ± 0%  -50.00%  (p=0.008 n=5+5)
```

Signed-off-by: André Martins <aanm90@gmail.com>
2020-12-28 15:00:59 +01:00
André Martins
b3561401fd pkg/util/net: replace bytes.Buffer with strings.Builder
strings.Builder has better performance over bytes.Buffer for building
strings:

Benchmark results:
```
name                  old time/op    new time/op    delta
_ParseQuotedString-8     146ns ±20%     105ns ± 2%  -28.14%  (p=0.008 n=5+5)

name                  old alloc/op   new alloc/op   delta
_ParseQuotedString-8     80.0B ± 0%     24.0B ± 0%  -70.00%  (p=0.008 n=5+5)

name                  old allocs/op  new allocs/op  delta
_ParseQuotedString-8      2.00 ± 0%      2.00 ± 0%     ~     (all equal)
```

Signed-off-by: André Martins <aanm90@gmail.com>
2020-12-28 14:54:46 +01:00
chymy
25f8545b9d Fix on comments
Signed-off-by: chymy <chang.min1@zte.com.cn>
2020-12-28 15:28:51 +08:00
xiongzhongliang
5eff181ec3 code cleanup for kubectl alpha -h 2020-12-27 07:30:44 +08:00
Guangwen Feng
23adf46008 Fix typo in comment
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
2020-12-25 14:24:30 +08:00
Victor Timofei
3a107951f0 Update the wording of the DeltaFIFO 2020-12-24 16:33:04 +02:00
Rajalakshmi-Girish
98948ad809 fixes the unit tests to be more tolerant with error messages 2020-12-24 04:47:46 +00:00
Masashi Honma
8d83dfe207 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.
2020-12-24 10:32:34 +09:00
Kubernetes Prow Robot
e20300b1a0 Merge pull request #93285 from aarnaud/windows-devicemanager
Port deviceManager to windows container manager to enable GPU access
2020-12-23 12:00:26 -08:00
he.qingguo
18b7fe8fd8 Optimized some non-standard variable names
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn>
2020-12-23 09:20:04 +08:00
he.qingguo
d5966cb5d9 cleanup: fix some error log capitalization
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn>
2020-12-23 08:36:43 +08:00
Haowei Cai
ba143a7bdd crd create event: skip storage teardown if the crd info doesn't change 2020-12-22 13:00:06 -08:00
Gurleen Grewal
73f24d6beb Fix golint issues in api/admission and api/admissionregistration 2020-12-22 12:13:41 -08:00
Kubernetes Prow Robot
d815833a30 Merge pull request #97206 from tkashem/panic
clean up executing request on panic
2020-12-22 10:26:26 -08:00
xiongzhongliang
fe094b20d2 fix typo of kubectl completion -h 2020-12-22 16:49:39 +08:00
wojtekt
d0726e4b13 Unify variable naming between GuaranteedUpdate and Delete in storage 2020-12-21 14:11:17 +01:00
Nick Maliwacki
44aff99175 wait ensures observedGeneration >= generation 2020-12-20 00:35:31 -08:00
Kubernetes Prow Robot
c995039d62 Merge pull request #97337 from dlorenc/upd
Updates deps in order to remove rsc.io/sampler
2020-12-19 22:32:25 -08:00
Mike Spreitzer
ef1e2039b5 Relax apf_controller's reaction to certain errors
When the error is due to the object having been deleted, the
controller does not need to do anything before the coming
notification.
2020-12-19 21:17:15 -05:00
Abu Kashem
13cedca0eb clean up executing request on panic 2020-12-18 22:13:15 -05:00
Kubernetes Prow Robot
b749a3a421 Merge pull request #97366 from nilo19/bug/fix-vmss-name
Fix nil VMSS name when setting service to auto mode
2020-12-18 17:54:24 -08:00
Dan Lorenc
5635489c4e Updates github.com/golang/mock in order to remove rsc.io/sampler.
I noticed rsc.io/sampler was in here, which didn't make any sense.
It appears to have been mistakenly included in a transitive dependency
at some point.

This PR attempts to fix that by updating the intermediate deps far enough
to stop requiring the rsc.io packages.
2020-12-18 18:56:29 -06:00
Kubernetes Prow Robot
4645e11a2d Merge pull request #96056 from zroubalik/patch-1
Add KEDA to the External Metrics API implementations
2020-12-18 15:02:25 -08:00
Kubernetes Prow Robot
b538d23066 Merge pull request #96844 from gnufied/use-force-unmount
Use force umount for nfs volumes
2020-12-18 12:32:25 -08:00
Abu Kashem
7114319b3e fix the deadlock in priority and fairness config controller 2020-12-18 10:43:23 -05:00
Kubernetes Prow Robot
979c644df2 Merge pull request #97171 from deads2k/deprecate-psp
deprecate PSP in 1.21, but leave removal at 1.25
2020-12-17 22:16:25 -08:00
Kebe
f725ca1616 Fix BoundObjectRef APIVersion proto name 2020-12-18 11:52:17 +08:00
Kubernetes Prow Robot
bc404af504 Merge pull request #97359 from Cweiping/fix/fix_typo_error
fix typo err for disk to pid
2020-12-17 17:04:24 -08:00
Indeed
de5a30a786 migration configuration: parsing & validation. 2020-12-17 14:49:14 -08:00
Kubernetes Prow Robot
974cf4c9c2 Merge pull request #89828 from wojtek-t/suggestions_for_delete
Try to avoid etcd.Get as part of Delete operation
2020-12-17 12:54:26 -08:00
Clayton Coleman
ac77b3835b generated: Changes for DaemonSet max surge 2020-12-17 09:00:56 -05:00
Clayton Coleman
5aa53f885c api: Add DaemonSet MaxSurge
The MaxSurge field on DaemonSet rolling updates allows a daemonset
workload to have two pods running simultaneously on a node during
an update in order to perform zero-disruption handoffs of client
traffic.
2020-12-17 09:00:55 -05:00
qini
55fd3685d9 fix nil vmss name 2020-12-17 20:07:51 +08:00
Kubernetes Prow Robot
8b8de03168 Merge pull request #97353 from MikeSpreitzer/testable-config
Define TestableConfig in k/apiserver/pkg/util/flowcontrol
2020-12-17 01:45:09 -08:00
Kubernetes Prow Robot
e11e9d4c6c Merge pull request #97033 from patrickshan/pshan/bump/Azure/go-autorest/autorest
Bump github.com/Azure/go-autorest/autorest to v0.11.12
2020-12-17 00:47:09 -08:00
00255991
ea7f41af67 Modify LeaderElectionConfiguration .ResourceNamespace comment 2020-12-17 16:05:54 +08:00
Weiping Cai
51d563824d fix typo err
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
2020-12-17 15:19:45 +08:00
Mike Spreitzer
10df6d459b Define TestableConfig in k/apiserver/pkg/util/flowcontrol
Collect the parameters of newTestableController into a named type.

Also tolerate the surprising situation in which a request's user
groups include neither `system:authenticated` nor
`system:unauthenticated` --- because this is observed to happen in
some tests.

Also a few other minor fixups.
2020-12-16 20:05:08 -05:00
Kubernetes Prow Robot
c4aca30005 Merge pull request #94813 from dramich/nometrics
Don't start goroutine for noMetrics
2020-12-16 15:51:09 -08:00