Commit Graph

97691 Commits

Author SHA1 Message Date
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
1b04d05423 Makefile: add debug on generated files 2021-01-25 10:15:59 -08:00
Tim Hockin
8703dc6e1c Makefile: remove redundant line
This same dep is expressed a few lines later in the "real" recipe.
2021-01-25 10:15:58 -08:00
Tim Hockin
e46810bca5 Make: $(foo:-) is shell, not makefile syntax
Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -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
Tim Hockin
371d602a05 Make: change $(eval) in a comment
Because this comment is in a `define` which is later evaluated, the
syntactical `$(eval)` is treated like a variable exapansion.  Just
change the comment.

Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -08:00
Tim Hockin
83dc781d29 Make: init variables
Driving towards the goal of `make --warn-undefined-variables` working.
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
b7fc3f91ea
Merge pull request #98312 from deads2k/finish-export-option-removal
finish removal of exportoptions
2021-01-25 08:15:15 -08:00
Kubernetes Prow Robot
a03264bebc
Merge pull request #97700 from hasheddan/sig-rel-owners
OWNERS: Update SIG Release aliases
2021-01-25 08:15:06 -08:00
Kubernetes Prow Robot
2df1c6a0fa
Merge pull request #92065 from pohly/podinfo-doc-fix
storage: document csi.storage.k8s.io/ephemeral also for internal type
2021-01-25 08:14:54 -08:00
Kubernetes Prow Robot
fa3be1bcd2
Merge pull request #98096 from leileiwan/master
fix(*):inter pod affinity default min score is zero
2021-01-25 07:22:54 -08:00
David Eads
cebce291dd Update delegated authorization options default to eliminate unnecessary
SARs

healthz, readyz, and livez are canonical names for checks that the kubelet does.  By default, allow access to them in the options. Callers can adjust the defaults if they have a reason to require checks.

system:masters has full power, so the authorization check is unnecessary and just uses an extra call for in-cluster access.  Callers can adjust the defaults if they have a reason to require checks.
2021-01-25 09:42:18 -05:00
Kubernetes Prow Robot
16ed85a6d5
Merge pull request #98333 from aojea/e2escale
e2e sig-network loadbalancer tests
2021-01-25 04:10:54 -08:00
Stephen Augustus
c181fcd1f3 OWNERS(CHANGELOG): Add 1.21 Release Notes shadows as reviewers
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 06:08:44 -05:00
Stephen Augustus
30fccd6b44 OWNERS(CHANGELOG): Add release-engineering-reviewers as approvers
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 06:06:33 -05:00
hasheddan
d7c6274d2f OWNERS(CHANGELOG): Add wilsonehusin (1.21 relnotes lead) as approver
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Co-authored-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 06:06:33 -05:00
Stephen Augustus
205b9d7703 OWNERS(sig-release): Add CHANGELOG aliases
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 06:06:32 -05:00
Stephen Augustus
a79a5f7d46 OWNERS(build-image): Add Release Managers as reviewers
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 06:05:11 -05:00
hasheddan
2ba5d99912 OWNERS(releng): Sync Release Managers
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Co-authored-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 05:51:37 -05:00
Stephen Augustus
387796307a OWNERS(sig-release): Remove SIG Release approvers alias
We're currently only using this for changelog approvals and those should
really be handled by relnotes + RelEng.

Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-01-25 05:17:16 -05:00
Mike Spreitzer
1f1e8e21d8 Less demanding test cases in TestUniformDistribution
Also a bug fix in the evaluation.
2021-01-25 01:44:08 -05:00
Mike Spreitzer
736a87a4ee Tweak up TestSampler in response to review 2021-01-24 23:38:48 -05:00
tanjing2020
e144c4e1e9 migrate scheduler/taint_manager.go structured logging 2021-01-25 10:06:41 +08:00
Matthew Fenwick
069ec05037 run node bandwidth tests using iperf2 and collecting more detailed information 2021-01-24 16:06:41 -05:00
Kubernetes Prow Robot
3433f099fb
Merge pull request #97898 from knabben/api-netpol-test
Copying Netpol API tests from networkpolicy folder
2021-01-24 09:48:53 -08:00
Kubernetes Prow Robot
6a1087ed40
Merge pull request #98340 from gavinfish/sched-preempt-pi
Scheduler: update potentialVictims as framework.PodInfo type
2021-01-24 08:50:53 -08:00
drfish
a8c5aa47fc Remove legacy prometheus visibility package_group 2021-01-25 00:19:29 +08:00
Kubernetes Prow Robot
2a4c956b0c
Merge pull request #98337 from eltociear/patch-1
Fix typo in device_plugin_test.go
2021-01-24 07:52:53 -08:00
Amim Knabben
92066e9e28 Copying Netpol API tests from networkpolicy folder 2021-01-24 10:48:10 -05:00
drfish
8be6d9650c Update potentialVictims as framework.PodInfo type 2021-01-24 22:17:28 +08:00
Kubernetes Prow Robot
0e2248f753
Merge pull request #97258 from lojies/changelogmod
fix error flag in changlog
2021-01-24 01:58:53 -08:00
leileiwan
65d2dda443 fix(*): init max score with -maxInt64 2021-01-24 17:30:27 +08:00
Ikko Ashimine
5155decbbf
Fix typo in device_plugin_test.go
assignement -> assignment
2021-01-24 17:42:34 +09: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
Kubernetes Prow Robot
7f033ea142
Merge pull request #97517 from pacoxu/patch-2
update known issue status for 1.20 changelog
2021-01-23 19:18:53 -08:00
Kubernetes Prow Robot
fb276ce201
Merge pull request #98318 from dims/adding-dims-to-test/images-owners
Adding dims to test/images OWNERS file
2021-01-23 18:06:53 -08:00
Antonio Ojea
e08a00f97d split tcp/udp e2e loadbalancer test
splitting the test, one per protocol, we can run them in parallel.
2021-01-24 01:42:04 +01:00
Antonio Ojea
63dce95fd2 e2e network test reorganization
the sig-network e2e tests related to services has more than 3k lines.
Some of those e2e tests are related to loadbalancers, that are
cloud provider specific and have special requirements.

We split up the services file and keeps the loadbalancers e2e tests
in their own file and with their own tag, so it is easier to skip
for people that don't run e2e tests in cloud providers.
2021-01-24 01:12:42 +01:00
Kubernetes Prow Robot
676079605d
Merge pull request #97789 from pacoxu/fix/gce-depre-version
metadata concealment: remove the legacy endpoints from the check
2021-01-23 10:41:39 -08:00
Kubernetes Prow Robot
308aa1a87a
Merge pull request #98273 from wenjiaswe/patch-2
Remove unused expectedRV in store_test TestGet
2021-01-23 06:39:39 -08:00
Kubernetes Prow Robot
ecb3a682b8
Merge pull request #98313 from claudiubelu/test-images/fixes-apparmor-loader
test images: Fixes apparmor-loader image
2021-01-23 01:51:39 -08:00
jornshen
c88cb14777 combine volumn latency and error metrics 2021-01-23 16:19:26 +08:00
Kubernetes Prow Robot
b557633c3f
Merge pull request #98249 from JornShen/optimize_writeline_writeBytesLine
Optimize writeline and writeBytesLine in proxier.go
2021-01-22 23:45:39 -08:00
Kubernetes Prow Robot
194e5193c4
Merge pull request #97877 from andyzhangx/azurefile-migration-fix
fix azure file migration issue
2021-01-22 18:21:39 -08:00
Jiawei Wang
bda557b4bc Disable in-tree plugin without enabling CSI migration
This commit replaces the CSIMigrationXXXComplete flag
with InTreePluginXXUnregister flag. This new flag will
be a superset of the CSIMigrationXXXComplete. But this
decouple the plugin unregister from CSI migration. So
if a K8s distribution want to go directly with CSI and
do not support in-tree, they can use this flag directly.

Testing:
1. Enable the InTreePluginXXUnregister and not CSIMigrationXXX,
verify that the PVC using old plugin name will have error
saying cannot find the plugin
2. Enable both the InTreePluginXXUnregister and CSIMigrationXXX
verify that the PVC using old plugin name will start to use
the migrated CSI plugin
2021-01-22 16:58:51 -08:00
Andrea Tosatto
8de53ce96c client-go: export NewDebuggingRoundTripper function and DebugLevel
`debuggingRoundTripper` is a useful throbleshooting tool to debug of Kubernetes API requests and their timing.

Unfortunately, as of today, it can only be used via the `DebugWrappers` function, which automatically adjust the amount of debug information exposed by the roundTripper based on the configured `klog` verbosity.

While `DebugWrappers` definitely fits the purpose for clients using `klog`, this is currently hard to be used for controllers using `controller-runtime`, which uses `github.com/go-logr/logr` for logging.

In this PR we change the visibility of `newDebuggingRoundTripper` and `debugLevel` in order to be directly accessible from users of the `k8s.io/client-go/transport` package.

In particular, the changes proposed in this PR allow users of `controller-runtime` to use the `debuggingRoundTripper` to intercept Kubernetes API requests as follows

```go
import (
        ctrl "sigs.k8s.io/controller-runtime"
)

func init() {
	ctrl.SetLogger(zap.New())
}

func main() {
        // wrap the http transport used by the Kubernetes client
	restConfig, err := ctrl.GetConfig()
	checkError(setupLog, err, "unable to get kubernetes client config")

        restConfig.Wrap(func(rt http.RoundTripper) http.RoundTripper {
		return transport.NewDebuggingRoundTripper(rt, transport.DebugJustURL)
	})

        ...
}
```
2021-01-22 21:27:48 +01:00