Commit Graph

10808 Commits

Author SHA1 Message Date
Rafael Franzke
3c88bf6b17 Fix flaws in Azure CSI translation 2020-04-16 07:59:38 +02:00
Jordan Liggitt
b8617d29a9 Drop v1.16.0 API compatibility data 2020-04-15 23:00:27 -04:00
Jordan Liggitt
5713c93853 Add v1.18.0 API compatibility data 2020-04-15 22:59:39 -04: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
Phil Ferrell
ba386aba4f client-go: change jsonpath output of non-primitive types from Go-syntax to JSON
kubectl: add --output jsonpath-as-json to print a json array of results
kubeadm: fix test case using jsonpath result of non-primitive type
2020-04-15 14:58:20 -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
Kenjiro Nakayama
18856dace9 Add DNS1123Label validation to IsFullyQualifiedDomainName func
This patch adds IsDNS1123Label validation to
IsFullyQualifiedDomainName func.

Even when one label is longer than 64 characters, the current
validation  does not validate it. Hence this patch adds the label
check and do not allow invalid domain.
2020-04-15 21:23:49 +09:00
drfish
ef469a740a Fix unsafe json construction for scale.go and codec_check.go 2020-04-15 09:28:13 +08: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
Nicolas Trangez
dd934c9ebd version/verflag: make program name variable
Instead of hard-coding `Kubernetes` in the output generated when
executing a binary using the `version/verflag` feature using
`--version`, use a variable `programName` which can be overwritten using
the `-X` linker flag, e.g.:

```
go build -ldflags "-X k8s.io/component-base/version/verflag.programName=my-tool" ...
```

This allows to use the package in non-Kubernetes applications.

Signed-off-by: Nicolas Trangez <ikke@nicolast.be>
See: https://github.com/kubernetes/kubernetes/issues/90138
2020-04-14 18:24:53 +02: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
vincent178
745b742de5 move runonce from flag to config 2020-04-14 06:00:43 +08: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
yue9944882
875407a450 add flowcontrol integration test to import whitelist 2020-04-13 22:33:08 +08: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
bitscuit
5fa7a08e1c fix exact year inconsistencies in human readable duration 2020-04-11 14:06:15 -07: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
marosset
348153d55a CRI - updating fake_image_server.go to support Annotations in ImageSpec 2020-04-10 17:24:53 +00:00
marosset
b81a418b2e CRI - Adding annotations to ImageSpec and ImageSpec to Image 2020-04-10 17:24:45 +00: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
wojtekt
f624314f91 Fix multiple conversion tests 2020-04-10 17:03:35 +02:00
wojtekt
8c1f9616cf Stop supporting default conversions 2020-04-10 17:03:35 +02: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
397f107a08 fix(kubectl): explain crds with the same resource name with builtin objects 2020-04-09 16:44:17 +08: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
zhouya0
1ef5732c43 Remove *cobra.command from options 2020-04-09 12:15:43 +08: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