Commit Graph

8527 Commits

Author SHA1 Message Date
Jordan Liggitt
660c290bbf go1.14: set -mod=mod while rebuilding/linting vendor and building licenses, preserve explicit imports in modules.txt 2020-06-23 19:04:43 -04:00
Jordan Liggitt
becd9f4a2e go1.14: update staticcheck for go 1.14, ignore new staticcheck warnings 2020-06-23 19:04:43 -04:00
Jordan Liggitt
c82fe149a6 go1.14: update minimum required go version 2020-06-23 16:40:22 -04:00
Mark Janssen
e3a0ca2731 Fix staticcheck failures for pkg/registry/...
Errors from staticcheck:
pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go:207:7: this value of err is never used (SA4006)
pkg/registry/core/namespace/storage/storage.go:256:5: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional  (SA1019)
pkg/registry/core/namespace/storage/storage.go:257:11: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional  (SA1019)
pkg/registry/core/namespace/storage/storage.go:266:5: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional  (SA1019)
pkg/registry/core/namespace/storage/storage.go:267:11: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional  (SA1019)
pkg/registry/core/persistentvolumeclaim/storage/storage_test.go:165:2: this value of err is never used (SA4006)
pkg/registry/core/resourcequota/storage/storage_test.go:202:7: this value of err is never used (SA4006)
pkg/registry/core/service/ipallocator/allocator_test.go:338:2: this value of other is never used (SA4006)
pkg/registry/core/service/portallocator/allocator_test.go:199:2: this value of other is never used (SA4006)
pkg/registry/core/service/storage/rest_test.go:1843:2: this value of location is never used (SA4006)
pkg/registry/core/service/storage/rest_test.go:1849:2: this value of location is never used (SA4006)
pkg/registry/core/service/storage/rest_test.go:3174:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
pkg/registry/core/service/storage/rest_test.go:3178:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
pkg/registry/core/service/storage/rest_test.go:3185:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
pkg/registry/core/service/storage/rest_test.go:3189:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
2020-06-21 17:23:42 +02:00
Kubernetes Prow Robot
219c856ce2
Merge pull request #91555 from daixiang0/scr
*.sh: cleanup all white noise
2020-06-20 05:26:53 -07:00
Tim Hockin
4842cb6339 Make verify-api-groups.sh not depend on GOPATH
This script quiently depended on being under a GOPATH, and failed
completely when it was not.  This change sorts the input (to make
comparing results easier) and operates on files, rather than packages
until the last moment when we add back the package prefix.

Verified by instrumenting the code and comparing runs inside and outside
of GOPATH.
2020-06-16 21:40:09 -07:00
Kubernetes Prow Robot
3be451d4d1
Merge pull request #91936 from SataQiu/fix-update-bazel-20200609
Fix bazel BUILD rule and suppress pkg-config errors
2020-06-15 14:18:13 -07:00
Kubernetes Prow Robot
7ac6b15ee4
Merge pull request #91479 from ZhiFeng1993/ZF--add-comments-in-hack-update-scripts
Add usage in some hack/update scripts
2020-06-15 05:28:26 -07:00
SataQiu
2281e57e2c fix bazel BUILD rule and suppress pkg-config errors
Signed-off-by: SataQiu <1527062125@qq.com>
2020-06-14 17:47:08 +08:00
Kubernetes Prow Robot
47e79c73cb
Merge pull request #91684 from dims/use-containerd-as-default-in-cluster-kube-up
Use containerd as default in kube-up.sh
2020-06-09 14:49:21 -07:00
Kubernetes Prow Robot
416e0576d6
Merge pull request #91525 from bjrara/standalone-aggregator
Improve the standalone kube-aggregator
2020-06-09 14:48:33 -07:00
Kubernetes Prow Robot
0e93436ce1
Merge pull request #90976 from andrewsykim/move-cloud-controllers
Move cloud provider controllers to k8s.io/cloud-provider
2020-06-09 06:31:18 -07:00
bjrara
c8ac95321d Enhance kube-aggregator in standalone mode 2020-06-09 13:29:27 +08:00
Kubernetes Prow Robot
77fb14464e
Merge pull request #91537 from bjrara/kube-aggregator-openapi
Add openapi generation for the kube-aggregator
2020-06-08 21:43:18 -07:00
Andrew Sy Kim
41dc075a85 move pkg/controller/cloud/node_lifecycle_controller.go to k8s.io/cloud-provider/controllers/nodelifecycle for easier external consumption
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-06-08 17:34:01 -04:00
Andrew Sy Kim
6d4a19b31c move pkg/controller/cloud/node_controller.go to k8s.io/cloud-provider/controllers/node for easier external consumption
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-06-08 17:34:01 -04:00
Andrew Sy Kim
99d9dda5a7 move pkg/controller/route to k8s.io/cloud-provider/controllers/route for easier external consumption
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-06-08 17:34:01 -04:00
Davanum Srinivas
1731cb30f5
Use containerd as default in kube-up.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-06-07 14:34:50 -04:00
Kubernetes Prow Robot
3f8bb1bf50
Merge pull request #91685 from liggitt/csr-v1
CertificateSigningRequest v1 API
2020-06-05 15:30:14 -07:00
Jordan Liggitt
e0f5cca410 Copy CSR v1beta1 to v1
* Remove prerelease tags
* Update copyright, package, imports to v1
* Remove signerName, usages, and condition status defaulting
2020-06-05 00:47:24 -04:00
bjrara
5e0bd8a44c Add openapi generation for the kube-aggregator 2020-06-05 11:10:08 +08:00
Kubernetes Prow Robot
ae2422ae15
Merge pull request #91617 from jqmichael/vendorMd
Added link to vendor.md in go.mod
2020-06-04 13:52:12 -07:00
Kubernetes Prow Robot
1bc526aa6c
Merge pull request #88607 from caesarxuchao/add-storage-version-api
Add the storage version API
2020-06-03 19:20:43 -07:00
Walter Fender
a47b8d0a3c Handle clean up of read only files.
verify-bazel seems to create read only files under its tmp dir.
When it then goes to clean up the tmp dir it fails.
Adding a command prior to delete to make sure we have perms.
2020-06-03 13:31:18 -07:00
Kubernetes Prow Robot
6dbb92de3d
Merge pull request #91504 from pohly/local-up-cluster-snapshotter
local-up-cluster.sh: install CSI snapshotter
2020-06-03 07:30:18 -07:00
Chao Xu
a2ad36f1e5 Add the StorageVersion API 2020-06-02 23:13:46 -07:00
Patrick Ohly
2a31764ba7 local-up-cluster.sh: install CSI snapshotter
This cluster add-on is required for snapshotting of CSI volumes and
must be installed when bringing up a cluster because CSI driver
installations depend on that.

It is unclear how many users of the script need CSI snapshotting,
therefore it is disabled by default (= the previous behavior).
2020-06-02 16:15:53 +02:00
Qing Ju
fe8ecb18b0 Added link to vendor.md in go.mod 2020-06-01 17:20:47 -07:00
Kubernetes Prow Robot
d1586ea3f9
Merge pull request #91502 from deads2k/dyn-audit-removal-00
remove --feature-gates=DynamicAuditing
2020-05-29 11:56:20 -07:00
Xiang Dai
e09bc312cb *.sh: cleanup all white noise
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-05-29 09:56:00 +08:00
Kubernetes Prow Robot
c682b313d9
Merge pull request #91420 from pancernik/scheduler-config-v1beta1
Promote kubescheduler.config.k8s.io to v1betav1
2020-05-28 12:24:39 -07:00
David Eads
e857adbdfd remove-api 2020-05-27 16:58:05 -04:00
ZhiFeng1993
4ad6ae83ae Add usage in some hack/update scripts 2020-05-26 21:49:38 -07:00
Kubernetes Prow Robot
f097cee156
Merge pull request #90960 from zhouya0/fix_kubectl_create_secret_docker_registry
Fix kubectl create secret docker-registry --from-file
2020-05-26 05:39:12 -07:00
Rafal Wicha
852442c0ff Promote kubescheduler.config.k8s.io to v1betav1 2020-05-25 22:25:57 +01:00
Kubernetes Prow Robot
779f875243
Merge pull request #91180 from PengJi/fix_golint_failures
fix golint errors in pkg/controller/volume/events/event
2020-05-25 06:27:12 -07:00
Kubernetes Prow Robot
4e8b56e667
Merge pull request #91116 from liggitt/local-up-cluster-rotation
Enable kubelet client-cert bootstrap/rotation in local-up-cluster
2020-05-23 13:23:10 -07:00
Davanum Srinivas
c7e79d2048
fix import restrictions and BUILD
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-20 10:57:47 -04:00
Kubernetes Prow Robot
ba2855eaa5
Merge pull request #91213 from dims/support-for-banning-incompatible-deps-klog-v1
Support for banning incompatible dependencies - start with klog v1
2020-05-18 13:34:17 -07:00
Kubernetes Prow Robot
ee8731a385
Merge pull request #91012 from justaugustus/verify-external
verify: Exclude verify-external-dependencies from make verify
2020-05-18 13:33:37 -07:00
Davanum Srinivas
8fd27f62ca
Support for banning incompatible dependencies - start with klog v1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-18 11:55:01 -04:00
pengji
69999a6d54 fix golint in pkg/controller/volume/events/event.go 2020-05-17 23:34:02 +08:00
QianChenglong
9372e80ec6 fix: golint errors in staging/src/k8s.io/apimachinery/pkg/api/validation
Signed-off-by: QianChenglong <qian_cheng_long@163.com>
2020-05-16 21:23:13 +08:00
zhouya0
bbf41448f6 Fix kubectl create secret docker-registry 2020-05-15 12:14:03 +08:00
Jordan Liggitt
734de1bf8c Enable kubelet client-cert bootstrap/rotation in local-up-cluster
Change-Id: Ifea64abbc0b78b12b8aaa5885fd7c4b09c31c98e
2020-05-15 00:22:20 +00:00
Stephen Augustus
edb98fb493 verify: Exclude verify-external-dependencies from make verify
Also adds verify-external-dependencies to QUICK_PATTERNS

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-05-12 18:07:14 -04:00
Kubernetes Prow Robot
2260d97d74
Merge pull request #90994 from thockin/fix_license_again
Fix umask better
2020-05-12 08:25:18 -07:00
Tim Hockin
8d7adb7d94 Fix umask better
While the umask was previously set for builds (and in fact `docker run`
sets it to 0022 by default), the release pipeline `cp`'s files (with
`-a`) which respect the user's umask, and is outside of the build path.

This sets the umask in a common function called by all build tools,
which Stephen agreed was the simplest and most complete fix.  The
`verify-prereqs` function is already poorly named for what it does, and
this only makes it epsilon worse.
2020-05-11 13:23:54 -07:00
Kubernetes Prow Robot
b5f67110ed
Merge pull request #87746 from mattjmcnaughton/mattjmcnaughton/poc-compiling-kubelet-wo-docker
Support compiling Kubelet w/o docker/docker
2020-05-09 12:01:51 -07:00
Tim Hockin
b450001983 Let verify-vendor operate on a dirty repo
Several hours of wasted debug because of this.
2020-05-07 22:36:14 -07:00