Commit Graph

110432 Commits

Author SHA1 Message Date
Riaan Kleinhans
7ceeca13a3
Fix 1.17 to 1.7 2022-09-14 09:14:28 +12:00
Riaan Kleinhans
f5502818ad
Update ineligible_endpoints.yaml 2022-09-13 11:16:42 +12:00
Riaan Kleinhans
4b4084915a
Update_ineligible_endpoints.yaml
remove createCoreV1NamespacedBinding
2022-09-13 09:35:58 +12:00
Kubernetes Prow Robot
0f37b31206
Merge pull request #112046 from aojea/etcd_healthz
rate limite etcd healthcheck request
2022-09-12 12:01:27 -07:00
Kubernetes Prow Robot
3ac752e4a0
Merge pull request #112003 from sanposhiho/metrics-goroutine
feature(scheduler): add "goroutines" metric and deprecate the "scheduler_goroutines" metric
2022-09-12 12:01:16 -07:00
Kubernetes Prow Robot
5858aa2bef
Merge pull request #110267 from TinySong/auth-cani
update auto can-i error message
2022-09-12 12:01:05 -07:00
Kubernetes Prow Robot
46e1718462
Merge pull request #112351 from piotrnosek/fixbehaviortests
Fix flaky and failing HPA E2E Behavior tests
2022-09-12 10:55:37 -07:00
Kubernetes Prow Robot
ed520f3cac
Merge pull request #112309 from shyamjvs/disable-compression
Add a "DisableCompression" option to kubeconfig
2022-09-12 10:55:25 -07:00
Kubernetes Prow Robot
16ca3eb96d
Merge pull request #112391 from bboreham/internal-comment
Tiny comment cleanup in pkg/apis/apps/types.go
2022-09-12 09:41:36 -07:00
Kubernetes Prow Robot
d7d82ad972
Merge pull request #112252 from piotrnosek/hpa-average-metrics
Add e2e HPA Tests: CPU and Memory Average with different aggregation methods: Average Value and Utilization
2022-09-12 09:41:24 -07:00
Kubernetes Prow Robot
eedf0ed221
Merge pull request #112390 from pohly/e2e-storage-helpers
e2e storage: update helpers
2022-09-12 08:07:48 -07:00
Kubernetes Prow Robot
6cf208e4d4
Merge pull request #112354 from pohly/volumebinding-delete-event-handler
volumebinding: handle special delete event in AssumeCache
2022-09-12 08:07:36 -07:00
Kubernetes Prow Robot
48256c55c2
Merge pull request #112251 from pohly/e2e-storage-proxy-shutdown
e2e storage: close all pending streams when proxy listener gets closed
2022-09-12 08:07:24 -07:00
Bryan Boreham
91eb1407d2 Remove incorrect mention of pointer in comment
This `DeploymentSpec` struct is used internally; the ones used for
serialization do have a pointer and this text was most likely copied
from there and not corrected.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-09-12 14:20:26 +00:00
Kubernetes Prow Robot
72f96d9c72
Merge pull request #112386 from Shubham82/remove_CSRDuration_featuregate
Remove  CSRDuration feature gate.
2022-09-12 07:01:37 -07:00
Kubernetes Prow Robot
74469ca4c5
Merge pull request #112123 from paskal/paskal/cfs_clarification
clarify CPUCFSQuotaPeriod values, set the minimum to 1ms
2022-09-12 07:01:25 -07:00
Patrick Ohly
24230b4307 e2e storage: support creating ReplicaSet
This is useful for running a driver on a subset of all ready nodes:

- use e2enode.GetBoundedReadySchedulableNodes with a suitable
  maximum number of nodes to determine how much nodes are available
  for a test
- define pod anti-affinity in the PodTemplate:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                app.kubernetes.io/instance: xxxxxxx
            topologyKey: kubernetes.io/hostname
- set the ReplicaSetSpec.Replicas value to the number of nodes
2022-09-12 14:38:28 +02:00
Patrick Ohly
b6b25c80de e2e storage: add CreateFile to pod IO operations
This complements the other operations and will be used by some
future tests.
2022-09-12 14:38:27 +02:00
Kubernetes Prow Robot
3e9e41f82c
Merge pull request #112389 from pohly/test-cleanup-flake
e2e: avoid random control plane output through GinkoWriter
2022-09-12 05:27:37 -07:00
Kubernetes Prow Robot
744bd22b35
Merge pull request #111959 from marseel/fix_approvers_reviewers
Add marseel/mborsz to sig-scalability-approvers and move mm4tt to emeritus
2022-09-12 05:27:25 -07:00
Kubernetes Prow Robot
bf350ac4c8
Merge pull request #112203 from azylinski/fix-teardown-delete-all
Fix Flake: On TearDown script, delete all firewall-rules with a single gcloud run
2022-09-12 03:17:25 -07:00
Patrick Ohly
2e61dfbf1d e2e: avoid random control plane output through GinkoWriter
If the control plane emits anything at the time when the test runs, for example
"unable to sync kubernetes service", the test breaks because that additional
output is unexpected.
2022-09-12 12:02:37 +02:00
Shubham Kuchhal
4ba39fc799 Remove GA featuregate: CSRDuration 2022-09-12 13:59:08 +05:30
Artur Żyliński
f35799f6b1 Fix: Refactor firewall-rules list to read-array 2022-09-12 10:20:50 +02:00
Kubernetes Prow Robot
4411a16a5c
Merge pull request #112375 from pohly/e2e-build-time
e2e: reduce built time for framework
2022-09-10 10:05:22 -07:00
Patrick Ohly
d33e66b81b e2e: reduce built time for framework
Pulling the CreateKubeConfig function from the expensive to build
test/utils/apiserver package had a considerable impact on the overall build
time because that package depends on a lot of other packages.

Because only that one function is needed by the framework, that extra build
time can be avoided by moving it into its own package.
2022-09-10 17:56:23 +02:00
Kubernetes Prow Robot
d9f21e55df
Merge pull request #111998 from pohly/e2e-framework-after-each
e2e framework: replace custom cleanup support with Ginkgo v2 mechanisms
2022-09-09 16:17:22 -07:00
Kubernetes Prow Robot
b48b0eac6a
Merge pull request #112349 from pohly/klog-update
build: update to klog v2.80.1
2022-09-09 14:37:24 -07:00
Kubernetes Prow Robot
e6fa40a11c
Merge pull request #112355 from mimowo/handling-pod-failures-roundtrip-test
Fix the TestRoundTripTypes by adding default to the fuzzer
2022-09-09 12:25:23 -07:00
Piotr Nosek
3d7855392f HPA E2E Test: CPU / Memory: Average Value / Utilization 2022-09-09 16:06:55 +00:00
Kante Yin
096dafe757
Feat: unify the status handle when return in bindingCycle (#112103)
Signed-off-by: kerthcet <kerthcet@gmail.com>

Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-09 08:31:23 -07:00
Michal Wozniak
31740d1c37 Fix the TestRoundTripTypes by adding default to the fuzzer 2022-09-09 16:47:08 +02:00
Piotr Nosek
ed1a3e6f70 Fix flaky and failing HPA E2E Behavior tests 2022-09-09 12:57:48 +00:00
Patrick Ohly
7eb472246f e2e framework: use new apiserver helper package 2022-09-09 13:51:07 +02:00
Patrick Ohly
fc092eb145 e2e: remove cleanup actions
The framework.AddCleanupAction API was a workaround for Ginkgo v1 not invoking
AfterEach callbacks after a test failure. Ginkgo v2 not only fixed that, but
also added a DeferCleanup API which can be used to run some code if (and only
if!) the corresponding setup code ran. In several cases that makes the test
cleanup simpler.
2022-09-09 13:51:07 +02:00
Patrick Ohly
b7529097ca e2e framework: add unit test for test execution
This covers multiple facets of the current framework and of Ginkgo:

- Ginkgo output is verbose and includes detailed progress
  messages (BeforeEach/AfterEach tracing).
- Namespace creation.
- Order of callback invocation.
2022-09-09 13:51:07 +02:00
Patrick Ohly
f6029e4281 test: add helper code for running apiserver inside unit test
This runs etcd and an apiserver using it inside the test process. The caller
can either use the ClientSet or the config file. More options might get added
in the future.

Co-author: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2022-09-09 13:51:04 +02:00
Patrick Ohly
60d92dd96a build: update to klog v2.80.1
The fix for https://github.com/kubernetes/klog/issues/348 is required before
https://github.com/kubernetes/kubernetes/pull/111998 can be merged because the
way how a unit test in that PR uses klog triggers the data race.
2022-09-09 13:11:55 +02:00
Kubernetes Prow Robot
2b2be7fa6b
Merge pull request #111277 from chymy/improve-kubeadm-subcommand-tips
kubeadm: improve tips of incorrect input of kubedm subcommand
2022-09-09 00:49:23 -07:00
Kubernetes Prow Robot
d569886a23
Merge pull request #112341 from enj/enj/i/second_time_is_the_charm
Remove in-tree credential plugins (again)
2022-09-08 20:35:36 -07:00
Kubernetes Prow Robot
c9c3d2e9d9
Merge pull request #111768 from weilaaa/feature_add_symmetric_difference_in_sets_string
add method symmetric difference in sets.String
2022-09-08 20:35:25 -07:00
Kubernetes Prow Robot
a7936658ba
Merge pull request #112193 from jindijamie/master
Add an option for aggregator
2022-09-08 17:21:24 -07:00
Monis Khan
09cde58bbc
Remove in-tree credential plugins (again)
This change reverts three commits:

1. Revert "Revert "Remove gcp and azure auth plugins""
   This reverts commit 651b4f5b64.

2. Revert "update-gofmt"
   This reverts commit 79c09f0b31.

3. Revert "Update removal warnings to 1.26"
   This reverts commit 68758fc5c5.

Signed-off-by: Monis Khan <mok@microsoft.com>
2022-09-08 19:43:12 -04:00
Shyam Jeedigunta
f9c46a0e33 Autogen code 2022-09-08 16:07:02 -07:00
Shyam Jeedigunta
641fd5b482 Add DisableCompression option to KubeConfig 2022-09-08 16:06:56 -07:00
Kubernetes Prow Robot
082da2f04e
Merge pull request #112017 from enj/enj/i/exec_tls_cache
exec auth: support TLS config caching
2022-09-08 15:35:22 -07:00
Dmitry Verkhoturov
d0f9e6dc36 clarify CPUCFSQuotaPeriod values, set the minimum to 1ms
cpu.cfs_period_us is measured in microseconds in the kernel but
provided in time.Duration by the user, that change clarifies the code
to make this evident to the reader.

Also, the minimum value for that feature is 1ms and not 1μs, and this
change alters the validation to reject values smaller than 1ms.
2022-09-08 23:29:13 +02:00
Patrick Ohly
f7864977b6 e2e internal: support Ginkgo v2 log time stamps
When using By or some other Ginkgo output functions, Ginkgo v2 now adds a time
stamp at the end of the line that we need to ignore. Will become relevant when
testing more complete output.
2022-09-08 22:50:01 +02:00
Patrick Ohly
53e1c7b4c3 e2e framework: remove AddAfterEach
For cleanup purposes the ginkgo.DeferCleanup is a better replacement for
f.AddAfterEach:
- the cleanup only gets executed when the corresponding setup code ran
  and can use the same local variables
- the callback runs after the test and before the framework
  deletes namespaces (as before)
- if one callback fails, the others still get executed

For the original purpose (https://github.com/kubernetes/kubernetes/pull/86177 "This is
very useful for custom gathering scripts.") it is now possible to use
ginkgo.AfterEach because it will always get executed. Just beware that its
callbacks run in first-in-first-out order.
2022-09-08 22:50:01 +02:00
Patrick Ohly
cbf94307ef e2e framework: clean up instance after all other code ran
In contrast to ginkgo.AfterEach, ginkgo.DeferCleanup runs the callback in
first-in-last-out order. Using it makes the following test code work as
expected:

    f := framework.NewDefaultFramework("some test")

    ginkgo.AfterEach(func() {
        // do something with f.ClientSet
    })

Previously, f.ClientSet was already set to nil by the framework's cleanup code.
2022-09-08 22:50:01 +02:00