Joakim Roubert
3dd3211c81
Fix shellcheck failures in cluster/gce/gci/configure.sh
...
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-02-10 19:23:31 +01:00
Kubernetes Prow Robot
0f3aada51e
Merge pull request #90405 from joakimr-axis/joakimr-axis_util.sh
...
Fix shellcheck warnings/errors in cluster/gce/util.sh
2021-02-10 10:02:16 -08:00
tiloso
e1ceac0783
Fix staticcheck in test/integration/{scheduler_perf,garbagecollector}
2021-02-10 10:55:09 +01:00
Joakim Roubert
8bf2836e41
Fix remaining shellcheck issues in cluster/gce/util.sh
...
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-02-10 10:07:45 +01:00
Benjamin Elder
7f1c6740f7
suggest homebrew when bash is too old on macOS
2021-02-09 22:40:01 -08:00
Kubernetes Prow Robot
b87ae556b3
Merge pull request #95865 from joakimr-axis/joakimr-axis_master-helper.sh
...
Fix shellcheck issues in cluster/gce/gci/master-helper.sh
2021-02-09 17:43:00 -08:00
Kubernetes Prow Robot
d6c26a826a
Merge pull request #95281 from SaiHarshaK/staticcheck_test
...
fix staticcheck failures for test/e2e and test/integration
2021-02-09 03:40:38 -08:00
Kubernetes Prow Robot
141630d090
Merge pull request #98861 from tonistiigi/non-amd64-cross-compile
...
avoid hardcoding amd64 specifics on cross compiling
2021-02-09 00:45:53 -08:00
Kubernetes Prow Robot
2b7c61b1bb
Merge pull request #98205 from pacoxu/build/pauses
...
update pause image to 3.4.1 and also update the change log
2021-02-08 18:20:58 -08:00
Kubernetes Prow Robot
017d4dd832
Merge pull request #98739 from logicalhan/so-stable
...
Wire up static-analysis so that it executes in the normal 'hack' flow
2021-02-08 15:19:10 -08:00
Tonis Tiigi
fd01467c0c
avoid hardcoding amd64 specifics on cross compiling
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-02-07 21:08:00 -08:00
Sai Harsha Kottapalli
a2ef69060a
fix staticcheck failures for test/e2e and test/integration
2021-02-07 23:47:23 +05:30
Han Kang
db107b190c
remove the rest of the bazel test wiring for metrics stability
2021-02-05 10:48:48 -08:00
pacoxu
0c152cbbbe
update pause to 3.4.1 for tests(e2e)
...
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-05 21:32:53 +08:00
Han Kang
73d797d474
Wire up static-analysis so that it executes in the normal 'hack' flow
2021-02-04 18:48:03 -08:00
Kubernetes Prow Robot
81d8ccfa8e
Merge pull request #97224 from tanjing2020/fix_SA2002
...
fix staticcheck failures on vendor/k8s.io/apiserver/pkg/endpoints
2021-02-04 13:23:03 -08:00
Kubernetes Prow Robot
2d9e9290e7
Merge pull request #98508 from tonistiigi/arm64-cross
...
enable cross-compile CC config for non-amd64
2021-02-02 18:00:28 -08:00
Kubernetes Prow Robot
ee2b7a5049
Merge pull request #98049 from pacoxu/enhancements/redir-links
...
fix all keps links 404 for kep folder migration
2021-02-01 21:48:28 -08:00
Kubernetes Prow Robot
e161051c83
Merge pull request #98668 from liggitt/gotestsum
...
Install gotestsum if needed for junit results
2021-02-01 14:52:36 -08:00
Jordan Liggitt
031e1c562c
Install gotestsum if needed for junit results
2021-02-01 12:16:07 -05:00
Kubernetes Prow Robot
101cdbf932
Merge pull request #97295 from tiloso/staticcheck-test-integration
...
Fix staticcheck in test/integration/{examples,framework}
2021-02-01 04:49:48 -08:00
pacoxu
a10bdfed09
fix all keps links 404 for kep folder migration
...
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-01 19:41:59 +08:00
pacoxu
8811275ea4
update pause image 3.4.1 for hack testdatas only
...
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-01 15:09:25 +08:00
Kubernetes Prow Robot
081f68d685
Merge pull request #97999 from llhuii/hack-version-script-fix-err-to-stdout
...
hack/lib/version.sh: fix error log to stderr
2021-01-31 08:39:48 -08:00
llhuii
36aa8a24ce
hack/lib/version.sh: fix error log to stderr
...
Since this invalid Semantic Version messages redirecting to stdout
will be captured by line 790 at hack/lib/golang.sh:
`goldflags="${GOLDFLAGS=-s -w -buildid=} $(kube::version::ldflags)"`
This happens when only no valid tag exists in repo
2021-01-31 00:40:53 +08:00
tanjing2020
c38a06bca6
fix staticcheck failures on vendor/k8s.io/apiserver/pkg/endpoints
2021-01-29 11:39:25 +08:00
Kubernetes Prow Robot
d7cb340bc6
Merge pull request #83268 from odinuge/e2e_node_timeout
...
Add timeout config for node_e2e tests
2021-01-28 19:33:40 -08:00
Kubernetes Prow Robot
125a5f10a6
Merge pull request #96599 from tanjing2020/master
...
fix staticcheck:pkg/volume/testing
2021-01-28 18:43:40 -08:00
Davanum Srinivas
02eaf0f23d
remove references to golint in hack/tools
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-28 15:43:12 -05:00
Davanum Srinivas
8cec5fbd28
Remove golint based verifications
...
After a couple years of seeing changes spawned from this issue, I don't think this is a good use of contributors' or reviewers' time. golint is very opinionated about:
exported type and function names, leading to PRs attempting to change exported things people use downstream
missing documentation on interface implementation functions, which leads to not-very-useful copy/paste of interface godoc
the govet and staticcheck verify jobs are much more useful since they catch correctness issues
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-28 15:43:09 -05:00
Tonis Tiigi
f19f22b43e
enable cross-compile CC config for non-amd64
...
Currently target CC can only be set if the host platform
is linux/amd64 . If target is already set in the environment
it is always safe to use it and enable cgo.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-01-28 07:11:04 -08:00
Li Bo
bb150cdd4f
change minimum bash version to 4.2
2021-01-26 20:12:58 +08:00
Chok Yip Lau
eaaa803d48
Fix staticcheck on vendor/k8s.io/apiserver/pkg/server/httplog
2021-01-25 21:16:28 -05:00
Tim Hockin
33ad2fe019
Build: Don't find into _name dirs
...
This is a no-op now that _examples is renamed.
2021-01-25 10:20:49 -08:00
Tim Hockin
876c9f0d8c
Rename _examples to examples
...
The alternative to this would be to special-case code-generator. Since
it legit wants codegen, it seems wrong to make it be _examples (which tools
should ignore).
Make examples an "internal module" so the main go.mod for
k8s.io/code-generator does not get too polluted.
2021-01-25 10:20:46 -08:00
Tim Hockin
1b07b0d648
Fix bug in golint script when no files
...
The script would get a 1 return code from grep when there are no files
in a directory, after filtering generated filenames. This would cause
the script to exit unexpectedly.
2021-01-25 10:15:59 -08:00
Tim Hockin
105e8f8467
Rename *-hack-tools.sh -> *-internal-modules.sh
...
Prep to add more such modules
2021-01-25 10:15:59 -08:00
Tim Hockin
3aa319c894
Don't generate LICENSES for hack/tools
2021-01-25 10:15:59 -08:00
Tim Hockin
91c401c964
Update-vendor: canonicalize pwd
2021-01-25 10:15:59 -08:00
Tim Hockin
187def4d4f
Make: Retool how we cache go dirs
...
Now we can use /dev/null as an argument when running tools manually
2021-01-25 10:15:59 -08:00
Tim Hockin
ee170145b2
Make: prefix magic go-deps variables with GODEPS
...
This makes them easier to see and find.
Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -08:00
Kubernetes Prow Robot
f5bb2c19b9
Merge pull request #97882 from ialidzhikov/staticcheck/x509
...
Fix staticcheck in staging/src/k8s.io/apiserver/pkg/authentication/request/x509
2021-01-25 09:26:54 -08:00
Kubernetes Prow Robot
bfe42562a1
Merge pull request #98309 from dims/ensure-bash-version-at-least-5.x
...
Ensure bash version at least 5.x
2021-01-23 22:02:53 -08:00
Davanum Srinivas
feecef7795
Ensure bash version at least 5.x
...
Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-22 13:08:53 -05:00
Kubernetes Prow Robot
7eef3ed8c7
Merge pull request #98003 from lauchokyip/fixlint2
...
Fix golint errors for k8s.io/cli-runtime/pkg/genericclioptions/
2021-01-21 09:57:40 -08:00
Kubernetes Prow Robot
6040a06a2e
Merge pull request #97841 from feranwq/patch-92402-2
...
fix vendor/k8s.io/cli-runtime/pkg/printers staticcheck
2021-01-21 09:57:27 -08:00
Kubernetes Prow Robot
a64c7ed1dc
Merge pull request #97930 from JieJhih/golint/fs
...
fix golint in volume fs
2021-01-19 13:14:00 -08:00
Kubernetes Prow Robot
73d4c245ef
Merge pull request #98160 from sfowl/pyyaml-safe-load
...
Change yaml.load() to safe_load()
2021-01-19 04:07:45 -08:00
Sam Fowler
368ebbeddf
Change yaml.load() to safe_load()
2021-01-19 15:58:12 +10:00
Kubernetes Prow Robot
294c352380
Merge pull request #98017 from lanzao/patch01
...
Fix golint issues in client/custom_metrics/scheme
2021-01-15 06:31:51 -08:00
lanzao
a833a0321c
Fix golint issues in client/custom_metrics/scheme
2021-01-15 10:17:12 +08:00
Chok Yip Lau
9a3148291d
Fix golint errors for kubectl/pkg/cmd/certificates/certificates.go
2021-01-13 09:17:00 -05:00
Chok Yip Lau
c5b95f60fa
Fix golint errors for k8s.io/cli-runtime/pkg/genericclioptions/
2021-01-13 05:28:09 -05:00
Kubernetes Prow Robot
3722cef5e5
Merge pull request #97947 from Haleygo/fix/replace-cfssl-resource
...
fix:replace cfssl resources and upgrade them to 1.5.0
2021-01-12 21:10:37 -08:00
Kubernetes Prow Robot
bbde53e300
Merge pull request #97959 from carlory/patch-1
...
set GOOS=linux for the staticcheck tool
2021-01-12 18:24:35 -08:00
Kubernetes Prow Robot
e414d4e5c2
Merge pull request #96315 from twosigma/dnsdomainteste2e
...
Ensuring default DNS cluster-domain of Kubelet is cluster.local
2021-01-12 10:28:35 -08:00
Kubernetes Prow Robot
ef3337a443
Merge pull request #97786 from pacoxu/staticcheck/apiserver-storage
...
fix static check for vendor/k8s.io/apiserver/pkg/storage/etcd3/
2021-01-12 08:20:26 -08:00
feranwq
ddba6a79d4
fix vendor/k8s.io/cli-runtime/pkg/printers staticcheck
2021-01-12 19:03:13 +08:00
帝俊
7c487f9964
set GOOS=linux for the staticcheck tool
2021-01-12 18:00:36 +08:00
Haleygo
b2796cea93
fix:replace cfssl resources and upgrade them to 1.5.0
...
Signed-off-by: Haleygo <hui.wang@daocloud.io>
2021-01-12 14:05:20 +08:00
JieJhih Jhang
f1829a7744
fix golint in volume fs
2021-01-12 06:35:52 +08:00
Sascha Grunert
9428ad78fd
Make parallel build memory threshold configurable
...
The amount of memory required to build binaries in parallel is right now
set to 40GiB. We now make this variable to be able to build artifacts in
parallel even with a lower amount of memory.
This enables SIG Release to speed-up the build time drastically in
Google Cloud Build (GCB).
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2021-01-11 11:59:57 +01:00
ialidzhikov
5771ea733f
Fix staticcheck in staging/src/k8s.io/apiserver/pkg/authentication/request/x509
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-01-10 00:32:42 +02:00
pacoxu
aaa7084a4a
fix static check for vendor/k8s.io/apiserver/pkg/storage/etcd3/
2021-01-07 11:27:03 +08:00
Kubernetes Prow Robot
9c894e23ef
Merge pull request #97618 from jherrera123/issue-94091-remove-docker-remote-build
...
Remove docker remote / docker-machine from build scripts
2021-01-06 10:55:52 -08:00
Kubernetes Prow Robot
6af5fdcf98
Merge pull request #94396 from habibrosyad/patch-92402-10
...
fix vendor/k8s.io/apimachinery/pkg/runtime staticcheck
2021-01-06 08:43:52 -08:00
Kubernetes Prow Robot
b39494ce35
Merge pull request #97374 from geegeea/golint
...
Fix golint issues in pkg/kubelet/types
2021-01-05 17:10:03 -08:00
Kubernetes Prow Robot
3209dabb0d
Merge pull request #97466 from geegeea/lint-kubelet
...
Fix golint issues in api/admission and api/admissionregistration
2021-01-05 09:01:59 -08:00
ialidzhikov
8a0bce0021
Fix staticcheck in staging/src/k8s.io/apiserver/pkg/admission/initializer
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-01-02 22:41:13 +02:00
Jesus Herrera
d8bedb3980
Remove docker remote/docker-machine from build scripts
2020-12-30 12:37:51 -05:00
Gurleen Grewal
2414bce4c3
Fix golint issues in pkg/kubelet/types
2020-12-23 19:21:31 -08:00
Gurleen Grewal
73f24d6beb
Fix golint issues in api/admission and api/admissionregistration
2020-12-22 12:13:41 -08:00
Kubernetes Prow Robot
81e82b8453
Merge pull request #97167 from geegeea/golint-cleanup-events
...
Fix golint issues in pkg/credentialprovider/plugin
2020-12-16 13:04:31 -08:00
tiloso
3cbdc711de
Fix staticcheck in test/integration/{examples,framework}
...
Part of #92402 , fixes staticcheck failures SA1006, SA1019 and SA2002 in
test/integration/examples and test/integration/framework.
2020-12-14 21:54:37 +01:00
Qiming Teng
e1ec14162f
Fix OpenAPI spec generator script
2020-12-14 10:10:33 +08:00
Kubernetes Prow Robot
58a1f1658d
Merge pull request #96997 from PurelyApplied/update-levee-config
...
[KEP-1933] Update config for go-flow-levee analysis
2020-12-10 14:53:22 -08:00
Patrick Rhomberg
42fb39f116
Use full aliases. Add sig/security label.
2020-12-09 23:43:48 +00:00
Patrick Rhomberg
3559d752e3
Transfer ownership of logging analysis configuration to sig-security.
2020-12-09 19:15:46 +00:00
Kubernetes Prow Robot
018942a92a
Merge pull request #96903 from JornShen/local_up_resume_readonly_port
...
local-up-cluster kubelet option opening readonly port
2020-12-08 20:04:32 -08:00
Kubernetes Prow Robot
58287f3cb6
Merge pull request #96660 from KobayashiD27/staticcheck_in_endpoints_request
...
fix staticchekc failer in apiserver/pkg/endpoints/request
2020-12-08 18:34:57 -08:00
Kubernetes Prow Robot
cb8ad64243
Merge pull request #96632 from sbueringer/pr-fix-staticcheck-apiserver-server
...
fix staticcheck: vendor/k8s.io/apiserver/pkg/server/{options,storage}
2020-12-08 17:30:07 -08:00
Kubernetes Prow Robot
5664482714
Merge pull request #96402 from lala123912/cc_4
...
fix staticcheck:vendor/k8s.io/kubectl/pkg/cmd/scale
2020-12-08 17:28:35 -08:00
Gurleen Grewal
7a0b5acf00
Fix golint issues in pkg/credentialprovider/plugin
2020-12-08 15:11:44 -08:00
Patrick Rhomberg
a3d483e965
Update cross-referencing for PRs.
2020-12-04 22:42:18 +00:00
Patrick Rhomberg
66c54ffc43
Refer to KEP rather than directly to documentation link.
2020-12-04 22:39:36 +00:00
jornshen
da808767b7
local-up-cluster kubelet option opening readonly port
2020-12-02 09:46:24 +08:00
Patrick Rhomberg
6488e89f96
Update config for go-flow-levee analysis
...
* Remove \b boundary for sinks; Unicode backspace \b != regexp boundary \b.
* Specify those source type fields that have not yet been tagged.
* Add exclusions for current false-positive set.
2020-12-01 23:35:32 +00:00
Stephen Augustus
1c89ce14c0
[go1.15] hack/tools: Update to k/repo-infra@v0.1.3 (supports go1.15.5)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-11-23 20:40:44 -05:00
Kobayashi Daisuke
fa68cda13f
fix staticchekc failer in apiserver/pkg/endpoints/request
2020-11-18 15:28:35 +09:00
Stefan Bueringer
6190b87927
rollback httplog change
2020-11-17 12:56:47 +01:00
Stefan Bueringer
ed0adcb65e
fix staticcheck: vendor/k8s.io/apiserver/pkg/server
2020-11-17 11:58:13 +01:00
tanjing2020
3398401c06
fix staticcheck:pkg/volume/testing
...
pkg/volume/testing/testing.go:417:16: possible nil pointer derefence (SA5011)
2020-11-17 14:45:13 +08:00
lala123912
5710e1b162
fix staticcheck:vendor/k8s.io/kubectl/pkg/cmd/scale
...
vendor/k8s.io/kubectl/pkg/cmd/scale/scale.go:212:2: this value of err is never used (SA4006)
2020-11-14 12:17:11 +08:00
Kubernetes Prow Robot
36f571404f
Merge pull request #96527 from adtac/apfbeta
...
promote API priority and fairness types and APIs to beta
2020-11-13 19:33:04 -08:00
yue9944882
849be447f5
APF: graduate API and types to beta
...
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-13 23:20:39 +00:00
Kubernetes Prow Robot
3b2746c9ea
Merge pull request #95614 from wilsonehusin/golint-client-go-transport
...
Fix golint failures in client-go/transport
2020-11-13 07:34:31 -08:00
Kubernetes Prow Robot
e38b1b94f8
Merge pull request #96399 from andrewsykim/service-config
...
move service controller config to k8s.io/cloud-provider/controllers/service/config
2020-11-12 11:21:57 -08:00
Kubernetes Prow Robot
9d2a2263cd
Merge pull request #96387 from mrunalp/cri_add_beta
...
Add CRI v1 proto
2020-11-12 11:21:31 -08:00
Kubernetes Prow Robot
d1c41e70ff
Merge pull request #96331 from mithuns/fix-lint-runtime-serializer-protobuf
...
Fix go lint on folder apimachinery/pkg/runtime/serializer/protobuf
2020-11-12 05:32:49 -08:00
Kubernetes Prow Robot
12d9183da0
Merge pull request #95718 from SergeyKanzhelev/runtimeClass2
...
RuntimeClass GA
2020-11-12 00:44:51 -08:00
Kubernetes Prow Robot
d233111f5b
Merge pull request #94196 from andrewsykim/registry-creds
...
kubelet: add alpha credential provider plugins
2020-11-11 19:59:11 -08:00
Sergey Kanzhelev
06da0e5e74
GA of RuntimeClass feature gate and API
2020-11-11 19:22:32 +00:00
Alay Patel
8d7dd4415e
add cronjob_controllerv2.go
2020-11-10 17:32:06 -05:00
Mrunal Patel
9fcede9d5b
Add CRI v1 proto
...
Add CRI v1 proto and generated code.
We need both v1 and v1alpha2 side by side so that
containerd and CRI-O could be updated. Once the runtimes
are updated and in the CI, we can switch the kubelet
to use v1 in 1.21 .
We are jumping to v1, so we have to avoid multiple hops to get
to GA. The package could stay v1 and declare CRI support to
be at beta and eventually GA.
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
2020-11-10 14:17:17 -08:00
Andrew Sy Kim
b1e0decce1
move service controller config to k8s.io/cloud-provider/controllers/service/config
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-11-10 14:59:44 -05:00
Andrew Sy Kim
91aae6ea48
hack/.golint: ignore golint for new kubelet and credentialprovider APIs package
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-11-10 13:44:07 -05:00
Kubernetes Prow Robot
26f09b77a8
Merge pull request #96028 from masap/local_up_cluster2
...
local-up-cluster.sh: Pass CLUSTER_CIDR to kube-proxy
2020-11-10 07:17:00 -08:00
Kubernetes Prow Robot
6e95025994
Merge pull request #92165 from RenaudWasTaken/v1-pod-resources
...
Graduate the Pod Resources API to G.A
2020-11-09 18:24:41 -08:00
Kubernetes Prow Robot
995e531a63
Merge pull request #93764 from cici37/ccmwrap
...
Adding flexibility to CCM
2020-11-09 13:44:28 -08:00
Mithun Singh
d4cbad8256
Fix go lint on folder apimachinery/pkg/runtime/serializer/protobuf
2020-11-09 11:26:49 -08:00
Kubernetes Prow Robot
55f95bc893
Merge pull request #96323 from msscaroso/fix-lint-runtime-serializer-json
...
Fix go lint on folder apimachinery/pkg/runtime/serializer/json
2020-11-09 10:32:27 -08:00
Kubernetes Prow Robot
2343b8a68b
Merge pull request #95872 from 22dm/kube-proxy-comment-fix
...
Fix the kube-proxy document
2020-11-08 19:23:37 -08:00
liuhongyu
d38ff93e4b
remove kube-proxy/config/v1alpha1 from .golint_failures
2020-11-07 11:02:16 +08:00
Marcio Caroso
4b8b9c92bf
Fix go lint on folder apimachinery/pkg/runtime/serializer/json
2020-11-06 20:45:27 -03:00
Javier Diaz-Montes
c8da7128eb
Ensuring default DNS cluster-domain of Kubelet is cluster.local
...
Currently e2e tests run under test-e2e-node have a cluster-domain
equals to "". This change makes test-e2e-node consistent with other
e2e tests. For example, in hack/ginkgo-e2e.sh, cluster-domain
defaults to cluster.local and it can be changed by defining KUBE_DNS_DOMAIN.
2020-11-06 13:42:13 -05:00
cici37
895a0a8d5e
Adding config extension to CCM.
2020-11-06 02:42:44 -08:00
Kubernetes Prow Robot
226ea6b49d
Merge pull request #96231 from deads2k/clean-up-feature
...
update features to indicate beta in comment
2020-11-05 15:17:04 -08:00
Kubernetes Prow Robot
38f14f3874
Merge pull request #95876 from saschagrunert/proto
...
Propose seccomp/apparmor protobuf type definitions for CRI graduation
2020-11-05 06:31:08 -08:00
David Eads
73f7a9b394
update features to indicate beta in comment
2020-11-05 07:21:19 -05:00
Kubernetes Prow Robot
1328d8c8c6
Merge pull request #96235 from PurelyApplied/exclude-levee-in-verify-all
...
Exclude KEP-1933 from verify-all.sh until after alpha status.
2020-11-04 18:11:25 -08:00
Kubernetes Prow Robot
ff225efc10
Merge pull request #96095 from masap/local_up_cluster4
...
local-up-cluster.sh: Use config file instead of flags for kubelet
2020-11-04 13:25:30 -08:00
Patrick Rhomberg
e67ab309b7
Exclude KEP-1933 from verify-all.sh until after alpha status.
2020-11-04 20:18:57 +00:00
Kubernetes Prow Robot
6a3fd8f3d7
Merge pull request #96204 from knight42/fix/curl-bearer-token
...
fix: pass bearer token to curl using --header instead of --oauth2-bearer
2020-11-04 10:38:53 -08:00
knight42
00e4234cc9
fix: pass bearer token to curl using -H instead of --oauth2-bearer
...
The flag `--oauth2-bearer` might have no effect in some environment.
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-11-05 01:15:19 +08:00
Kubernetes Prow Robot
792b4b1e32
Merge pull request #94661 from PurelyApplied/PoC-bazel-analysis-rebased
...
[KEP-1933] Provide hack/ testing target for static analysis.
2020-11-04 01:58:03 -08:00
Kubernetes Prow Robot
b00665c61b
Merge pull request #96073 from masap/local_up_cluster3
...
local-up-cluster.sh: Remove ineffective parameters
2020-11-03 14:58:04 -08:00
Masashi Honma
29c9fb6102
local-up-cluster.sh: Use config file instead of flags for kubelet
...
Because /tmp/kubelet.log shows trailing log twice.
Flag --address has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --rotate-certificates has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --feature-gates has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cpu-cfs-quota has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --enable-controller-attach-detach has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cgroups-per-qos has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cgroup-driver has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cgroup-root has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --eviction-hard has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --eviction-soft has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --eviction-pressure-transition-period has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --pod-manifest-path has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --authorization-mode has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --authentication-token-webhook has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --client-ca-file has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cluster-dns has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cluster-domain has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --runtime-request-timeout has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --port has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
2020-11-04 07:42:31 +09:00
Patrick Rhomberg
90b85bf3fa
KEP-1933: add static analysis target to hack/
...
* Add static analysis to hack/verify-govet-levee.sh for defense against
accidental logging of credentials.
* Add binary dependency to hack/tools/tools.go and associated go.mod, go.sum.
* Add analysis configuration to hack/testdata/levee/
2020-11-03 20:03:26 +00:00
Sascha Grunert
7b9d7fd953
Propose seccomp/apparmor protobuf type definitions for CRI graduation
...
With the graduation of the Container Runtime Interface (CRI) we will
have a unique chance to change the protobuf protocol. We now use native
types for seccomp and AppArmor to make the API more clear and concise to
be used.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-11-03 20:17:17 +01:00
Kubernetes Prow Robot
cf4a33c549
Merge pull request #95761 from ingvagabund/move-rbac-under-component-helpers
...
Move pkg/registry/rbac code imported by kubectl under component helpers
2020-11-02 11:56:29 -08:00
Kubernetes Prow Robot
8e6a98992d
Merge pull request #93859 from habibrosyad/patch-92402-2
...
fix vendor/k8s.io/apimachinery/pkg/api/meta staticcheck
2020-11-02 10:24:14 -08:00
Jan Chaloupka
a5920f7edb
Move helpers from pkg/registry/rbac/reconciliation and pkg/registry/rbac/validation under k8s.io/component-helpers
2020-11-02 17:51:16 +01:00
Kubernetes Prow Robot
d1c296431e
Merge pull request #96059 from knight42/refactor/migrate-health-check
...
refactor: migrate health checks of control-plane off insecure port in tests
2020-11-02 08:21:08 -08:00
M. Habib Rosyad
979fba1cb0
fix vendor/k8s.io/apimachinery/pkg/api/meta staticcheck
2020-11-01 15:38:57 +07:00
Kubernetes Prow Robot
b2e1165da8
Merge pull request #96063 from thockin/fix-96015-extra-dirs-conversion-gen
...
Pass all packages to conversion-gen
2020-10-31 03:38:51 -07:00
Masashi Honma
0cfb6a16e7
local-up-cluster.sh: Remove ineffective parameters
...
Because kube-apiserver shows these warnings, this patch removes parameters
which has no effect.
Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
2020-10-31 16:04:32 +09:00
Tim Hockin
54e2748e13
Pass all packages to conversion-gen
...
As per #96015 and other reports, conversion-gen does the wrong thing if
dependent packages are not ALSO being re-generated. It creates new
versions of generated files that have missing conversions.
This change passes all packages as "extras" which will be parsed but not
regenerated (default already does exactly this).
2020-10-30 22:22:57 -07:00
knight42
3c4d6859c8
refactor: migrate health checks of control-plane off insecure port in tests
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-10-31 11:39:25 +08:00
Kubernetes Prow Robot
bf67247124
Merge pull request #93258 from zshihang/token
...
mv TokenRequest and TokenRequestProjection to GA
2020-10-30 16:36:51 -07:00
Kubernetes Prow Robot
4b65f70652
Merge pull request #95740 from cici37/moveCCM
...
Move cloud-controller-manager to staging k8s.io/cloud-provider
2020-10-30 13:48:51 -07:00
Kubernetes Prow Robot
3662e1e344
Merge pull request #96025 from haircommander/fix-API_PORT
...
hack/local-up-cluster.sh: fix API_PORT
2020-10-29 21:04:15 -07:00
cici37
9465d95ea6
Move CCM to staging k8s.io/cloud-provider
2020-10-29 20:50:23 -07:00
Shihang Zhang
ff641f6eb2
mv TokenRequest and TokenRequestProjection to GA
2020-10-29 20:47:01 -07:00
Masashi Honma
181a724dc3
local-up-cluster.sh: Pass CLUSTER_CIDR to kube-proxy
...
This patch fixes the local-up-cluster.sh to pass CLUSTER_CIDR to kube-proxy.
Previously, CLUSTER_CIDR was passed only to controller manager and cloud
controller manager.
2020-10-30 09:50:02 +09:00
Kubernetes Prow Robot
4d4570979a
Merge pull request #95982 from masap/local_up_cluster1
...
local-up-cluster.sh: Pass SERVICE_CLUSTER_IP_RANGE to controller manager
2020-10-29 17:40:36 -07:00
Peter Hunt
174548659f
hack/local-up-cluster.sh: fix API_PORT
...
commit kubernetes/kubernetes@cfc2b33 causes a local cluster to not come up because it sets the default insecure port to 8080, which is no longer valid
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-10-29 17:17:58 -04:00
Kubernetes Prow Robot
1968e96165
Merge pull request #95856 from knight42/refactor/disable-apiserver-insecure-port
...
refactor(apiserver): disable insecure port
2020-10-29 10:47:58 -07:00
knight42
cfc2b330a7
refactor(apiserver): ignore the insecure flags
...
Leave the insecure flags intact but stop serving on insecure port.
2020-10-29 23:20:17 +08:00
Masashi Honma
8e84f3d78d
local-up-cluster.sh: Pass SERVICE_CLUSTER_IP_RANGE to controller manager
...
Previously, SERVICE_CLUSTER_IP_RANGE was passed only to kube-apiserver.
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2020-10-29 17:47:19 +09:00
Kubernetes Prow Robot
ec0ef23599
Merge pull request #95923 from deads2k/remove-deprecated
...
remove the deprecated client that we stopped generating
2020-10-28 12:50:11 -07:00
Kubernetes Prow Robot
17312ea4a9
Merge pull request #95810 from ruiwen-zhao/staticcheck_fix
...
Fix staticcheck failures on apiserver/plugin/pkg/{authenticator, auth…
2020-10-28 07:45:55 -07:00
David Eads
1f349b5d05
remove the deprecated client that we stopped generating
2020-10-28 10:43:31 -04:00
Joakim Roubert
434611b3fb
Fix shellcheck issues in cluster/gce/gci/master-helper.sh
...
Based on PR 88582 by gavinfish that was closed due to inactivity.
Contains a few updates.
Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-10-27 08:58:48 +01:00
Renaud Gaubert
a989bece00
Add podresources v1 API
2020-10-26 12:10:18 -07:00
Ben Hu
4e62298c1b
Fix static checks for pkg/controller/podautoscaler
2020-10-23 18:53:07 +00:00
ruiwen-zhao
bdedc4ce34
Fix staticcheck failures on apiserver/plugin/pkg/{authenticator, authorizer}
2020-10-22 21:47:17 +00:00
Wilson Husin
889ffb04d0
Fix golint failures in client-go/transport
...
Signed-off-by: Wilson Husin <whusin@vmware.com>
2020-10-21 01:01:29 -07:00
Abhisek Banerjee
462326afba
Support cross compilation only on amd64.
...
Based on a patch to Bottlerocket by Ben Cressey <bcressey@amazon.com>
41a72fe214/packages/kubernetes-1.17/0001-always-set-relevant-variables-for-cross-compiling.patch
2020-10-21 00:13:01 +00:00
bnrjee
6b672863c7
Always set relevant variables for cross compiling
...
Based on a patch to Bottlerocket by Ben Cressey <bcressey@amazon.com>
41a72fe214/packages/kubernetes-1.17/0001-always-set-relevant-variables-for-cross-compiling.patch
2020-10-21 00:13:01 +00:00
Kubernetes Prow Robot
a8a779133a
Merge pull request #95502 from suramrit/lintCorrection
...
Fix golint errors by adding definition comments for pkg/apis/apiserverinternal
2020-10-20 12:56:33 -07:00
Kubernetes Prow Robot
e0f7d0ce3e
Merge pull request #95659 from makhov/fix-verify-sh
...
fix unbound variable issue in verify.sh
2020-10-20 11:22:44 -07:00
Kubernetes Prow Robot
3b868e1a71
Merge pull request #92829 from marload/patch-0706-04
...
Refactoring: Reduce unnecessary lines
2020-10-19 19:12:07 -07:00
Kubernetes Prow Robot
a5dceab0ce
Merge pull request #95580 from jayunit100/jayunit100/pillarnodelocal
...
support multiple bind records (fie nodelocaldns test regression)
2020-10-16 22:24:12 -07:00
Kubernetes Prow Robot
c913d4ed2a
Merge pull request #95640 from lala123912/staticcheck_2
...
vendor/k8s.io/metrics/pkg/client/custom_metrics: fix static check
2020-10-16 16:00:12 -07:00
Aleksei Makhov
1777a356c8
fix unbound variable issue in verify.sh
2020-10-16 21:39:25 +03:00
jayunit100
aefe930562
support multiple bind records (fie nodelocaldns test regression), by
...
first replacing PILLAR_ and then replacing other vars.
2020-10-16 14:28:55 -04:00
Kubernetes Prow Robot
23e5a85648
Merge pull request #93627 from hasheddan/verify-py3
...
run make verify with python3 to fix publishing bot issue
2020-10-16 08:01:25 -07:00
lala123912
324e969a6c
fix staticcheck
...
vendor/k8s.io/metrics/pkg/client/custom_metrics/multi_client.go:49:4: ineffective break statement. Did you mean to break out of the outer loop? (SA4011)
vendor/k8s.io/metrics/pkg/client/custom_metrics/versioned_client.go:38:2: var codecs is unused (U1000)
2020-10-16 16:08:53 +08:00
Kubernetes Prow Robot
297b021f49
Merge pull request #95230 from Git-Jiro/fix_vendor_client_go
...
Fix staticchecks in vendor/k8s.io/client-go
2020-10-15 06:04:37 -07:00
Martin Schimandl
13c017056c
Fix staticchecks in vendor/k8s.io/client-go
2020-10-15 07:27:02 +02:00
Kubernetes Prow Robot
7ff41c1ba0
Merge pull request #94588 from MaXinjian/shellcheck-typo
...
Fix typo in comment of hack/verify-shellcheck.sh
2020-10-14 11:15:49 -07:00
Kubernetes Prow Robot
8647eece9c
Merge pull request #95113 from Git-Jiro/lint_ttlcontroller
...
Lint ttl_controller
2020-10-13 22:51:53 -07:00
Kubernetes Prow Robot
ea896a2e64
Merge pull request #95224 from Git-Jiro/lint_endpoint
...
Fix lint errors in pkg/contoller/endpoint
2020-10-13 12:06:27 -07:00
Kubernetes Prow Robot
01f3f67989
Merge pull request #92663 from AndersonQ/68026-golint-/pkg/kubelet/stats
...
cleanup: fix golint errors in /pkg/kubelet/stats
2020-10-12 23:48:26 -07:00
Kubernetes Prow Robot
1dff024e64
Merge pull request #91014 from cici37/apiConfig
...
Move cmd/controller-manager to k8s.io/controller-manager
2020-10-12 15:17:22 -07:00
Suramrit Singh
e0249c4b0b
- fix golint errors by adding defition comments
...
- remove /pkg/apiserverinternal from .golint_failures
2020-10-12 15:03:53 -07:00
Kubernetes Prow Robot
c1e5e6a556
Merge pull request #93836 from jayunit100/salt_cleanup_92835
...
remove __pillar__ refs
2020-10-11 17:58:47 -07:00
cici37
ae8ce0d190
Move cmd/controller-manager to k8s.io/controller-manager and cloud specific configs to k8s.io/cloud-provider.
2020-10-08 13:23:16 -07:00
Anderson Queiroz
8c724d7933
cleanup: fix golint errors in /pkg/kubelet/stats
2020-10-08 21:59:42 +02:00
Kubernetes Prow Robot
b53ba30c6a
Merge pull request #94762 from joakimr-axis/joakimr-axis_log-dump-array
...
log-dump.sh: Fix shellcheck issues
2020-10-08 10:10:55 -07:00
Joakim Roubert
d4dd0ad53c
log-dump.sh: Fix shellcheck issues
...
Mitigate the shellcheck warning for the assignment of local variable.
Add rest of shellcheck fixes from #88349
Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-10-08 13:58:00 +02:00
Kubernetes Prow Robot
777e84e184
Merge pull request #95101 from a1k24/patch-92402-staticcheck
...
fixes test/integration/ttlcontroller staticcheck
2020-10-07 02:16:42 -07:00
cici37
33e23c4005
Move cloud related feature gates to controller-manager
2020-10-05 10:19:08 -07:00
Kubernetes Prow Robot
267ba6781e
Merge pull request #95098 from phunziker/92402-memcache_test
...
Fix vendor/k8s.io/client-go/discovery/cached/memory staticcheck
2020-10-04 11:23:05 -07:00
Kubernetes Prow Robot
c87dd9c512
Merge pull request #95275 from ProZsolt/golint-pkg-registry-core-replicationcontroller
...
Fix golint failures in pkg/registry/core/replicationcontroller
2020-10-04 03:35:05 -07:00
Kubernetes Prow Robot
0d1ac16ca4
Merge pull request #95180 from SaiHarshaK/staticcheck_kubectl_get
...
fix staticcheck for kubectl pkg files
2020-10-03 10:47:05 -07:00
Zsolt Prontvai
c244e175e2
Fix golint failures in pkg/registry/core/replicationcontroller
2020-10-03 12:56:14 +01:00
Sai Harsha Kottapalli
f6b3c5fb3f
fix staticcheck for kubectl pkg files
2020-10-03 13:50:53 +05:30
Martin Schimandl
104ad794e5
Fix lint errors in pkg/contoller/endpoint
...
Also mark reason for lint errors in:
pkg/controller/endpoint/config/v1alpha1,
pkg/controller/endpointslice/config/v1alpha1
pkg/controller/endpointslicemirroring/config/v1alpha1
2020-10-01 09:11:00 +02:00
a1k24
8854924e65
fixes test/integration/ttlcontroller staticcheck
2020-09-30 11:54:23 +05:30
Martin Schimandl
600d621ce6
Lint ttl_controller
2020-09-28 14:22:37 +02:00
Patrick Hunziker
b08e36eeb9
Fix staticcheck failure for vendor/k8s.io/client-go/discovery/cached/memory
2020-09-27 18:31:46 +02:00
Kubernetes Prow Robot
8eda21ea3f
Merge pull request #94950 from dashpole/empty_package_vendor
...
Fix empty package license generation
2020-09-23 10:14:39 -07:00
Kubernetes Prow Robot
d19aec8bf1
Merge pull request #92985 from serathius/summary
...
Move Kubelet Summary API to staging directory
2020-09-22 22:30:08 -07:00
Kubernetes Prow Robot
f728fbaa62
Merge pull request #94501 from ialidzhikov/nit/labels-staticcheck
...
Fix staging/src/k8s.io/apimachinery/pkg/labels golint findings
2020-09-22 12:23:51 -07:00
Kubernetes Prow Robot
100fe77b38
Merge pull request #86582 from mlmhl/local-up-cluster
...
do not wait for node ready when starting kube-proxy in 'nokubelet' mode
2020-09-22 12:21:09 -07:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02:00
David Ashpole
cbdf84a374
handle longer vendor paths without go files
2020-09-21 14:48:19 -07:00
Kubernetes Prow Robot
3fd5f367d6
Merge pull request #94820 from roycaihw/conversion-gen-clean-build
...
verify-generated-swagger-docs: remove unnecessary build
2020-09-16 00:17:19 -07:00
Haowei Cai
1ad3ba35ff
verify-generated-swagger-docs: remove unnecessary build
2020-09-15 19:30:58 -07:00