Commit Graph

100461 Commits

Author SHA1 Message Date
Billie Cleek
a7834389b4 check APIStatus.Code in Is* family of functions
Check the Code in the Is family of functions where it makes sense. This
was already done in a couple of functions, but there were many others
where checking the code makes sense.

Consider known reasons in the Is* family of functions for checking
errors based on StatusReason and code.

Maintain backward compatibility by not checkng APIStatus for an unknown
reason in either IsTooManyRequests or IsRequestEntityToLargeError

Add tests for error types by code

Add tests to exercise error checks using both reasons and codes.
2021-08-04 15:28:08 -07:00
Kubernetes Prow Robot
62bc76b0de
Merge pull request #101809 from justaugustus/go116
[go1.16] Update to go1.16.4
2021-05-07 15:41:18 -07:00
Kubernetes Prow Robot
6296c6e4d3
Merge pull request #101793 from houjun41544/20210507-nodevolumelimits
Delete duplicate judgments
2021-05-07 14:35:30 -07:00
Kubernetes Prow Robot
937a3db3a2
Merge pull request #101752 from nilo19/fix/tag-static-ip
fix: not tagging static public IP
2021-05-07 14:35:20 -07:00
Kubernetes Prow Robot
f697cb8d94
Merge pull request #101684 from jackfrancis/e2e-wait-for-nodes-retyable-error
test: retryable error in wait for ready nodes test
2021-05-07 14:35:03 -07:00
Kubernetes Prow Robot
c224ca7674
Merge pull request #101800 from dims/add-a-retry-for-apk-operations
[agnhost] Add a retry for apk operations
2021-05-07 13:32:10 -07:00
Kubernetes Prow Robot
160cdbbdca
Merge pull request #101534 from kassarl/issue-98281
Use GA topology labels for Azuredisk
2021-05-07 13:32:00 -07:00
Kubernetes Prow Robot
ea67c61639
Merge pull request #101452 from wangyx1992/changlog21-new
CHANGELOG: fix punctuation errors in 1.21
2021-05-07 13:31:52 -07:00
Kubernetes Prow Robot
548fb43643
Merge pull request #101292 from AliceZhang2016/job_controller_metrics
Graduate indexed job to beta
2021-05-07 13:31:44 -07:00
Kubernetes Prow Robot
c9bd08a3c4
Merge pull request #101046 from lojies/fixbrokenlink
fix broken link in some files
2021-05-07 13:31:34 -07:00
Kubernetes Prow Robot
d9abcee491
Merge pull request #100936 from lojies/cleanuppkgapi
code cleanup for pkg/api and pkg/apis
2021-05-07 13:31:25 -07:00
Kubernetes Prow Robot
10b09e8a46
Merge pull request #100326 from wzshiming/fix/memory-leak
Fix watchForLockfileContention memory leak
2021-05-07 13:31:16 -07:00
Kubernetes Prow Robot
0a46301891
Merge pull request #98028 from tkashem/apf-post-startup-fix
add auto update for priority & fairness bootstrap configuration objects
2021-05-07 13:31:03 -07:00
Stephen Augustus
5b530da51f [go1.16] Update to go1.16.4
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-05-07 15:47:54 -04:00
Jack Francis
e67bce7077 test: retryable error in wait for ready nodes test 2021-05-07 12:19:36 -07:00
Kubernetes Prow Robot
5772839933
Merge pull request #90635 from desaintmartin/type-container-securitycontext
Container type: document that SecurityContext applies to Container
2021-05-07 12:05:03 -07:00
Abu Kashem
759a64136b
add auto update for apf bootstrap configuration
Take the following approach:
On a fresh install, all bootstrap configuration objects will
have auto update enabled via the following annotation :
`apf.kubernetes.io/autoupdate: 'true'`

The kube-apiserver periodically checks the bootstrap configuration
objects on the cluster and applies update if necessary.

We enforce an 'always auto-update' policy for the mandatory
configuration object(s).

We update the suggested configuration objects when:
- auto update is enabled (`apf.kubernetes.io/autoupdate: 'true'`) or
- auto update annotation key is missing but `generation` is `1`

If the configuration object is missing the annotation key, we add
it appropriately:
it is set to `true` if `generation` is `1`, `false` otherwise.

The above approach ensures that we don't squash changes made by an
operator. Please note, we can't protect the changes made by the
operator in the following scenario:
- the user changes the spec and then deletes and recreates
  the same object. (generation resets to 1)

remove using a marker
2021-05-07 14:23:17 -04:00
Kubernetes Prow Robot
c76e21806b
Merge pull request #101390 from caesarxuchao/minor
minor change, move the comment to the right line
2021-05-07 10:47:16 -07:00
Kubernetes Prow Robot
d76d217b0f
Merge pull request #97867 from lauchokyip/fixstaticerrors
Fix staticcheck on vendor/k8s.io/apiserver/pkg/server/httplog
2021-05-07 10:47:03 -07:00
Davanum Srinivas
fdaa44da73
[agnhost] Add a retry for apk operations
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-05-07 12:44:37 -04:00
Kubernetes Prow Robot
d9ac823477
Merge pull request #97428 from tkashem/inner-handler-timeout
add more context to log after a request times out
2021-05-07 09:03:03 -07:00
houjun
447e55132a Delete duplicate judgments 2021-05-07 22:44:41 +08:00
Abu Kashem
66587afb60
add more context to post timeout request activities 2021-05-07 10:20:33 -04:00
Mengxue Zhang
0c99f29f98 add restriction to indexed job name 2021-05-07 13:29:01 +00:00
Kubernetes Prow Robot
6c658a86f9
Merge pull request #101523 from GreenApple10/feature/cleanslice_nil
Omit comparison with boolean constant
2021-05-07 03:37:03 -07:00
Kubernetes Prow Robot
c08526c7f7
Merge pull request #100216 from yangjunmyfm192085/run-test29
Fix misspelling of condition.
2021-05-07 00:21:02 -07:00
wangyx1992
75fc3e763d CHANGELOG: fix punctuation errors in 1.21
Signed-off-by: wangyx1992 <wang.yixiang@zte.com.cn>
2021-05-07 14:27:57 +08:00
Kubernetes Prow Robot
c345a41c49
Merge pull request #101773 from Jiawei0227/deprecatePlugins
Add some soon-to-be-removed plugins to deprecated volume plugin list
2021-05-06 23:07:02 -07:00
Kubernetes Prow Robot
8b1c82a34c
Merge pull request #101772 from swetharepakula/bump-glbc-image
Update glbc image to v1.12.0
2021-05-06 22:05:02 -07:00
Kubernetes Prow Robot
43e3669482
Merge pull request #101757 from pacoxu/test-fix-registry
compare the func with .Pointer() in scheduler registry-test
2021-05-06 20:59:03 -07:00
Kubernetes Prow Robot
f101acdbe2
Merge pull request #97663 from heqg/unused-variable-Code
remove unused variable of Code
2021-05-06 19:41:02 -07:00
Jiawei Wang
ce87fc97a1 DAdd some soon-to-be-removed plugins to deprecated volume plugin list 2021-05-06 18:41:37 -07:00
Kubernetes Prow Robot
5663875648
Merge pull request #101768 from jingxu97/may/podlog
Add function to copy a single pod log in podlogs
2021-05-06 18:37:02 -07:00
Kubernetes Prow Robot
ca0c04e4d3
Merge pull request #101164 from vinayakankugoyal/apiservernonroot
Run control-plane as non root in kube-up.
2021-05-06 17:33:14 -07:00
Kubernetes Prow Robot
8da9d2ff55
Merge pull request #100940 from markusthoemmes/fake-client-interface
Implement a FakeClient interface
2021-05-06 17:33:02 -07:00
Jing Xu
89edde3b31 Add function to copy a single pod log in podlogs
The existing function in podlogs is copyAllLogs from a namespace. Add a
new function to copy log from a single pod.

Change-Id: I39d139a2a57d72a0af3432626b0c02c1b43333d2
2021-05-06 16:31:46 -07:00
Swetha Repakula
8c8db0d8e9 Update glbc image to v1.12.0
- glbc now uses networking.k8s.io/v1 Ingress
2021-05-06 15:20:05 -07:00
Kubernetes Prow Robot
1f3fd1cb80
Merge pull request #101751 from vinayakankugoyal/sshproxy
Recursive chown the /etc/srv/sshproxy if kube-apiserver is running as…
2021-05-06 15:15:51 -07:00
Kubernetes Prow Robot
a5cf298a95
Merge pull request #101737 from Jiawei0227/migration_fix
Use CSI driver to determine unique name for migrated in-tree plugins
2021-05-06 14:14:22 -07:00
Kubernetes Prow Robot
8955f55fcf
Merge pull request #101678 from vinayakankugoyal/goodbye-basicauth
Remove remnants of basic auth from cluster bootstrap.
2021-05-06 14:14:14 -07:00
Kubernetes Prow Robot
d110c2dd6a
Merge pull request #101668 from tkashem/wait-poll-with-context
apimachinery: add context bound polling
2021-05-06 14:14:02 -07:00
Vinayak Goyal
6aa495ddc6 Revert - Recursive chown the /etc/srv/sshproxy if kube-apiserver is running as non root. This way if a key already exists we will be able to read it. 2021-05-06 14:02:53 -07:00
Kubernetes Prow Robot
441a6b7520
Merge pull request #101753 from pacoxu/calico-cleanup
removed deprecated apiextensions.k8s.io/v1beta1 and use extension v1 for calico
2021-05-06 12:04:19 -07:00
Kubernetes Prow Robot
7a0092f96a
Merge pull request #100690 from feiskyer/fix-node-pip
azure: fix node public IP not able to fetch issues from IMDS
2021-05-06 12:04:11 -07:00
Kubernetes Prow Robot
44e7d15885
Merge pull request #100592 from claudiubelu/pause-image-kube-cross-update
pause image: Uses kube-cross image to build Windows binaries
2021-05-06 12:04:00 -07:00
Jiawei Wang
be583070d2 Use CSI driver to determine unique name for migrated in-tree plugins 2021-05-06 10:31:30 -07:00
Kubernetes Prow Robot
545d595674
Merge pull request #101578 from carlory/remove-fg-CRIContainerLogRotation
remove CRIContainerLogRotation feature gate
2021-05-06 10:22:12 -07:00
Kubernetes Prow Robot
b5b3d1962c
Merge pull request #99842 from mowangdk/upgrade_struct_annotation
Upgrade struct annotation
2021-05-06 10:21:59 -07:00
Abu Kashem
b5f8cca701
apimachinery: add context bound polling 2021-05-06 12:02:38 -04:00
Kubernetes Prow Robot
bd6f5c2e64
Merge pull request #100993 from mozillazg/fix-staticcheck-failed-registry-rest-resttest
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/registry/rest/resttest
2021-05-06 07:07:16 -07:00