Commit Graph

95340 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9391b6d844
Merge pull request #95577 from knabben/remove-flake-pre-stop
Removing flaky tag from preStop test
2020-10-28 12:49:57 -07:00
Anago GCB
3166067036 CHANGELOG: Update directory for v1.20.0-beta.0 release 2020-10-28 18:57:29 +00:00
Kubernetes Prow Robot
23f5fcce57
Merge pull request #95870 from claudiubelu/images/pause-regex-fix
pause image: Stricter registry prefix regex
2020-10-28 11:33:57 -07:00
Dave Protasowski
5e7ed7b86d Re-add the event recorder in the release test
Prior having a mock recorder would cause panics since the lock
would be set to nil on update failures. Now the recorder will
use the cached lock
2020-10-28 14:08:36 -04:00
Dave Protasowski
8160ecfd90 Don't clear the cached resourcelock when errors occurs on updates
This allows the lock to be release normally - even with a
potentially stale lock. This flow should only occur when we're
the lease holders.
2020-10-28 14:08:36 -04:00
Dave Protasowski
23ce312b9f Add failing test showing release is not working properly 2020-10-28 14:08:36 -04:00
Tim Hockin
4f8fb1d3ca Wipe some fields on service "type" updates
Service has had a problem since forever:

- User creates a service type=LoadBalancer
- We silently allocate them a NodePort
- User changes type to ClusterIP
- We fail the operation because they did not clear NodePort

They never asked for or used the NodePort!

Dual-stack introduced some dependent fields that get auto-wiped on
updates.  This carries it further.

If you squint, you can see Service as a big, messy discriminated union,
with type as the discriminator. Ignoring fields for non-selected
union-modes seems right.

This introduces the potential for an apply loop. Specifically, we will
accept YAML that we did not previously accept. Apply could see the
field in local YAML and not in the server and repeatedly try to patch it
in. But since that YAML is currently an error, it seems like a very low
risk. Almost nobody actually specifies their own NodePort values.

To mitigate this somewhat, we only auto-wipe on updates. The same YAML
would fail to create. This is a little inconsistent. We could
auto-wipe on create, too, at the risk of more potential impact.

To do this properly, we need to know the old and new values, which means
we can not do it in defaulting or conversion. So we do it in strategy.

This change also adds unit tests and updates e2e tests to rely on and
verify this behavior.
2020-10-28 10:41:26 -07:00
Tim Hockin
c5f3e560e4 Make some methods into non-methods 2020-10-28 10:41:26 -07:00
Barni S
73916e5a9b If image has stackdriver agent installed, use it.
Check if stackdriver agent is preinstalled in the image. If so configure and use it.
Else check for fluentbit agent
2020-10-28 13:34:44 -04: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
David Eads
5edd3763ce generated 2020-10-28 10:34:15 -04:00
Kubernetes Prow Robot
53d63fb748
Merge pull request #95943 from aojea/upgradejob
fix unbound variable on upgrade
2020-10-28 06:39:56 -07:00
wojtekt
f69cc2cd96 Update function setting master node size for GCE 2020-10-28 13:04:26 +01:00
Kubernetes Prow Robot
1a645c2135
Merge pull request #95743 from benhxy/apiserver-health
Use host IP instead of 127.0.0.1 for kube-apiserver healthcheck.
2020-10-28 04:03:56 -07:00
Antonio Ojea
6526714e9a dualstack endpoints integration tests
add integration tests to verify the behaviour of the endpoints
and endpointslices controller with dual stack services.

Since services can be single or dual stack, endpoints should be
generated for each IP family in the endpoint slice controller.

The legacy endpoint controller only will generate endpoints
in the first IP family configured in the service.

integration fix
2020-10-28 12:02:56 +01:00
Patrick Ohly
24f5764787 pv controller test: more test cases
The main goal was to cover retrieval of a PVC from the apiserver when
it isn't known yet. This is achieved by adding PVCs and (for the sake
of completeness) PVs to the reactor, but not the controller, when a
special annotation is set. The approach with a special annotation was
chosen because it doesn't affect other tests.

The other test cases were added while checking the existing tests
because (at least at first glance) the situations seemed to be not
covered.
2020-10-28 10:52:11 +01:00
Patrick Ohly
22f81e9e0b pv controller test: use sub tests
This makes it possible to run individual tests.
2020-10-28 10:39:59 +01:00
Patrick Ohly
06f934ea1f pv controller test: enable klog output
This makes it possible to run tests with -v=5 and thus actually get
some output.
2020-10-28 10:39:10 +01:00
Yixiang2019
62710bc034 cleanup: fix some error log capitalization
Signed-off-by: Yixiang2019 <wang.yixiang@zte.com.cn>
2020-10-28 16:44:54 +08:00
Kubernetes Prow Robot
63eacc22c1
Merge pull request #95912 from khs1994/patch-1
fixed addons fluentd-elasticsearch statefulset format error
2020-10-28 01:05:55 -07:00
Antonio Ojea
7c3bd972e9 fix unbound variable on upgrade 2020-10-28 09:05:29 +01:00
Kubernetes Prow Robot
a9e9cabbea
Merge pull request #94676 from JornShen/fix_Test_Run_Positive_VolumeMountControllerAttachEnabledRace_data_trace
Fix flaky unit test Test_Run_Positive_VolumeMountControllerAttachEnabledRace data race
2020-10-27 23:31:56 -07:00
Kubernetes Prow Robot
34ae23110a
Merge pull request #95337 from cmluciano/cml/kproxylabeltest
proxy: label kube_proxy test with more unique label
2020-10-27 20:44:10 -07:00
Kubernetes Prow Robot
90b3168987
Merge pull request #95040 from MHBauer/unflake-perf-tests
move node performance tests to separate job
2020-10-27 20:43:56 -07:00
Kubernetes Prow Robot
8456a514f1
Merge pull request #95736 from Jefftree/reuse-parser
Reuse SSA type converter for resources in the same API Group
2020-10-27 17:28:10 -07:00
Kubernetes Prow Robot
c5ecae737d
Merge pull request #95117 from andrewsykim/fake-dynamic-list
fake dynamic client: document that List does not preserve TypeMeta in UnstructuredList
2020-10-27 17:27:55 -07:00
Kubernetes Prow Robot
451e4030c1
Merge pull request #95924 from khenidak/tombstone-ipfamily
tombstone-ing IPFamily field(15)
2020-10-27 16:36:19 -07:00
Kubernetes Prow Robot
e5c4e74994
Merge pull request #95884 from ii/promote-e2e-verify-PriorityClass-endpoints
Promote: verify PriorityClass endpoints e2e test to Conformance +5 Endpoints
2020-10-27 16:36:09 -07:00
Kubernetes Prow Robot
7af88f3d98
Merge pull request #95780 from jingxu97/oct/resizetest
Enable Volume Expansion tests for Windows
2020-10-27 16:35:56 -07:00
Kubernetes Prow Robot
f00ec1b449
Merge pull request #95679 from EdDev/test-e2e-remove-w8-4-pod-running-after-createsync
test, e2e: Remove duplication when using PodClient.CreateSync
2020-10-27 15:32:11 -07:00
Kubernetes Prow Robot
2c58deffa8
Merge pull request #95635 from RaunakShah/pvc_describe
Alter wording to describe pods using a pvc
2020-10-27 15:31:57 -07:00
Kubernetes Prow Robot
2754cc23e2
Merge pull request #95801 from jingxu97/oct/owner
Add jingxu97 to volume/util owners
2020-10-27 14:26:11 -07:00
Kubernetes Prow Robot
8422116039
Merge pull request #95630 from masap/unit_test1
test: Add service cluster IP range unit test
2020-10-27 14:25:57 -07:00
David Eads
4af2f7d37f add godoc for events to events.k8s.io 2020-10-27 15:36:37 -04:00
W. Trevor King
f95ec84322 Event: Document TTL and best-effort-ness
Generally try to waive away folks who see a particular event stream
and feel tempted to extrapolate and build tooling that expects the
same underlying resource transition chain to continue to produce a
similar event stream as the underlying components evolve and are
updated.  New controllers should not be constrained to be
backwards-compatible with previous versions with regard to Event
emission.  This is distinct from the Event type itself, which has the
usual Kubernetes-API compatibility commitments for versioned types.

The EventTTL default has been 1h since 7e258b85bd (Reduce TTL for
events in etcd from 48hrs to 1hr, 2015-03-11, #5315), and remains so
today:

  $ git --no-pager log -1 --format='%h %s' origin/master
  8e5c02255c Merge pull request #90942 from ii/ii-create-pod%2Bpodstatus-resource-lifecycle-test
  $ git --no-pager grep EventTTL: 8e5c02255c cmd/kube-apiserver/app/options/options.go
  8e5c02255cc:cmd/kube-apiserver/app/options/options.go:		EventTTL:               1 * time.Hour,

In this space [1,2]:

  To avoid filling up master's disk, a retention policy is enforced:
  events are removed one hour after the last occurrence.  To provide
  longer history and aggregation capabilities, a third party solution
  should be installed to capture events.
  ...
  Note: It is not guaranteed that all events happening in a cluster
  will be exported to Stackdriver.  One possible scenario when events
  will not be exported is when event exporter is not running
  (e.g. during restart or upgrade).  In most cases it's fine to use
  events for purposes like setting up metrics and alerts, but you
  should be aware of the potential inaccuracy.
  ...
  To prevent disturbing your workloads, event exporter does not have
  resources set and is in the best effort QOS class, which means that
  it will be the first to be killed in the case of resource
  starvation.

Although that's talking more about export from etcd -> external
storage, and not about cluster components submitting events to etcd.

[1]: https://kubernetes.io/docs/tasks/debug-application-cluster/events-stackdriver/
[2]: https://github.com/kubernetes/website/pull/4155/files#diff-d8eb69c5436aa38b396d4f3ed75e4792R10
2020-10-27 15:36:37 -04:00
Kubernetes Prow Robot
56069e4f9d
Merge pull request #95874 from tkashem/webhook-handle-error
Webhook: handle error when calling wait.ExponentialBackoff
2020-10-27 11:41:34 -07:00
Kubernetes Prow Robot
93fcb22e64
Merge pull request #95687 from tangwz/make_profile_an_interface
scheduler: make Profile an interface.
2020-10-27 11:41:26 -07:00
Khaled (Kal) Henidak
ae2210324c tombstone-ing IPFamily field(15) 2020-10-27 17:55:03 +00:00
Andrew Sy Kim
deb1bb8bff fake dynamic client: document that List does not preserve TypeMeta in UnstructuredList
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-10-27 13:42:16 -04:00
Kubernetes Prow Robot
3523555aab
Merge pull request #95771 from vinayakankugoyal/fluentbit
Grant group KUBE_POD_LOG_READERS_GROUP access to read pod logs on gke…
2020-10-27 10:36:48 -07:00
Kubernetes Prow Robot
94cedd9f14
Merge pull request #95720 from draveness/feature/topology-manager-format
style: update comments in topology manager
2020-10-27 10:36:38 -07:00
Kubernetes Prow Robot
1cb1005437
Merge pull request #95662 from SergeyKanzhelev/nilInterfaceInShouldRecordEvent
The function shouldRecordEvent will panic when the value of input obj…
2020-10-27 10:36:28 -07:00
Kubernetes Prow Robot
554319cce8
Merge pull request #95410 from benhxy/staticcheck
Fix static check for pkg/controller/podautoscaler
2020-10-27 10:36:14 -07:00
Kubernetes Prow Robot
82b38ce9db
Merge pull request #94953 from mattjmcnaughton/mattjmcnaughton/remove-mattjmcnaughton-as-sig-node-reviewer
Remove mattjmcnaughton as a sig-node reviewer
2020-10-27 10:36:01 -07:00
Mike Dame
d9f334683e Change function signature for MatchNodeSelectorTerms
As part of externalizing this function to the k8s.io/component-helpers repo,
this commit simplifies the function signature and makes its 2 helpers private
(nodeSelectorRequirementsAsSelector and nodeSelectorRequirementsAsFieldSelector).
2020-10-27 12:52:06 -04:00
Ben Hu
8416c5cc51 Use host IP instead of 127.0.0.1 for kube-apiserver healthcheck. 2020-10-27 16:25:27 +00:00
Abu Kashem
f8e35de156
Webhook: handle error when calling wait.ExponentialBackoff
- Inside WithExponentialBackoff function, handle error returned
by wait.ExponentialBackoff.
- Ensure that the wait time is bound to the given context.
2020-10-27 12:04:28 -04:00
Kubernetes Prow Robot
6352f01e66
Merge pull request #95918 from wojtek-t/fix_cacher_test_again
Fix cacher test after bumping fakeBudget timeout to 2 seconds
2020-10-27 08:17:59 -07:00
wojtekt
f62e61c28f Fix cacher test after bumping fakeBudget timeout to 2 seconds 2020-10-27 15:25:31 +01:00