Kubernetes Prow Robot
ef45c99506
Merge pull request #109025 from alculquicondor/smaller-job-integration-load
...
Reduce number of pods in Job+GC tests
2022-03-28 15:23:56 -07:00
Joe Betz
ff3d67d76a
Enfoce per-CRD estimated cost limit
2022-03-28 17:33:16 -04:00
Kermit Alexander
7e66bd2057
Add per-CRD cost evaluation.
2022-03-28 16:08:13 +00:00
Nick Turner
18ce801bea
Remove the deprecated insecure serving from the cloud controller manager
2022-03-27 00:15:24 +00:00
Antonio Ojea
d2ca66651d
refactor apiserver tests
2022-03-26 10:20:27 +01:00
Antonio Ojea
ddadc9a0bb
reorganize controlplane integration tests
2022-03-26 09:19:55 +01:00
Antonio Ojea
d9bac2efb9
reduce parallelism on daemonset tests
2022-03-26 09:14:53 +01:00
Kubernetes Prow Robot
6c73b674d7
Merge pull request #109030 from liggitt/revert-apf-ssa
...
Revert "Revert "Merge pull request #107797 from tkashem/revert-107456""
2022-03-25 19:17:58 -07:00
Kubernetes Prow Robot
c239b406f0
Merge pull request #108929 from gnufied/move-expansion-feature-gate-ga
...
Move all volume expansion feature gates to GA
2022-03-25 18:08:16 -07:00
Kubernetes Prow Robot
0a63090445
Merge pull request #108859 from cici37/placeholder
...
Return a placeholder error for blocking failures and skip CEL validation.
2022-03-25 18:07:58 -07:00
Jordan Liggitt
363a8beaab
Revert "Revert "Merge pull request 107797 from tkashem/revert-107456""
...
This reverts commit b0b460921b
.
2022-03-25 14:36:10 -04:00
Aldo Culquicondor
cd9fd12960
Reduce number of pods in Job+GC tests
...
To reduce the load of the integration tests. This change reduces the runtime of each test in half.
Change-Id: I71bcaadf3809643c63bb0f6b73c28778d37d8967
2022-03-25 13:01:50 -04:00
Kubernetes Prow Robot
4348c8ecaf
Merge pull request #108752 from alculquicondor/job-orphan-pods
...
Fix: Clean job tracking finalizer from orphan pods
2022-03-25 03:21:51 -07:00
cici37
460121fa1e
Return a placeholder error for blocking failure before CEL validation.
2022-03-25 01:19:31 -07:00
Joe Betz
f71c4d4cf4
Add validation rule tests for transition rules
2022-03-24 21:19:50 -04:00
Ben Luddy
fe38a414f8
Allow and enforce CEL CRD validation rules that reference oldSelf.
...
Co-authored-by: Joe Betz <jpbetz@google.com>
2022-03-24 18:20:51 -04:00
Alex Zielenski
11b3a18cca
Update kube-openapi ( #108895 )
...
* upgrade k8s.io/kube-openapi
* fix open-api v3 blank aggregator output
* use keys as API group
in ./hack/update-openapi-spec.sh
* fix import grouping
* update openapiv3 integration tests
2022-03-24 14:01:01 -07:00
Kubernetes Prow Robot
2161071d0b
Merge pull request #108919 from denkensk/rename-usQ
...
Rename unschedulableQ to unschedulablePods
2022-03-24 12:18:53 -07:00
Aldo Culquicondor
1d9e3766d2
Add test for Background delete propagation
...
Change-Id: I033e6fb04933c64cfe6490d1019333745d58c423
2022-03-24 11:57:51 -04:00
Aldo Culquicondor
f72173e4b4
Add integration test for orphan pods when there is GC
...
Change-Id: I04cd70725fd1830be8daf2dca53f67bc10a379b7
2022-03-24 11:57:49 -04:00
Hemant Kumar
9343cce20b
remove ExpandPersistentVolume feature gate
2022-03-24 10:02:47 -04:00
Kubernetes Prow Robot
190f974dd8
Merge pull request #108902 from kolyshkin/bump-golangci-lint
...
Fix verify:* after go 1.18 upgrade
2022-03-24 02:59:06 -07:00
Alex Wang
8a5df1302a
rename unschedulableQ to unschedulablePods
...
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com>
2022-03-24 17:38:49 +08:00
Kubernetes Prow Robot
bb67b5e9e8
Merge pull request #108717 from lavalamp/remove-clustername
...
Remove ClusterName
2022-03-23 22:31:33 -07:00
Kubernetes Prow Robot
f97825e1ce
Merge pull request #107395 from alculquicondor/indexed-job
...
Graduate IndexedJob to stable
2022-03-23 17:44:41 -07:00
Kubernetes Prow Robot
7dde0b4bb5
Merge pull request #108342 from tkashem/rate-limit-error
...
client-go: chain the error returned by rate limiter
2022-03-23 13:21:43 -07:00
Kubernetes Prow Robot
9fbe66a486
Merge pull request #103516 from ykakarap/kubectl-subresources-apiserver
...
kubectl: apiserver changes to add --subresource support
2022-03-23 13:21:32 -07:00
Kubernetes Prow Robot
2d46f1bc30
Merge pull request #103062 from ikeeip/component_helper_storage
...
Move volume helpers to "k8s.io/component-helpers/storage/volume".
2022-03-23 13:21:20 -07:00
Kubernetes Prow Robot
14e8db067e
Merge pull request #108191 from ravisantoshgudimetla/wire-cert-contexts
...
Wire cert contexts
2022-03-23 11:20:17 -07:00
Kir Kolyshkin
8820f4d381
TestWatchRestartsIfTimeoutNotReached: fix
...
This fixes the following error:
> test/integration/apimachinery/watch_restart_test.go:232:5: call to (*T).Fatalf from a non-test goroutine
Update: the previous fix (commit 1ce55e3afe
that uses panic)
looks way too severe; it seems it is enough to call t.Errorf and return
from goroutine. The test will time out and fail anyway.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:38 -07:00
Daniel Smith
2831f9a343
remove unneeded references
2022-03-23 15:26:38 +00:00
Kubernetes Prow Robot
24a71990e0
Merge pull request #108445 from pohly/storage-capacity-ga
...
storage capacity GA
2022-03-23 08:06:21 -07:00
Abu Kashem
6acbe7e645
client-go: chain the error returned by rate limiter
2022-03-23 08:29:28 -04:00
Davanum Srinivas
1ce55e3afe
fix govet on golang 1.18
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-23 08:02:53 -04:00
Yuvaraj Kakaraparthi
801c39b478
kubectl: API changes to support --subresource in kubectl
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Co-authored-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
Co-authored-by: Yuvaraj Kakaraparthi <kakaraparthy@vmware.com>
2022-03-23 11:19:58 +05:30
Kubernetes Prow Robot
0b8a665d50
Merge pull request #108613 from Huang-Wei/fix-v1beta3-order
...
Fix a bug that out-of-tree plugin is misplaced when using scheduler v1beta3 config
2022-03-22 01:01:44 -07:00
Kubernetes Prow Robot
9a8defda15
Merge pull request #108383 from tkashem/revert
...
Revert the revert of #107456 - "apf: change controller to use SSA for patches"
2022-03-21 22:09:43 -07:00
Kubernetes Prow Robot
7cf5c02980
Merge pull request #107979 from XudongLiuHarold/promote-loadbalancerclass-to-ga
...
Promote load balancer class to GA
2022-03-21 17:54:13 -07:00
Xudong Liu
c8a6c7f338
promote load balancer class to GA
...
Signed-off-by: Xudong Liu <xudongliuharold@gmail.com>
2022-03-21 16:16:13 -07:00
Wei Huang
d330f4dcb4
Fix a bug that out-of-tree plugin is misplaced when using scheduler v1beta3 config
2022-03-21 10:46:26 -07:00
Kubernetes Prow Robot
cd6af9e64b
Merge pull request #106155 from enj/enj/i/webhook_rest_config
...
webhook: use rest.Config instead of kubeconfig file as input
2022-03-18 12:23:56 -07:00
Kubernetes Prow Robot
ad751e8520
Merge pull request #108710 from kevindelgado/ssfv-testing-improvement
...
Exact Matching for Field Validation Integration Tests
2022-03-17 21:21:16 -07:00
Monis Khan
fef7d0ef1e
webhook: use rest.Config instead of kubeconfig file as input
...
This change updates the generic webhook logic to use a rest.Config
as its input instead of a kubeconfig file. This exposes all of the
rest.Config knobs to the caller instead of the more limited set
available through the kubeconfig format. This is useful when this
code is being used as a library outside of core Kubernetes. For
example, a downstream consumer may want to override the webhook's
internals such as its TLS configuration.
Signed-off-by: Monis Khan <mok@vmware.com>
2022-03-17 20:47:42 -04:00
Kevin Delgado
7983932800
Exact Matching for Field Validation Tests
2022-03-17 22:08:49 +00:00
Konstantin Misyutin
1d7cefe9c4
Move volume helpers to "k8s.io/component-helpers/storage/volume".
...
This patch aims to simplify decoupling "pkg/scheduler/framework/plugins"
from internal "k8s.io/kubernetes" packages. More described in
issue #89930 and PR #102953 .
Some helpers from "k8s.io/kubernetes/pkg/controller/volume/persistentvolume"
package moved to "k8s.io/component-helpers/storage/volume" package:
- IsDelayBindingMode
- GetBindVolumeToClaim
- IsVolumeBoundToClaim
- FindMatchingVolume
- CheckVolumeModeMismatches
- CheckAccessModes
- GetVolumeNodeAffinity
Also "CheckNodeAffinity" from "k8s.io/kubernetes/pkg/volume/util"
package moved to "k8s.io/component-helpers/storage/volume" package
to prevent diamond dependency conflict.
Signed-off-by: Konstantin Misyutin <konstantin.misyutin@huawei.com>
2022-03-16 15:43:09 +08:00
Jefftree
8a1d5947ad
googleapis/gnostic -> google/gnostic
2022-03-15 20:44:03 -07:00
Aldo Culquicondor
2c5d0a273c
Graduate IndexedJob to stable
...
- Lock feature gate to true and schedule for deletion in 1.26
- Remove checks on feature gate
- Graduate E2E test to Conformance
Change-Id: I6814819d318edaed5c86dae4055f4b050a4d39fd
2022-03-15 13:41:06 -04:00
Kubernetes Prow Robot
2b1b849d6a
Merge pull request #108362 from sanposhiho/implement-mindomains
...
Implement MinDomains on Pod Topology Spread
2022-03-15 10:34:11 -07:00
Kubernetes Prow Robot
d7bd0d4f52
Merge pull request #108648 from ahg-g/ahg-ds
...
Update PreFilter interface to return a PreFilterResult
2022-03-14 18:50:20 -07:00
Kubernetes Prow Robot
c6c4915dd7
Merge pull request #108495 from stevekuznetsov/skuznets/better-rv-math
...
test/integration: improve TestTransform
2022-03-14 13:03:11 -07:00
Abdullah Gharaibeh
5b20b68bc9
Updated the scheduler framework's PreFilter interface to return a PreFilterResult
2022-03-14 15:36:52 -04:00
Patrick Ohly
f84f4fa291
storage capacity: use V1 API
2022-03-14 20:05:45 +01:00
Patrick Ohly
921edae2b4
storage capacity: v1 API
2022-03-14 20:05:45 +01:00
Patrick Ohly
3a7deaa141
storage capacity: GA, always enabled, remove feature check
...
The code and tests for scenarios where the feature is disabled are no longer
needed because the feature is graduating to GA.
2022-03-14 20:05:45 +01:00
sanposhiho
6141aa53f9
Implement MinDomains
2022-03-15 01:38:44 +09:00
Steve Kuznetsov
ff8fbc2d37
test/integration: use a context with a deadline for streaming
...
Without such a context, this test would hang without data for 10
minutes, then panic.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 13:56:55 -08:00
Steve Kuznetsov
a843239ec3
test/integration: use a known previous resourceVersion
...
ResourceVersion values are opaque and math should not be done on them.
The intent of this test was to watch from a resourceVersion before the
moment where the objects were created, and we can find such a version by
listing from the API server before the tests begin.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-03-10 13:56:36 -08:00
Kubernetes Prow Robot
b90bddfd9f
Merge pull request #108204 from kevindelgado/field-validation-crd-unit-tests
...
Field validation CRD benchmarks and decoder unit tests
2022-03-09 20:01:35 -08:00
Kubernetes Prow Robot
19935de5a9
Merge pull request #107410 from margocrawf/master
...
Ensure static certs in kubeconfig override exec plugin
2022-03-08 11:34:21 -08:00
carlory
fcc282f9f2
remove audit.k8s.io/v1[alpha|beta]1 versions
2022-03-08 14:37:26 +08:00
Margo Crawford
f015fd66ce
Check whether static cert is already configured in UpdateTransportConfig
...
- Also update test-cmd.sh to pass a signing ca to the kube controller
manager, so CSRs work properly in integration tests.
Signed-off-by: Margo Crawford <margaretc@vmware.com>
2022-03-07 13:54:32 -08:00
Ravi Gudimetla
72a62f47f7
Wire context for cert controllers
...
All the controllers should use context for signalling termination of communication with API server. Once kcm cancels context all the cert controllers which are started via kcm should cancel the APIServer request in flight instead of hanging around.
2022-03-07 10:19:45 -05:00
Kubernetes Prow Robot
3775ac6d19
Merge pull request #108535 from Abirdcfly/master
...
fix some typo
2022-03-05 22:46:52 -08:00
Abirdcfly
2005110090
fix some typo
...
Change-Id: I211f572555e964581214a5d726ac552676c9833a
2022-03-05 23:25:52 +08:00
Kubernetes Prow Robot
546e4fa1ef
Merge pull request #107771 from sanposhiho/fix-tiny
...
make scheduler_perf stable
2022-03-04 17:22:52 -08:00
Kubernetes Prow Robot
0a3470a68d
Merge pull request #107135 from ruquanzhao/removegenericScheduler
...
Scheduler: Remove genericScheduler and SchedulerAlgorithm.
2022-03-04 08:20:52 -08:00
Ruquan Zhao
f1a5b6ca06
Remove genericScheduler and SchedulerAlgorithm.
...
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2022-03-04 13:26:46 +08:00
Jordan Liggitt
7895fbd45d
Restore wait loop to integration test
2022-03-03 21:33:01 -05:00
Antonio Ojea
b0600c630d
integration: run tests in eachs own process
2022-03-03 08:19:14 +01:00
Kubernetes Prow Robot
88f9728339
Merge pull request #108309 from zshihang/token
...
no auto-generation of secret-based service account token
2022-03-02 06:19:15 -08:00
Antonio Ojea
2660ac8a6d
integration framework: log number of leaked goroutines
2022-03-01 15:31:13 +01:00
Abu Kashem
b0b460921b
Revert "Merge pull request #107797 from tkashem/revert-107456"
...
This reverts commit 83ca745412
, reversing
changes made to 1c216c6ec8
.
2022-02-27 13:40:28 -05:00
Kubernetes Prow Robot
d3ece70f0b
Merge pull request #108269 from kerthcet/refactor/rename-schedulercache-to-cache
...
refactor: rename SchedulerCache to Cache in Scheduler
2022-02-24 14:46:13 -08:00
sanposhiho
4c3a1000c7
fix by gofmt
2022-02-25 00:23:01 +09:00
kerthcet
eafbaad9f7
refactor: rename SchedulerCache to Cache in Scheduler
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-24 09:47:21 +08:00
Kubernetes Prow Robot
2fcdbd098c
Merge pull request #107993 from deads2k/simplify
...
prevent enabling beta by default for new api groups
2022-02-23 16:03:35 -08:00
Kubernetes Prow Robot
77eb1a03df
Merge pull request #94637 from liggitt/namespace-before-admission
...
set/validate object namespace before admission
2022-02-23 14:35:58 -08:00
Shihang Zhang
fb6c727fde
no auto-generation of secret-based service account token
2022-02-23 14:17:30 -08:00
David Eads
1afcc31b1b
add integration test to prevent new beta APIs from being enabled by default
2022-02-23 13:51:43 -05:00
sanposhiho
1080c2d717
Make scheduler_perf stable
2022-02-24 01:29:38 +09:00
Jordan Liggitt
92422a7305
set/validate object namespace before admission
2022-02-23 11:12:27 -05:00
Kubernetes Prow Robot
5211a4b214
Merge pull request #103061 from SergeyKanzhelev/removeAlphaRuntimeClass
...
Remove RuntimeClass feature gate and stop serving older versions of RuntimeClass
2022-02-22 19:08:18 -08:00
Kubernetes Prow Robot
44241bacca
Merge pull request #108239 from Abirdcfly/master
...
delete redundant characters in comment
2022-02-22 13:25:16 -08:00
Sergey Kanzhelev
06ee2969ef
do not serve node.k8s.io, version v1alpha1
2022-02-22 18:30:24 +00:00
Wojciech Tyczyński
f3d56369f7
Unify merge GetToList and List storage methods to single GetList
2022-02-21 12:52:05 +01:00
Abirdcfly
5da98dedb4
delete redundant characters in comment
...
Change-Id: Id49d6266f76d2e242880f25cfa2b591bcef1b5ff
2022-02-21 13:51:53 +08:00
Abdullah Gharaibeh
8a1c70b48c
Graduate PodAffinityNamespaceSelector to GA
2022-02-18 12:07:29 -05:00
Kubernetes Prow Robot
8a6439d2b1
Merge pull request #108129 from ahg-g/ahg-suspend
...
Graduate SuspendJob to GA
2022-02-17 19:36:23 -08:00
Kevin Delgado
a72f24d33c
start CRD integration benchmarks
2022-02-18 01:04:51 +00:00
Kubernetes Prow Robot
3e60727f75
Merge pull request #108174 from stevekuznetsov/skuznets/transformer-context
...
storage: transformers: pass a context.Context
2022-02-17 09:45:37 -08:00
Steve Kuznetsov
27312feb99
storage: transformers: pass a context.Context
...
When an envelope transformer calls out to KMS (for instance), it will be
very helpful to pass a `context.Context` to allow for cancellation. This
patch does that, while passing the previously-expected additional data
via a context value.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-02-17 08:31:31 -08:00
Kevin Delgado
df2768123d
FieldValidation tests for endpoints apiserver and benchmarks for integration tests ( #107848 )
...
* wip, working post-strict-yaml
* wip, merge-patch and json-patch tests added
* added SMP tests
* cleanup
* add benchmarks
* more detailed test failure message
* start adding field validation integration benchmarks
* use valid input for benchmarking
* fix remaining integration benchmarks
* benchmarking feedback
* fix endpoints benchmarking
* remove unused vars
2022-02-16 21:19:49 -08:00
Kubernetes Prow Robot
a37b6fc8b4
Merge pull request #108138 from liggitt/v1beta1-selector
...
Revert v1beta1 PodDisruptionBudget selector patchStrategy to pre-1.21 behavior
2022-02-15 16:25:18 -08:00
Jordan Liggitt
33fc0b9651
Add PDB selector patch integration test
2022-02-15 14:45:22 -05:00
Abdullah Gharaibeh
b2d2ec9e76
Graduate SuspendJob to GA
2022-02-15 10:46:13 -05:00
Wojciech Tyczyński
b62774f2f7
Couple remaining SelfLink references cleanup
2022-02-14 18:35:54 +01:00
Wojciech Tyczyński
41ee6a3e44
Remove selflink integration tests
2022-02-14 11:11:56 +01:00
Kubernetes Prow Robot
21c0f6f6ff
Merge pull request #107677 from pohly/scheduler-integration-benchmark
...
scheduler integration benchmark improvements
2022-02-14 01:23:28 -08:00
Patrick Ohly
e1e84c8e5f
scheduler_perf: run with -v=0 by default
...
This provides a mechanism for overriding the forced increase of the klog
verbosity to 4 when starting the apiserver and uses that for the scheduler_perf
benchmark. Other tests run as before.
A global variable was used because adding an explicit parameter to several
helper functions would have caused a lot of code churn (test ->
integration/util.StartApiserver ->
integration/framework.RunAnAPIServerUsingServer ->
integration/framework.startAPIServerOrDie).
2022-02-11 16:58:33 +01:00
Kubernetes Prow Robot
e74c42aaf2
Merge pull request #107880 from liggitt/kubectl-auth-token
...
Add command to request a bound service account token
2022-02-09 14:10:01 -08:00
Jordan Liggitt
19d71bb5d5
Validate and populate metadata fields in token request
2022-02-09 14:05:53 -05:00
Kubernetes Prow Robot
24e5d1fdb7
Merge pull request #107432 from denkensk/graduate-nonpreemptingpriority-to-ga
...
Graduate NonPreemptingPriority to GA
2022-02-08 11:05:03 -08:00
Kubernetes Prow Robot
6ef0f3f620
Merge pull request #103642 from kerthcet/refactor/unreserve_test
...
refactor unreserve test
2022-02-08 02:36:53 -08:00
Alex Wang
541907334e
graduate nonpreemptingpriority to ga
2022-02-08 18:11:23 +08:00
kerthcet
8243167013
refactor unreserve_test
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-08 11:37:56 +08:00
Patrick Ohly
c62d7407c8
scheduler_perf: dump test data when writing it failed
...
Occasionally, writing as JSON failed because a NaN float couldn't be
encoded. The extended log message helps understand where that comes from, for
example:
F0120 20:24:45.515745 511835 scheduler_perf_test.go:540] BenchmarkPerfScheduling: unable to write measured data {Version:v1 DataItems:[{Data:map[Average:35.714285714285715 Perc50:2 Perc90:36 Perc95:412 Perc99:412] Unit:pods/s Labels:map[Metric:SchedulingThroughput Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:27.863967530999993 Perc50:13.925925925925926 Perc90:30.06711409395973 Perc95:31.85682326621924 Perc99:704] Unit:ms Labels:map[Metric:scheduler_e2e_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:11915.651577744 Perc50:15168.796680497926 Perc90:19417.759336099585 Perc95:19948.87966804979 Perc99:20373.77593360996] Unit:ms Labels:map[Metric:scheduler_pod_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:1.1865832049999983 Perc50:0.7636363636363637 Perc90:2.891903719912473 Perc95:3.066958424507659 Perc99:5.333333333333334] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Filter]} {Data:map[Average:NaN Perc50:NaN Perc90:NaN Perc95:NaN Perc99:NaN] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Score]}]}: json: unsupported value: NaN
2022-02-07 08:59:19 +01:00
Patrick Ohly
8d44b819b3
scheduler_perf: avoid ambiguous test names
...
"-bench=PerfScheduling/Preemption/500Nodes" ran both the
PerfScheduling/Preemption/500Nodes and the
PerfScheduling/PreemptionPVs/500Nodes benchmark.
This can be avoided by choosing names where none is the prefix of another.
2022-02-07 08:59:19 +01:00
Patrick Ohly
259a8ad0b7
test: allow controlling etcd log level
...
When running an integration test that measures performance, like for example
test/integration/scheduler_perf, running etcd with debug level output is
undesirable because it creates additional load on the system and isn't
realistic.
The default is still "debug", but ETCD_LOGLEVEL=warn can be used to override
that.
2022-02-07 08:59:19 +01:00
ravisantoshgudimetla
65ff81757d
Wire contexts to Disruption controllers
2022-02-04 10:32:04 -05:00
ahrtr
fe95aa614c
io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os
2022-02-03 05:32:12 +08:00
Jyoti Mahapatra
a1b52fb17a
extend sa token if audience is apiserver ( #105954 )
...
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com>
2022-01-31 16:01:52 -08:00
Tim Hockin
e927ce85b6
service REST: Call Decorator(old) on update path
...
This is causing a bug when upgrading from older releases to 1.23 because
of Service's maybe-too-clever default-on-read logic.
Service depends on `Decorator()` to be called upon read, to
back-populate old saved objects which do not have `.clusterIPs[]` set.
This works on read, but the cache saves the pre-decorated type (as it is
documented)
In 1.23, this code was refactored and it seems some edge-case handling
was inadvertently removed (I have not confirmed exactly what happened).
Test by aojea
2022-01-30 11:25:17 -08:00
Kubernetes Prow Robot
83ca745412
Merge pull request #107797 from tkashem/revert-107456
...
Revert "Merge pull request #107456 from tkashem/apf-ssa"
2022-01-27 23:14:30 -08:00
Abu Kashem
8fb3333863
Revert "Merge pull request #107456 from tkashem/apf-ssa"
...
This reverts commit 6faa4f0010
, reversing
changes made to 33a2c50bce
.
2022-01-26 13:54:26 -05:00
Jeffrey Ying
ecb9b620fe
Revert "Populate OpenAPI in all integration tests"
2022-01-26 13:30:03 -05:00
Kubernetes Prow Robot
6a1de6b686
Merge pull request #107765 from Jefftree/ssa-integration-enable
...
Populate OpenAPI in all integration tests
2022-01-25 18:18:37 -08:00
Jefftree
eb8f6fe0f9
Populate OpenAPI in all integration tests
2022-01-25 14:16:31 -08:00
Kubernetes Prow Robot
1f05c78350
Merge pull request #107700 from sanposhiho/fix-error-log-namespace-not-found
...
Create namespace for Pod not to occur error log of namespace not-found
2022-01-25 13:34:05 -08:00
Kubernetes Prow Robot
804630ed24
Merge pull request #107636 from kerthcet/refactor/initRegistryAndConfig
...
refactor initRegistryAndConfig function
2022-01-25 10:20:30 -08:00
kerthcet
fdaea59465
refactor initRegistryAndConfig function
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-26 01:16:13 +08:00
sanposhiho
d8840405e2
Create namespace for Pod not to occur error log of namespace not-found
2022-01-26 00:39:12 +09:00
Kubernetes Prow Robot
321b411784
Merge pull request #107088 from joejulian/dry-run-metadata
...
strip dry-run metadata unwanted fields
2022-01-24 14:31:15 -08:00
Kubernetes Prow Robot
2a2b294c99
Merge pull request #107644 from liggitt/integration-test-user-groups
...
Fix up integration test user groups
2022-01-22 04:17:52 -08:00
Kubernetes Prow Robot
6faa4f0010
Merge pull request #107456 from tkashem/apf-ssa
...
apf: change controller to use SSA for patches
2022-01-20 13:44:29 -08:00
Abu Kashem
d9f4d6507b
apf: change controller to use SSA for patches
2022-01-19 14:56:53 -05:00
Jordan Liggitt
57e0c5969b
Fix integration test authenticators to include AllAuthenticated group
2022-01-19 13:21:05 -05:00
Kubernetes Prow Robot
e9e669aa60
Merge pull request #107276 from jlsong01/fix_flake_TestQuotaLimitService
...
Fix flake on TestQuotaLimitService
2022-01-19 09:38:05 -08:00
Kubernetes Prow Robot
657146e775
Merge pull request #107572 from MikeSpreitzer/add-flowschema-condition-test
...
Test isolation among FlowSchemaStatus Conditions
2022-01-19 06:34:06 -08:00
jlsong01
3006aa534b
fix flake on TestQuotaLimitService
2022-01-19 21:58:57 +08:00
Kubernetes Prow Robot
6989e2169f
Merge pull request #107564 from aojea/funnyips_etcd_data
...
integration test: API allow IPs with leading zeros
2022-01-18 17:18:05 -08:00
Antonio Ojea
ea130181a3
test integration: API allow IPs with leading zeros
2022-01-18 09:45:54 +01:00
Mike Spreitzer
23af47395b
Test isolation among FlowSchemaStatus Conditions
2022-01-17 15:43:37 -05:00
Kubernetes Prow Robot
a4931cc411
Merge pull request #107551 from wojtek-t/remove_unused_selflink_test_references
...
Remove unused selflink references in different testing-related files
2022-01-14 16:49:40 -08:00
Jiahui Feng
c56bbda368
fix containers order after applying
...
to be appending instead of prepending.
2022-01-14 11:15:54 -08:00
Wojciech Tyczyński
551790729f
Remove selflink references in different testing-related files
2022-01-14 12:58:05 +01:00
Kubernetes Prow Robot
dad0c48959
Merge pull request #106594 from pohly/log-benchmark
...
logs: add benchmark
2022-01-12 18:01:08 -08:00
Kubernetes Prow Robot
5bfc4286ee
Merge pull request #106943 from wojtek-t/graduate_watch_resumption_to_ga
...
Graduate EfficientWatchResumption feature to GA
2022-01-12 06:06:36 -08:00
Patrick Ohly
a5a241e0df
logs: update expected output for multi-line test case
...
The multiline support has been merged while this benchmark was written. We now
get the output that we want, with line breaks.
2022-01-11 09:57:03 +01:00
Patrick Ohly
25c646cbdd
json: never call fsync for stdout or stderr
...
We don't need to worry about data loss once the data has been written to an
output stream. Calling fsync unnecessarily has been the reason for performance
issues in the past.
2022-01-11 09:56:22 +01:00
Patrick Ohly
9a867c555c
logs: benchmark write performance
...
The recent regression https://github.com/kubernetes/kubernetes/issues/107033
shows that we need a way to automatically measure different logging
configurations (structured text, JSON with and without split streams) under
realistic conditions (time stamping, caller identification).
System calls may affect the performance and thus writing into actual files is
useful. A temp dir under /tmp (usually a tmpfs) is used, so the actual IO
bandwidth shouldn't affect the outcome. The "normal" json.Factory code is used
to construct the JSON logger when we have actual files that can be set as
os.Stderr and os.Stdout, thus making this as realistic as possible.
When discarding the output instead of writing it, the focus is more on the rest
of the pipeline and changes there can be investigated more reliably.
The benchmarks automatically gather "log entries per second" and "bytes per
second", which is useful to know when considering requirements like the ones
from https://github.com/kubernetes/kubernetes/issues/107029 .
2022-01-11 09:56:22 +01:00
Patrick Ohly
b8501fc10b
logs: work around logcheck
...
logcheck complains:
Additional arguments to ErrorS should always be Key Value pairs. Please check if there is any key or value missing.
That check is intentional, but not applicable here. The check can be worked
around by calling the functions through variables.
2022-01-11 09:56:22 +01:00
Patrick Ohly
072859c967
logs: create separate test/integration directory
...
The benchmark depends on k8s.io/api (for v1.Container). Such a dependency is
not desirable for k8s.io/component-base/logs, even if it's just for
testing. The solution is to create a separate directory where such a dependency
isn't a problem.
The alternative, a separate package with its own go.mod file under
k8s.io/component-base/logs wouldd have been more complicated to maintain (yet
another go.mod file and different whitelisted dependencies).
2022-01-11 09:56:22 +01:00
Kubernetes Prow Robot
ca4af7a981
Merge pull request #104716 from sanposhiho/feature/scheduler_perf/unused-template-params
...
test/integration/scheduler_perf: check for unused template parameters
2022-01-10 16:21:16 -08:00
Kubernetes Prow Robot
559091ba4f
Merge pull request #107339 from andrewsykim/internal-traffic-policy-external-name-validation
...
Add Service integration tests for internalTrafficPolicy when Type=ExternalName
2022-01-09 02:47:12 -08:00
Joe Julian
60c1d58d02
remove unwanted values returned from dry-run
...
Remove the uid and the resourceVersion from dry-run results per kep 576
https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/576-dry-run/README.md#generated-values
2022-01-06 15:44:05 -08:00
Joe Julian
48994c1518
add test to dry-run for unwanted generated values
...
[kep 576, dry
run](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/576-dry-run/README.md#generated-values ), states:
```
The UID and the generated name would have a different value in a dry-run and non-dry-run creation. These values will be left empty when performing a dry-run.
```
and
```
ResourceVersion will also be left empty on creation
```
This tests ensures this behavior.
2022-01-06 15:08:09 -08:00
Andrew Sy Kim
aead636249
add integration test validating that converting a Service to ExternalName results in the field being dropped on read
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Andrew Sy Kim
9c3c3d8a3a
add integration test to validate that ExternalName Services can set internalTrafficPolicy, but the field is dropped on read
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Andrew Sy Kim
7aa20122bc
add integration test to check that Service internalTrafficPolicy is no longer defaulting when Type is ExternalName
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2022-01-05 12:41:53 -05:00
Kubernetes Prow Robot
adfc35d249
Merge pull request #107200 from pacoxu/test/cronjob-conflict-flake
...
flake: remove the error handler for cronjob integration test
2022-01-05 09:23:09 -08:00
Kubernetes Prow Robot
84f1d6834f
Merge pull request #106619 from chendave/ga
...
Graduate `PreferNominatedNode` to GA
2022-01-04 15:21:19 -08:00
Paco Xu
fd099ffaf2
flake fix: remove the error handler for cronjob integration test
2021-12-23 16:50:12 +08:00
Kubernetes Prow Robot
62faf2cdc2
Merge pull request #106721 from aojea/apiserver_dual_service
...
apiserver endpoint reconciler ip families
2021-12-17 15:23:54 -08:00
Kubernetes Prow Robot
a1e8a5bf39
Merge pull request #107027 from Nordix/disable-nodeport-ga
...
Prepare AllocateLoadBalancerNodePorts for GA
2021-12-17 13:24:05 -08:00
Kubernetes Prow Robot
8ade75465a
Merge pull request #104799 from RyanAoh/cronjob_dev
...
fix the error when cleaning up finished jobs for cronjob
2021-12-17 13:23:53 -08:00
Wei Huang
2433b083a9
clear pod's .status.nominatedNodeName when necessary
2021-12-16 10:55:13 -08:00
Lars Ekman
1ef96752da
Mark ServiceLBNodePortControl as GA
2021-12-16 16:48:58 +01:00
Antonio Ojea
cd9b22aabc
apiserver endpoint reconciler ip families
...
The apiserver may be configured to generate the Service
kubernetes.default and its endpoints addresses.
This service is single-stack, hence, the endpoints and the ClusterIP
must have the same IP family.
2021-12-13 15:43:41 +01:00
Jordan Liggitt
0b90b6ec5e
Add field paths to expected unknown/duplicate errors
2021-12-13 09:38:13 -05:00
Wojciech Tyczyński
b7257a4d6a
Graduate EfficientWatchResumption feature to GA
2021-12-10 10:20:51 +01:00
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Kubernetes Prow Robot
d7f8234b6d
Merge pull request #106747 from ahg-g/ahg-test
...
Added an integration test for NodeResourcesFit scoring
2021-12-07 19:28:06 -08:00
Kubernetes Prow Robot
874dc871a5
Merge pull request #106676 from HecarimV/fix-typo-2021112506
...
fix typo in /test/integration
2021-12-07 18:27:30 -08:00
Kubernetes Prow Robot
bf5b5496a0
Merge pull request #106522 from aojea/e2e_disable_nodeport_lb
...
Add e2e tests for disable nodeport lb feature
2021-12-07 18:25:53 -08:00
Abdullah Gharaibeh
33a04dc5f5
Added an integration test for NodeResourcesFit scoring
2021-11-30 12:13:30 -05:00
HaoJie Liu
1dc1a37294
fix typo in /test/integration
2021-11-25 18:59:31 +08:00
Jordan Liggitt
88ab0d03b7
Revert "update expected ordering"
...
This reverts commit fbc8ac9c96
.
2021-11-24 11:19:27 -05:00
Dave Chen
8609358975
Graduate PreferNominatedNode
to GA
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-11-24 14:50:53 +08:00
Aohan Yang
ad4fe13528
fix the error when cleaning up jobs for cronjob
2021-11-22 17:06:22 +08:00
Jordan Liggitt
d4d34085e4
Clean up field validation test logs
2021-11-21 21:29:06 -05:00
Jordan Liggitt
8fa1c612fd
Speed up field validation tests
2021-11-21 21:29:06 -05:00
Kevin Delgado
e50e2bbc88
Server Side Field Validation
...
Implements server side field validation behind the
`ServerSideFieldValidation` feature gate. With the
feature enabled, any create/update/patch request
with the `fieldValidation` query param set to
"Strict" will error if the object in the request
body have unknown fields. A value of "Warn"
(also the default when the feautre is enabled)
will succeed the request with a warning.
When the feature is disabled (or the query param
has a value of "Ignore"), the request will succeed
as it previously had with no indications of any
unknown or duplicate fields.
2021-11-19 21:24:36 +00:00
Antonio Ojea
2ea3d320b0
integration tests service node port control
...
When a service is created with AllocateLoadBalancerNodePorts to false
it should not allocate node ports.
If the same service is updated to set AllocateLoadBalancerNodePorts
to true, it should allocate node ports.
When a service is updated from ClusterIP type to LoadBalancer type,
and AllocateLoadBalancerNodePorts is set to false, it should not
allocate node ports.
2021-11-18 09:38:30 +01:00
Hanna Lee
07a883d8e6
Remove //lint:ignore pragmas that aren't being used anymore
2021-11-17 08:56:54 +01:00
Hanna Lee
c8fde197f5
Add more //nolint:staticcheck for failures caught in PR tests
2021-11-17 08:56:02 +01:00
Kubernetes Prow Robot
f784891854
Merge pull request #105945 from Jefftree/openapi-v3-test
...
OpenAPI v3
2021-11-16 21:14:05 -08:00
Kubernetes Prow Robot
c0b5ed7556
Merge pull request #105611 from damemi/simplified-multipoint-extension
...
Scheduler simplified MultiPoint plugin config
2021-11-16 17:44:12 -08:00
Kermit Alexander
3180012c1b
Add integration tests for OpenAPI v3.
2021-11-16 17:38:54 -08:00
Kubernetes Prow Robot
e14bdbaa1c
Merge pull request #105057 from jiahuif-forks/feature/enum-types-feature-enablement
...
Add Support for OpenAPIEnum in OpenAPI v2
2021-11-16 16:35:55 -08:00
Mike Dame
420c5308bb
Add MultiPoint scheduler plugin config field
2021-11-16 14:56:33 -05:00
Joe Betz
ba6db69c39
Add integration tests for CRD validation rules feature
2021-11-15 21:49:32 -05:00
Neha Lohia
fa1b6765d5
move pkg/util/node to component-helpers/node/util ( #105347 )
...
Signed-off-by: Neha Lohia <nehapithadiya444@gmail.com>
2021-11-12 07:52:27 -08:00
Mike Dame
80c01707e0
Wire contexts to Batch controllers ( #105491 )
...
* Wire contexts to Batch controllers
* (hold) feedback + updates that overlap with Apps controllers
* fixup errors
2021-11-10 14:56:46 -08:00
Jiahui Feng
a8175212aa
integration test for OpenAPI feature enablement.
2021-11-10 11:06:03 -08:00
Kubernetes Prow Robot
9351ea291a
Merge pull request #105873 from MikeSpreitzer/more-seat-metrics
...
More seat metrics for APF
2021-11-10 02:23:26 -08:00
Jiahui Feng
9c05de2f31
prune enum when OpenAPIEnums is disabled.
2021-11-09 13:00:00 -08:00
wangyysde
d2abddd909
rename v2beta2 to v2
...
Signed-off-by: wangyysde <net_use@bzhy.com>
Generation swagger.json.
Use v2 path for hpa_cpu_field.
run update-codegen.sh
Signed-off-by: wangyysde <net_use@bzhy.com>
2021-11-09 10:34:54 +08:00
Kubernetes Prow Robot
8e2d7a3d64
Merge pull request #105983 from jiahuif-forks/dep/bump-smd
...
Upgrade sigs.k8s.io/structured-merge-diff/v4 to v4.2.0
2021-11-03 15:24:32 -07:00
Kubernetes Prow Robot
4dfd739403
Merge pull request #105997 from robscott/mirroring-selector
...
Fixing how EndpointSlice Mirroring handles Service selector transitions
2021-11-03 12:48:32 -07:00
Jiahui Feng
fbc8ac9c96
update expected ordering
...
in apply test.
2021-11-02 10:00:00 -07:00
Jordan Liggitt
01fa142ef5
PodSecurity: promote to beta
2021-11-02 09:43:24 -04:00
Kubernetes Prow Robot
2a821d787b
Merge pull request #105525 from damemi/wire-contexts-core
...
Wire contexts to Core controllers
2021-11-02 03:32:58 -07:00
Tim Allclair
6c273020d3
[PodSecurity] Avoid the LegcayRegistry for metrics serving
2021-11-01 14:23:00 -07:00
Tim Allclair
21692e1683
[PodSecurity] Add error & exemption metrics
2021-11-01 14:22:58 -07:00
Tim Allclair
e46928c0b1
[PodSecurity] Fix up metrics & add tests
...
Update pod security metrics to match the spec in the KEP.
2021-11-01 14:11:19 -07:00
Mike Spreitzer
154bf6aab3
Add metrics about watch counts seen by APF
2021-11-01 16:02:49 -04:00
Mike Dame
4960d0976a
Wire contexts to Core controllers
2021-11-01 10:29:00 -04:00
Rob Scott
794f0cb7f1
Fixing how EndpointSlice Mirroring handles Service selector transitions
2021-10-29 11:03:28 -07:00
Kubernetes Prow Robot
6edcb60d9f
Merge pull request #104915 from alculquicondor/job-ready
...
Track ready pods in Job status
2021-10-28 09:20:26 -07:00
Shuanglu
9bcfa71e31
Fix Daemonset controller role missing 'update pod' permission ( #104758 )
...
* fix_dsc_rbac_pod_update
* add test for DaemonSet Controller updates label of the pod after "DedupCurHistories"
* rebase
* update parameter of dsc.Run
2021-10-28 05:24:26 -07:00
Abdullah Gharaibeh
74e1b07a5e
Fixes TestNodeSelectorUpdate flaky test
2021-10-25 10:33:50 -04:00
Antonio Ojea
3ca2bb4443
integration test clientset share connection for custom transports
2021-10-20 06:39:39 +02:00
Aldo Culquicondor
68f2c892e5
Add integration tests for tracking ready Pods
...
Change-Id: I1f20657f4f9cd4daad73149f969bad52a33698fa
2021-10-19 15:18:37 -04:00
Aldo Culquicondor
2c1b3fdb5b
Graduate JobTrackingWithFinalizers to beta
...
Enable feature by default.
Update integration tests for other features to assume that finalizers are present.
Change-Id: Ie969344f572627dba882c0e862e5700dadaf3026
2021-10-15 10:29:40 -04:00
Kubernetes Prow Robot
57aaa70b2c
Merge pull request #105596 from pacoxu/subresource-remove
...
test fix: check correct subresource patch path
2021-10-14 10:49:48 -07:00
Kubernetes Prow Robot
dea052ceba
Merge pull request #105479 from ahg-g/ahg-mutable
...
Allow updating scheduling directives of suspended jobs that never started
2021-10-14 08:09:18 -07:00
Abdullah Gharaibeh
335817cbce
Allow updating node affinity, selector and tolerations for suspended jobs that never started
2021-10-14 10:04:47 -04:00
Kubernetes Prow Robot
f27e4714ba
Merge pull request #105377 from damemi/wire-contexts-apps
...
Wire contexts to Apps controllers
2021-10-14 06:59:19 -07:00
Mike Dame
41fcb95f2f
Wire contexts to Apps controllers
2021-10-13 16:32:13 -04:00
Kubernetes Prow Robot
3271dff7b4
Merge pull request #105535 from soltysh/apps_cleanup
...
Move test utils where they belong
2021-10-12 08:11:48 -07:00
Maciej Szulik
8322121434
Move test-related utils to test/utils
2021-10-12 14:52:19 +02:00
Dave Chen
1500a5ca80
Simplify the integration test by removing the struct of nodeConfig
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-10-12 17:46:38 +08:00
Kubernetes Prow Robot
c2cbf5ff49
Merge pull request #105509 from ravisantoshgudimetla/fix-integration
...
[scheduler] [test]: Fix PreferNominatedNode test
2021-10-11 20:01:46 -07:00
Paco Xu
abd13b131c
test fix: check correct subresource patch path
2021-10-11 10:14:19 +08:00
Kubernetes Prow Robot
835980ac67
Merge pull request #105424 from kerthcet/cleanup/remove-scheduler-policy-config
...
remove scheduler policy config
2021-10-08 10:57:23 -07:00
kerthcet
a6f695581b
remove legacy scheduler policy config, as well as associated flags policy-config-file, policy-configmap, policy-configmap-namespace and use-legacy-policy-config
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-10-08 23:57:49 +08:00
Kubernetes Prow Robot
60ab733932
Merge pull request #105546 from Huang-Wei/fix-evt-volumebinding
...
sched: adjust events to register for VolumeBinding plugin
2021-10-08 02:12:57 -07:00
Kubernetes Prow Robot
9b45983d3c
Merge pull request #104251 from ravisantoshgudimetla/scheduling-v1beta3
...
Scheduling v1beta3
2021-10-07 10:47:32 -07:00
Wei Huang
b7d90ca991
sched: adjust events to register for VolumeBinding plugin
2021-10-07 08:51:04 -07:00
ravisantoshgudimetla
283b176102
[test]: modify integration tests to use v1beta3
2021-10-07 10:58:07 -04:00
Kubernetes Prow Robot
79ee735bad
Merge pull request #105337 from Huang-Wei/pr-105303
...
sched: integration test to cover event registration
2021-10-06 19:53:56 -07:00
Wei Huang
3283e6bb72
sched: integration test to cover event registration
2021-10-06 15:17:38 -07:00
ravisantoshgudimetla
9476237923
[scheduler] [test]: Fix PreferNominatedNode test
...
Once the node gets deleted, the nodelifecycle controller
is racing to update pod status and the pod deletion logic
is failing causing tests to flake. This commit moves
the testContext creation to within the test loop and deletes nodes,
namespace within the test loop. We don't explicitly call the node
deletion within the loop but the `testutils.CleanupTest(t, testCtx)`
call ensures that the namespace, nodes gets deleted.
2021-10-06 09:07:16 -04:00
Kubernetes Prow Robot
0a29e2a73a
Merge pull request #105197 from alculquicondor/job-tracking
...
Roll-forward: Beta requirements for JobTrackingWithFinalizers
2021-10-04 18:57:49 -07:00
Kubernetes Prow Robot
70d1360ab8
Merge pull request #105103 from tkashem/extend-audit-policy
...
apiserver: refactor PolicyRuleEvaluator interface
2021-10-04 14:12:40 -07:00
Kubernetes Prow Robot
04f747d09f
Merge pull request #104782 from kerthcet/cleanup/remove-cc-v1beta1
...
remove scheduler component config v1beta1
2021-10-04 08:53:08 -07:00
Aldo Culquicondor
95c2a8024c
Parallelize pod updates in job test
...
To potentially reduce the number of job controller syncs.
Also reduce the maximum number of pods to sync in tests.
2021-10-01 09:55:53 -04:00
Patrick Ohly
21d1bcd6b8
initialize logging after flag parsing
...
It wasn't documented that InitLogs already uses the log flush frequency, so
some commands have called it before parsing (for example, kubectl in the
original code for logs.go). The flag never had an effect in such commands.
Fixing this turned into a major refactoring of how commands set up flags and
run their Cobra command:
- component-base/logs: implicitely registering flags during package init is an
anti-pattern that makes it impossible to use the package in commands which
want full control over their command line. Logging flags must be added
explicitly now, something that the new cli.Run does automatically.
- component-base/logs: AddFlags would have crashed in kubectl-convert if it
had been called because it relied on the global pflag.CommandLine. This
has been fixed and kubectl-convert now has the same --log-flush-frequency
flag as other commands.
- component-base/logs/testinit: an exception are tests where flag.CommandLine has
to be used. This new package can be imported to add flags to that
once per test program.
- Normalization of the klog command line flags was inconsistent. Some commands
unintentionally didn't normalize to the recommended format with hyphens. This
gets fixed for sample programs, but not for production programs because
it would be a breaking change.
This refactoring has the following user-visible effects:
- The validation error for `go run ./cmd/kube-apiserver --logging-format=json
--add-dir-header` now references `add-dir-header` instead of `add_dir_header`.
- `staging/src/k8s.io/cloud-provider/sample` uses flags with hyphen instead of
underscore.
- `--log-flush-frequency` is not listed anymore in the --logging-format flag's
`non-default formats don't honor these flags` usage text because it will also
work for non-default formats once it is needed.
- `cmd/kubelet`: the description of `--logging-format` uses hyphens instead of
underscores for the flags, which now matches what the command is using.
- `staging/src/k8s.io/component-base/logs/example/cmd`: added logging flags.
- `apiextensions-apiserver` no longer prints a useless stack trace for `main`
when command line parsing raises an error.
2021-09-30 13:46:49 +02:00
kerthcet
75a255d2ed
remove scheduler component config v1beta1
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-09-28 13:13:17 +08:00
Kubernetes Prow Robot
48d844ec64
Merge pull request #104483 from margocrawf/master
...
Add UID to client-go impersonation config
2021-09-27 07:33:36 -07:00
Khaled Henidak (Kal)
a53e2eaeab
move IPv6DualStack feature to stable. ( #104691 )
...
* kube-proxy
* endpoints controller
* app: kube-controller-manager
* app: cloud-controller-manager
* kubelet
* app: api-server
* node utils + registry/strategy
* api: validation (comment removal)
* api:pod strategy (util pkg)
* api: docs
* core: integration testing
* kubeadm: change feature gate to GA
* service registry and rest stack
* move feature to GA
* generated
2021-09-24 16:30:22 -07:00
Margo Crawford
d9ddfb26e1
Introduces Impersonate-Uid to client-go.
...
* Updates ImpersonationConfig in rest/config.go to include UID
attribute, and pass it through when copying the config
* Updates ImpersonationConfig in transport/config.go to include UID
attribute
* In transport/round_tripper.go, Set the "Impersonate-Uid" header in
requests based on the UID value in the config
* Update auth_test.go integration test to specify a UID through the new
rest.ImpersonationConfig field rather than manually setting the
Impersonate-Uid header
Signed-off-by: Margo Crawford <margaretc@vmware.com>
2021-09-24 14:06:30 -07:00
Kubernetes Prow Robot
86d23cf441
Merge pull request #105206 from pohly/test-integration-help
...
test/integration: skip etcd startup for -help flag
2021-09-24 10:29:23 -07:00
Abu Kashem
a748fdc677
apiserver: refactor PolicyRuleEvaluator to return a struct
2021-09-24 08:08:32 -04:00
Patrick Ohly
81b4a695b3
test/integration: skip etcd startup for -help flag
...
By parsing flags in the test's main function before starting etcd we bail out
early without ever starting etcd when the test was invoked with -help.
Otherwise etcd must be available, gets started and then hangs because
flag.Parse itself exits when called by testing.go. This bypasses the code in
EtcdMain which normally stops etcd.
2021-09-24 11:51:58 +02:00
Aldo Culquicondor
47a957d163
Revert "Revert "Limit number of Pods counted in a single Job sync""
...
This reverts commit 8bcb780808
.
2021-09-23 12:56:29 -04:00
Kubernetes Prow Robot
686379281d
Merge pull request #97665 from heqg/unused-function-NewSingleContentTypeSerializer
...
remove unused function of NewSingleContentTypeSerializer
2021-09-21 22:16:00 -07:00
Kubernetes Prow Robot
857d4c107c
Merge pull request #104808 from chendave/indent
...
Format json file with proper indentation
2021-09-21 19:14:00 -07:00
Kubernetes Prow Robot
76c0573ff4
Merge pull request #105181 from alculquicondor/revert
...
Revert #104739
2021-09-21 16:54:00 -07:00
Aldo Culquicondor
8bcb780808
Revert "Limit number of Pods counted in a single Job sync"
...
This reverts commit 7d9cb88fed
.
2021-09-21 15:16:50 -04:00
Madhav Jivrajani
fed2ec99c6
migrate k8s.io/apimachinery/util/clock -> k8s.io/utils/clock
...
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-09-21 15:54:44 +05:30
Wei Huang
d7bf9d724f
Provide a timeout function to fail quick on blocking operations
...
It works like the Linux `timeout` utility.
2021-09-17 10:23:06 -07:00
Kubernetes Prow Robot
399656369f
Merge pull request #104739 from alculquicondor/job-tracking
...
Beta requirements for JobTrackingWithFinalizers
2021-09-17 04:57:00 -07:00
Wei Huang
a689ad4cda
sched: start dynamicInformerFactory along with regular informerFactory ( #105016 )
...
* sched: start dynamicInformerFactory along with regular informerFactory
* fixup: start all informers and then wait for their syncs
2021-09-16 19:33:00 -07:00
h4ghhh
0734820279
'New' Event namespace validate failed ( #100125 )
2021-09-16 04:29:45 -07:00
Kubernetes Prow Robot
047a6b9f86
Merge pull request #104874 from wojtek-t/migrate_clock_1
...
Unify towards k8s.io/utils/clock - part 1
2021-09-13 19:09:20 -07:00
Kubernetes Prow Robot
c79f7c1add
Merge pull request #104711 from claudiubelu/update-pause-3.6
...
update pause image references to use 3.6
2021-09-13 19:09:08 -07:00
Kubernetes Prow Robot
06ec11d71b
Merge pull request #104883 from aojea/service_finalizer_delete
...
Add integration test for Services Finalizes Racing with the Repair Loop
2021-09-13 18:01:20 -07:00
Antonio Ojea
7c12daed0f
move repair loop interval to a constant
...
use Extraconfig to configure the repair interval
and add an integration test for services finalizers, and
possible races with the services repair loop.
2021-09-13 23:54:19 +02:00
Aldo Culquicondor
7d9cb88fed
Limit number of Pods counted in a single Job sync
...
This prevents big Jobs from starving smaller ones.
2021-09-10 10:32:04 -04:00
wojtekt
53ce79a18a
Migrate to k8s.io/utils/clock in pkg/kubelet
2021-09-10 12:20:09 +02:00
Abu Kashem
d99497ef6d
apf: update e2e test to use v1beta2
2021-09-09 08:28:58 -04:00
Abu Kashem
e2b8701545
apf: ebable v1beta2
2021-09-09 08:28:53 -04:00
sanposhiho
1318f74609
Fix: use Fatalf and list all unused params in one error
2021-09-09 07:34:30 +09:00
sanposhiho
6bf6e424a1
Fix: rename getParams→get
2021-09-09 07:11:36 +09:00
sanposhiho
24643c67d5
Fix: make struct un-exported
2021-09-09 07:10:37 +09:00
Dave Chen
dda8090037
Format json file with proper indentation
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-09-07 16:14:34 +08:00
Kubernetes Prow Robot
295a8c1371
Merge pull request #104467 from khenidak/fix-104329
...
fix 104329: check for headless before trying to release the ClusterIPs
2021-09-02 10:55:39 -07:00
Kubernetes Prow Robot
8d707e5aae
Merge pull request #104570 from RyanAoh/cronjob_dev
...
integration test for cronjob with controllerv2
2021-09-02 07:42:57 -07:00
sanposhiho
cc846c9d33
Feature: check for unused template parameters
2021-09-02 01:46:34 +09:00
Kubernetes Prow Robot
9b0f560a19
Merge pull request #104391 from chendave/metric_new
...
Add the metric data for different extension points
2021-08-31 19:34:59 -07:00
Aohan Yang
4e190f36e3
integration test for cronjob with controllerv2
2021-08-31 21:15:10 +08:00
Claudiu Belu
18936d4785
updates pause image references
...
The pause:3.6 image has been published.
Also updates older / incorrect references.
2021-08-29 21:50:05 -07:00
Dave Chen
63b4710f38
Don't expose struct from prometheus client library
2021-08-27 22:21:24 +08:00
Stephen Augustus
481cf6fbe7
generated: Run hack/update-gofmt.sh
...
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:49 -04:00
Dave Chen
58ab18bc1e
Add the metric data for different extension points
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2021-08-23 13:43:48 +08:00
Khaled (Kal) Henidak
89ae53d510
integration test
2021-08-20 22:03:43 +00:00
Kubernetes Prow Robot
341d312066
Merge pull request #97350 from FabianKramm/master
...
kubectl proxy: append context host path to request path
2021-08-20 11:19:31 -07:00
Antonio Ojea
0cd75e8fec
run hack/update-netparse-cve.sh
2021-08-20 10:42:09 +02:00
fabiankramm
b1a6f8cdf9
kubectl proxy: append context host path to request path
...
Signed-off-by: fabiankramm <fab.kramm@googlemail.com>
2021-08-19 17:32:19 +02:00
Abu Kashem
27f1503514
rename audit Checker interface
2021-08-12 17:42:41 -04:00
Kubernetes Prow Robot
4ab9c950d9
Merge pull request #102007 from vaibhav2107/perf-config
...
Update the typo in values of pods in performance-config.yaml
2021-08-12 13:59:50 -07:00
Kubernetes Prow Robot
48da959dbf
Merge pull request #104248 from liggitt/drop-beta
...
Drop dead beta storage and validation code
2021-08-10 11:52:40 -07:00
Jordan Liggitt
39a1293cbc
Drop beta REST APIs removed in 1.22
2021-08-09 11:10:16 -04:00
Wei Huang
dc079acc2b
sched: retry unschedule pods immediately after a waiting pod's deletion
2021-08-06 19:08:37 -07:00
Kubernetes Prow Robot
be0a1ecbd4
Merge pull request #99228 from Huang-Wei/hist-vec
...
sched: better support of HistogramVec in scheduler performance test
2021-08-05 19:44:53 -07:00
Kubernetes Prow Robot
98bd200217
Merge pull request #104102 from tnqn/dynamic-file
...
Improve dynamic cert file change detection
2021-08-05 16:36:26 -07:00
Quan Tian
3cfe3d048f
Improve dynamic cert file change detection
...
DynamicFileCAContent and DynamicCertKeyPairContent used periodical job
to check whether the file content has changed, leading to 1 minute of
delay in worst case. This patch improves it by leveraging fsnotify
watcher. The content change will be reflected immediately.
2021-08-06 01:45:24 +08:00
Kubernetes Prow Robot
02aa3edfd5
Merge pull request #100285 from 249043822/it-hsts
...
add integration test for apiserver hsts
2021-08-05 01:43:00 -07:00
Kubernetes Prow Robot
ddbdd3eca1
Merge pull request #103693 from alculquicondor/integration-parallelism
...
Add integration tests for updating Job parallelism
2021-08-04 22:11:56 -07:00
KeZhang
952aa1b2d2
add integration test for apiserver hsts
2021-08-05 10:41:52 +08:00
Wei Huang
55765f1b49
sched: support HistogramVec in scheduler performance test
2021-07-26 20:27:37 -07:00
Kevin Delgado
7bfc420351
simplify test to only test the new logic of extractUnstructured
2021-07-27 01:28:44 +00:00
Kevin Delgado
c9e97de46b
Address PR feedback around gvk parser generation ergonomics
2021-07-27 01:28:43 +00:00
Kevin Delgado
604db6eb2a
rename cache, add to integration test
2021-07-27 01:28:43 +00:00
Kevin Delgado
7b9757faa4
basic caching working
2021-07-27 01:28:42 +00:00
Kevin Delgado
9f4a4d812d
Write TestUnstructuredExtract
2021-07-27 01:28:04 +00:00
David Ashpole
e5a1f86e0a
add apiserver tracing integration test, and fix endpoint validation
2021-07-15 20:56:57 -07:00
Kubernetes Prow Robot
02355e22b3
Merge pull request #103650 from dims/get-golangci-lint-back-on-its-feet
...
Get golangci lint back on its feet
2021-07-15 02:06:48 -07:00
Aldo Culquicondor
82728b5f71
Add integration tests for updating Job parallelism
2021-07-14 14:26:15 -04:00
Monis Khan
a6ac42082b
client-go exec: fix metrics related to plugin not found
...
These were missed because our tests did not pass in the correct test
data input (the command to execute).
Signed-off-by: Monis Khan <mok@vmware.com>
2021-07-14 14:02:23 -04:00
Davanum Srinivas
07332ad398
fix ineffassign and varcheck
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:41:22 -04:00
Andrew Sy Kim
9fa641b9ad
test/integration/endpoints: check for pod existencen in TestEndpointWithTerminatingPod
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-12 14:22:34 -04:00
Kubernetes Prow Robot
e0a22acaa0
Merge pull request #103598 from tkashem/integration-test-timeout
...
integration test: provide a timeout for /health
2021-07-12 06:06:47 -07:00
Kubernetes Prow Robot
8ab66dcc4e
Merge pull request #103621 from andrewsykim/integration-test-terminating-endpoints-only
...
Ensure Endpoints does not include terminating endpoints going forward
2021-07-11 11:26:46 -07:00
Tim Allclair
32783f7568
PodSecurity: Initial webhook implementation
2021-07-09 17:04:29 -07:00
Andrew Sy Kim
2878e472ad
test/integration/endpoints: improve docs for TestEndpointWithTerminatingPod
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-09 16:45:23 -04:00
Andrew Sy Kim
0aa1b3b0bf
test/integration/endpoints: add a test to ensure Endpoints does not include terminating pods
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-09 16:19:57 -04:00
Kubernetes Prow Robot
03fa68099e
Merge pull request #98238 from alculquicondor/job-completion
...
Track Job completion through Pod finalizers and status
2021-07-09 08:42:54 -07:00
Kubernetes Prow Robot
3ccfe94563
Merge pull request #100101 from deads2k/mutated-options
...
prevent mutation of deletion options during delete collection
2021-07-09 07:36:53 -07:00