Commit Graph

9838 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d0f99fe39c Merge pull request #90212 from pancernik/pod-topology-spread-plugin-args
Add PodTopologySpread plugin arg types to kube-scheduler.config.k8s.io
2020-04-16 13:59:21 -07:00
Kubernetes Prow Robot
8fa7931159 Merge pull request #90200 from gongguan/capacity-metric
move watchCache metrics to a seperate file
2020-04-16 08:39:08 -07:00
Rafal Wicha
b511fa8627 Add PodTopologySpread plugin arg types to kube-scheduler.config.k8s.io 2020-04-16 16:26:27 +01:00
ga
cf1b72e457 [AZURE] t.Fatalf() for nil pointer (#90154)
* [AZURE] t.FatalF() for nil pointer

* [AZURE] t.FatalF() for nil pointer
2020-04-16 07:08:46 -07:00
Kubernetes Prow Robot
4bb5211367 Merge pull request #90010 from deads2k/verify-beta
generate metadata for requiring transition from beta
2020-04-16 04:54:47 -07:00
louisgong
21ba510ef0 move watchCache metrics to a seperate file 2020-04-16 17:39:31 +08:00
Kubernetes Prow Robot
b35fdbc037 Merge pull request #89904 from alculquicondor/raw-extension-plugin-args
Use RawExtension and Object for external and internal, respectively, scheduling plugin args
2020-04-15 15:22:59 -07:00
Kubernetes Prow Robot
190ae06518 Merge pull request #89861 from rccrdpccl/bugfix/error-message-for-get-non-namespaced-resources
Change not found output when getting non namespaced resources
2020-04-15 11:36:14 -07:00
Kubernetes Prow Robot
db999c9634 Merge pull request #89913 from zhouya0/fix_kubectl_version_should_print_version_info
Fix kubectl version should print version info without config file
2020-04-15 09:24:03 -07:00
zhouya0
948f4de2db Fix kubectl version should print version info 2020-04-15 22:32:09 +08:00
Kubernetes Prow Robot
495b0ddfaa Merge pull request #89818 from verb/cli-debug-typed
kubectl debug: support different kinds
2020-04-15 07:02:30 -07:00
Kubernetes Prow Robot
69e9c6bb05 Merge pull request #89570 from zhouya0/fix_describe_job_nil_pointer
Fix kubectl describe job event test nil pointer
2020-04-15 07:02:16 -07:00
Riccardo Piccoli
818f011a2e Change not found output when getting non namespaced resources
Signed-off-by: Riccardo Piccoli <riccardo.piccoli@gmail.com>
2020-04-15 15:32:31 +02:00
Kubernetes Prow Robot
1d772e3b36 Merge pull request #82181 from tipok/master
fix BusyBox sed
2020-04-14 14:02:03 -07:00
David Eads
4e4418f633 generated 2020-04-14 16:16:58 -04:00
David Eads
4b0080d71f add prerelease-lifecycle generator for beta API types 2020-04-14 16:16:58 -04:00
Kubernetes Prow Robot
ea2d784545 Merge pull request #89895 from jingyih/update_etcd_server_3p4p7
Update default etcd server to 3.4.7 in k8s v1.19
2020-04-14 12:34:06 -07:00
Kubernetes Prow Robot
6c499314cd Merge pull request #88480 from savitharaghunathan/kubelet_flag_migration_1
Kubelet flag migration - Part 1
2020-04-14 12:33:39 -07:00
David Eads
88c5f64763 extension API tag update 2020-04-14 14:08:06 -04:00
Aldo Culquicondor
ce05382b58 Use RawExtension and Object for external and internal scheduling plugin args, respectively
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-14 13:44:42 -04:00
Kubernetes Prow Robot
864b4bcc1e Merge pull request #90023 from robscott/app-protocol-beta
Graduating ServiceAppProtocol to beta
2020-04-13 22:49:11 -07:00
jingyih
394df132bd Update default etcd server to 3.4.7 2020-04-13 14:37:56 -07:00
Kubernetes Prow Robot
a1dc52efb6 Merge pull request #89305 from enj/enj/i/authn_audit_annotation
Allow authenticators to set audit annotations
2020-04-13 13:38:03 -07:00
Kubernetes Prow Robot
c32b93aa2b Merge pull request #89479 from knight42/fix/zsh-completion-file-flag
fix(kubectl): remove trailing space when completing file path
2020-04-13 11:51:48 -07:00
Kubernetes Prow Robot
3c7258daa6 Merge pull request #90090 from nilo19/cleanup/use-mock-client-in-unit-tests
Switch from fake storage to mock clients in azure unit tests.
2020-04-13 10:16:02 -07:00
Kubernetes Prow Robot
499fdfaad8 Merge pull request #89846 from connorgorman/configurable-default-chan-size
Make DefaultChanSize an exported var so it can be modified
2020-04-13 10:15:49 -07:00
Kubernetes Prow Robot
2624a4ad46 Merge pull request #80943 from obitech/yaml_meta
Add a YAML MetaFactory
2020-04-13 02:05:47 -07:00
Kubernetes Prow Robot
6239abe698 Merge pull request #89225 from andrewsykim/apparmor-api
move apparmor annotation constants to k8s.io/api/core/v1
2020-04-12 19:11:50 -07:00
t-qini
68600b843f Switch from fake storage to mock clients in azure unit tests. 2020-04-13 09:33:35 +08:00
Kubernetes Prow Robot
4bba193bea Merge pull request #89666 from julianvmodesto/kubectl-scale-dry-run
Support kubectl scale --dry-run=server|client
2020-04-11 10:45:47 -07:00
Kubernetes Prow Robot
5bfe8fe2b9 Merge pull request #88940 from tianhongw/master
fix golint errors in staging/src/k8s.io/client-go/plugin/pkg/client/a…
2020-04-10 08:09:47 -07:00
Kubernetes Prow Robot
57b88867b5 Merge pull request #89989 from tanjunchen/fix-bug-20200409
pkg/util/yaml/decoder.go:NewDocumentDecoder sets a larger Buffer to allow larger yaml
2020-04-09 22:27:47 -07:00
Kubernetes Prow Robot
ec00b4fcc2 Merge pull request #89833 from liggitt/json-raw
preserve integers decoding raw JSON values
2020-04-09 12:53:47 -07:00
Rob Scott
0493a30805 Graduating ServiceAppProtocol to beta 2020-04-09 12:12:54 -07:00
Kubernetes Prow Robot
e322da5ddc Merge pull request #88585 from pancernik/plugin-args-api-config
Add types for Scheduler plugin args to kube-scheduler.config.k8s.io
2020-04-09 09:19:44 -07:00
Kubernetes Prow Robot
897c10e7b2 Merge pull request #89551 from zlabjp/restore-kubectl-prune-multiple-namespaces
Restore the ability to `kubectl apply --prune` without -n flag
2020-04-09 07:49:43 -07:00
knight42
2fefd9eea4 fix(kubectl): remove trailing space when completing file path 2020-04-09 14:54:01 +08:00
Kubernetes Prow Robot
7b20442513 Merge pull request #89979 from gaurav1086/remove_dup_net_import
Remove double import of k8s.io/apimachinery/pkg/util/net
2020-04-08 23:31:43 -07:00
Tatsuhiro Tsujikawa
7af3b01f24 Restore the ability to kubectl apply --prune without -n flag
Before https://github.com/kubernetes/kubernetes/pull/83084, `kubectl
apply --prune` can prune resources in all namespaces specified in
config files.  After that PR got merged, only a single namespace is
considered for pruning.  It is OK if namespace is explicitly specified
by --namespace option, but what the PR does is use the default
namespace (or from kubeconfig) if not overridden by command line flag.
That breaks the existing usage of `kubectl apply --prune` without
--namespace option.  If --namespace is not used, there is no error,
and no one notices this issue unless they actually check that pruning
happens.  This issue also prevents resources in multiple namespaces in
config file from being pruned.

kubectl 1.16 does not have this bug.  Let's see the difference between
kubectl 1.16 and kubectl 1.17.  Suppose the following config file:

```yaml
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: foo
  namespace: a
  labels:
    pl: foo
data:
  foo: bar
---
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: bar
  namespace: a
  labels:
    pl: foo
data:
  foo: bar
```

Apply it with `kubectl apply -f file`.  Then comment out ConfigMap foo
in this file.  kubectl 1.16 prunes ConfigMap foo with the following
command:

$ kubectl-1.16 apply -f file -l pl=foo --prune
configmap/bar configured
configmap/foo pruned

But kubectl 1.17 does not prune ConfigMap foo with the same command:

$ kubectl-1.17 apply -f file -l pl=foo --prune
configmap/bar configured

With this patch, kubectl once again can prune the resource as before.
2020-04-09 02:54:10 +00:00
tanjunchen
11804c34b6 fix bug when using big yaml on the scanner 2020-04-09 10:08:04 +08:00
Monis Khan
0bc62112ad Allow handlers early in the request chain to set audit annotations
This change adds the generic ability for request handlers that run
before WithAudit to set annotations in the audit.Event.Annotations
map.

Note that this change does not use this capability yet. Determining
which handlers should set audit annotations and what keys and values
should be used requires further discussion (this data will become
part of our public API).

Signed-off-by: Monis Khan <mok@vmware.com>
2020-04-08 19:52:23 -04:00
Kubernetes Prow Robot
b3837f858a Merge pull request #89942 from dims/update-fsnotify-to-pick-up-bug-fixes
Updating dependency github.com/fsnotify/fsnotify to version v1.4.9
2020-04-08 16:47:57 -07:00
Gaurav Singh
29ceb8d5f2 Remove double import of k8s.io/apimachinery/pkg/util/net 2020-04-08 16:25:23 -04:00
Rafał Wicha
c4d20ca8a8 Add types for Scheduler plugin args to kube-scheduler.config.k8s.io 2020-04-08 20:23:56 +01:00
Kubernetes Prow Robot
3c3fc800df Merge pull request #89881 from embano1/etcd-leader-ctx
Add etcd WithRequireLeader option to API watches
2020-04-08 09:09:44 -07:00
Kubernetes Prow Robot
6747678a39 Merge pull request #88464 from brianpursley/kubernetes-86130
Fixed bug where jsonpath expression with nested range produces wrong output
2020-04-07 18:47:57 -07:00
Davanum Srinivas
eee5235d25 Updating dependency github.com/fsnotify/fsnotify to version v1.4.9
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-07 20:50:27 -04:00
Kubernetes Prow Robot
172553bf94 Merge pull request #89926 from wojtek-t/cleanup_default_conversions_2
Stop relying on default conversions for metav1beta1 and e2e-node tests
2020-04-07 16:46:23 -07:00
Michael Gasch
70c9f770d7 Add etcd WithRequireLeader option to API watches
Watches against etcd in the API server can hang forever if the etcd
cluster loses quorum, e.g. the majority of nodes crashes. This fix
improves responsiveness (detection and reaction time) of API server
watches against etcd in some rare (but still possible) edge cases so
that watches are terminated with `"etcdserver: no leader"
(ErrNoLeader)`.

Implementation behavior described by jingyih:

```
The etcd server waits until it cannot find a leader for 3 election
timeouts to cancel existing streams. 3 is currently a hard coded
constant. The election timeout defaults to 1000ms.

If the cluster is healthy, when the leader is stopped, the leadership
transfer should be smooth. (leader transfers its leadership before
stopping). If leader is hard killed, other servers will take an election
timeout to realize leader lost and start campaign.
```

For further details, discussion and validation see
https://github.com/kubernetes/kubernetes/issues/89488#issuecomment-606491110
and https://github.com/etcd-io/etcd/issues/8980.

Closes: https://github.com/kubernetes/kubernetes/issues/89488

Signed-off-by: Michael Gasch <mgasch@vmware.com>
2020-04-07 22:42:08 +02:00
wojtekt
466acf62e3 Move unstructured test to better place 2020-04-07 17:19:26 +02:00