Commit Graph

12588 Commits

Author SHA1 Message Date
Shiming Zhang
63860270e3 Fix MakeRegexpArray handling empty strings 2021-03-03 11:10:39 +08:00
Kagaya
9b02c89acd fix staticcheck for k8s.io/apiserver/pkg/endpoints 2021-03-03 10:25:27 +08:00
carlory
cad9c245b8 deprecate audit.k8s.io/v1[alpha|beta]1 versions 2021-03-03 10:24:17 +08:00
mengjiao.liu
6be7b00b45 update kubectl cp --container flag description 2021-03-03 10:19:37 +08:00
yoyinzyc
b81e2d18f9 enforce metric cardinality check to counter metric. 2021-03-02 16:04:43 -08:00
yoyinzyc
a44bb76f1e add flag allow-metric-labels to get the input metric label value allowlist. 2021-03-02 16:04:43 -08:00
Kubernetes Prow Robot
267afe2358 Merge pull request #99526 from chymy/fix-staticcheck-failed
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/registry/generic
2021-03-02 14:47:32 -08:00
cici37
408258c6d5 Update to use cliflag.NamedFlagSets 2021-03-02 13:23:44 -08:00
David Eads
651c79b37f generated 2021-03-02 15:57:57 -05:00
Kubernetes Prow Robot
2a33b8293a Merge pull request #99615 from pacoxu/default-container/exec
kubectl: print info for default container annotation usage
2021-03-02 12:16:18 -08:00
Kubernetes Prow Robot
d1a2af554a Merge pull request #99115 from pohly/ephemeral-volume-metrics
generic ephemeral volume: add metrics
2021-03-02 12:15:59 -08:00
Kubernetes Prow Robot
91458ca376 Merge pull request #98614 from lauchokyip/rmsecretgen
Remove dependency of generators from create secret
2021-03-02 12:15:31 -08:00
David Eads
7d7b3438a5 re-enable CRD v1beta1 validation test 2021-03-02 14:34:41 -05:00
David Eads
3dbc08288f switch condition controller check to use a direct etcd write 2021-03-02 14:34:41 -05:00
David Eads
734e9b7dd6 fix up CRD validation tests 2021-03-02 14:34:41 -05:00
David Eads
dc159a373c attempt to coerce test for non-structural schemas into something close to valid 2021-03-02 14:34:41 -05:00
David Eads
b261364025 try to tidy up crd v1beta1 usage 2021-03-02 14:34:41 -05:00
Andrew Keesler
aea995c45f exec credential provider: use stdin to detect user interaction
We are not sure why this was stdout, since stdin is what the user uses to pass
information to the exec plugin.

There is a question of backwards compatibility here. Our take is that this is a
bug, and so we are ameliorating behavior instead of breaking behavior. There are
2 main cases to consider with respect to backwards compatibility:

1. an existing exec plugin depended on stdin being hooked up to them if stdout
   was a terminal (e.g., echo foo | client-go-command-line-tool); we believe
   this is an anti-pattern, since the client-go-command-line-tool could be using
   stdin elsewhere (e.g., echo foo | kubectl apply -f -)

2. an existing exec plugin depended on stdin not being hooked up to them if
   stdout was not a terminal (e.g., client-go-command-line-tool >/dev/null);
   hopefully there are very few plugins that have tried to base logic off of
   whether stdin returned EOF immediately, since this could also happen when
   something else is wrong with stdin

We hope to apply a stronger fix to this exec plugin user interaction stuff in a
future release.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-03-02 14:30:42 -05:00
John Howard
a7882d8a42 Improve warnings for default-container
Right now, there is no way to use these annotations, support multiple
`kubectl` versions, and not give users annoying warnings every time they
run `kubectl log`.

If a user is setting *both* annotations, they clearly know that the old
on is deprecated. Therefor, we should not warn them.
2021-03-02 09:07:50 -08:00
Kubernetes Prow Robot
e4e9c31218 Merge pull request #98572 from justaugustus/go116
[go1.16] Update to go1.16
2021-03-02 08:57:19 -08:00
Patrick Ohly
ef6f65bead k8s.io/component-base: support GetCounterMetricValue for Counter
GetCounterMetricValue has an unchecked conversion to metrics.Metric,
something that didn't work for a *Counter because it didn't implement
that interface.
2021-03-02 12:01:37 +01:00
caodonghui
60991daf1c remove duplicate logs 2021-03-02 18:20:12 +08:00
Kubernetes Prow Robot
930bede46e Merge pull request #99361 from Novex/btrfs-volume-resize
Add btrfs support to the automatic volume resizer
2021-03-02 01:23:19 -08:00
Stephen Augustus
d9435800b6 Fixup golang.org/x/term staticcheck warnings
Errors from staticcheck:
cmd/preferredimports/preferredimports.go:38:2:
  package golang.org/x/crypto/ssh/terminal is deprecated:
  this package moved to golang.org/x/term.  (SA1019)
vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/exec.go:36:2:
  package golang.org/x/crypto/ssh/terminal is deprecated:
  this package moved to golang.org/x/term.  (SA1019)
vendor/k8s.io/client-go/tools/clientcmd/auth_loaders.go:26:2:
  package golang.org/x/crypto/ssh/terminal is deprecated:
  this package moved to golang.org/x/term.  (SA1019)

Please review the above warnings. You can test via:
  hack/verify-staticcheck.sh <failing package>
If the above warnings do not make sense, you can exempt the line or
file. See:
  https://staticcheck.io/docs/#ignoring-problems

generated:
- hack/update-internal-modules.sh
- hack/lint-dependencies.sh
- hack/update-vendor.sh

Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 01:08:21 -05:00
Jordan Liggitt
ecef45df84 [go1.16] bump golang.org/x/... dependencies
hack/pin-dependency.sh golang.org/x/crypto latest
hack/pin-dependency.sh golang.org/x/net latest
hack/pin-dependency.sh golang.org/x/exp latest
hack/pin-dependency.sh golang.org/x/sys latest
hack/pin-dependency.sh golang.org/x/time latest
hack/pin-dependency.sh golang.org/x/tools latest

hack/lint-dependencies.sh
hack/pin-dependency.sh dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037
hack/pin-dependency.sh golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f
hack/pin-dependency.sh golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449

hack/lint-dependencies.sh

hack/update-internal-modules.sh
hack/update-vendor.sh

Co-authored-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:01 -05:00
Stephen Augustus
7216970cf2 generated: Run hack/lint-dependencies.sh and hack/update-vendor.sh
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:01 -05:00
Stephen Augustus
3c2824e3db [go1.16] go.mod: update to go1.16
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:00 -05:00
Stephen Augustus
70641827c1 [go1.16] staging/publishing: Set default go version to go1.16
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:00 -05:00
Kubernetes Prow Robot
5bf1c184e1 Merge pull request #99507 from jiahuif/feature/leader-migration/options-and-defaults
Leader Migration (KEP-2477): options parsing
2021-03-01 18:19:33 -08:00
Kubernetes Prow Robot
2e055dac58 Merge pull request #99163 from ahg-g/ahg-pod-deletion
Implements pod deletion cost
2021-03-01 18:19:21 -08:00
cici37
9b3d42f20a Address comments. 2021-03-01 16:36:56 -08:00
Indeed
3b4c7bddb3 implement options parsing and defaults for leader migration. 2021-03-01 15:51:13 -08:00
Chok Yip Lau
5d3c4eaf56 Remove dependency of generators from create secret 2021-03-01 17:06:52 -05:00
Pavithra Ramesh
2479f754d4 Support > 5 ports in L4 ILB.
Added logic to set AllPorts field if more than 5 ports are specified.
2021-03-01 13:02:23 -08:00
Kubernetes Prow Robot
b032ebac8e Merge pull request #99569 from pacoxu/default-container/kep-1
kubectl logs: don't check default container annotation if --all-containers is specified
2021-03-01 12:59:25 -08:00
cici37
f098e66cee Delete build file based on latest changes. 2021-03-01 12:24:37 -08:00
Kevin Wiesmueller
98d498117b only use managedFields decoding for admission check 2021-03-01 20:29:15 +01:00
Kevin Wiesmueller
470ad03d07 harden managedFields decoding 2021-03-01 20:00:20 +01:00
Kevin Wiesmueller
ff5a0ccb36 fix validation tests 2021-03-01 20:00:20 +01:00
Kevin Wiesmueller
295e47f60b fix test dependencies 2021-03-01 20:00:19 +01:00
Kevin Wiesmueller
1a8e2bf035 update licenses and bazel 2021-03-01 20:00:10 +01:00
Kevin Wiesmueller
22dfa6ae1b prevent fieldManager admission from wrapping nil 2021-03-01 19:59:59 +01:00
Kevin Wiesmueller
fc1841d72f use existing validation code and decoding in fieldManager admission 2021-03-01 19:59:59 +01:00
Kevin Wiesmueller
da610d6667 consolidate managedFields validation 2021-03-01 19:59:58 +01:00
Kevin Wiesmueller
589ca1be1c export and cleanup managedFields decoding 2021-03-01 19:59:58 +01:00
Kevin Wiesmueller
f86b59ab79 add managedFields admission 2021-03-01 19:59:58 +01:00
Kevin Wiesmueller
429a96da5e fix admission controller 2021-03-01 19:59:58 +01:00
Kevin Wiesmueller
ffbae9c5b4 disable webhook for testing 2021-03-01 19:59:55 +01:00
Kevin Wiesmueller
a06f981fb1 update bazel 2021-03-01 19:59:39 +01:00
Kevin Wiesmueller
3d306e222d use managedFields admission controller in create/patch/update 2021-03-01 19:59:06 +01:00