Commit Graph

9209 Commits

Author SHA1 Message Date
Jordan Liggitt
57724766bc Remove deprecated GA feature gates 2020-01-23 13:44:21 -05:00
Md Tahsin Rahman
a85815823e Do not serialize internal type, fix roundtrip 2020-01-23 23:45:35 +06:00
CJ Cullen
b86df2bec4 update gopkg.in/yaml.v2 to v2.2.8 2020-01-23 09:10:54 -08:00
Sakura
9897f33f7d fix static check errors in vendor/k8s.io/apimachinery/pkg/api/resource
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2020-01-23 21:07:14 +08:00
Casey Callendrello
ca1eeb99b5 informers: don't treat relist same as sync
Background:

Before this change, DeltaFIFO emits the Sync DeltaType on Resync() and
Replace(). Seperately, the SharedInformer will only pass that event
on to handlers that have a ResyncInterval and are due for Resync. This
can cause updates to be lost if an object changes as part of the Replace(),
as it may be incorrectly discarded if the handler does not want a Resync.

What this change does:

Creates a new DeltaType, Replaced, which is emitted by DeltaFIFO on
Replace(). For backwards compatability concerns, the old behavior of
always emitting Sync is preserved unless explicity overridden.

As a result, if an object changes (or is added) on Replace(), now all
SharedInformer handlers will get a correct Add() or Update()
notification.

One additional side-effect is that handlers which do not ever want
Resyncs will now see them for all objects that have not changed during
the Replace.
2020-01-23 11:25:15 +01:00
Kubernetes Prow Robot
03cb6afc1a Merge pull request #87442 from jennybuckley/smd-3
Update structured-merge-diff dependency to v3
2020-01-22 20:37:26 -08:00
Kubernetes Prow Robot
bb425a86ee Merge pull request #87338 from deads2k/catchpanics
add crash protection to wait functions that were missing it
2020-01-22 20:37:19 -08:00
Kubernetes Prow Robot
6509574885 Merge pull request #87241 from RainbowMango/pr_support_fake_registry
Support test deprecated metrics
2020-01-22 20:37:03 -08:00
Kubernetes Prow Robot
0724871162 Merge pull request #86816 from deads2k/auto-reload-csr
add dynamic reloading for CSR signing controllers
2020-01-22 18:46:49 -08:00
David Eads
90b49e80d6 add warning on ObjectReference 2020-01-22 19:28:34 -05:00
Kubernetes Prow Robot
d4fa3d9b7d Merge pull request #87265 from oomichi/enable-dependency-check-on-e2e-framework
Enable verify-import-boss check for e2e framework
2020-01-22 14:48:40 -08:00
Mike Spreitzer
d2ad469abb remove unused layer of loop structure in processorListener::run
Also updated the comment inside processorListener::run, to restore
accuracy about how long the delay is.
2020-01-22 16:48:52 -05:00
David Eads
5c2d2c5ef1 rename dynamic cert loading to be more accurate 2020-01-22 15:00:46 -05:00
Maciej Szulik
82f97775b7 Remove kubectl run generators 2020-01-22 16:44:00 +01:00
Kubernetes Prow Robot
f10de54bc0 Merge pull request #83598 from jktomer/healthz-metrics
healthz: instrument root healthz requests for metrics
2020-01-22 07:22:44 -08:00
Kubernetes Prow Robot
dcd0755f84 Merge pull request #85846 from akhinos/fix-describe-partition
Fix: describe of statefulset prints pointer not value
2020-01-22 04:46:34 -08:00
Kenichi Omichi
30de5bdc46 Enable verify-import-boss check for e2e framework
Due to lack of the line "test/e2e/framework/" in import-boss/main.go
verify-import-boss didn't work for e2e framework.
This makes the check enabled by adding the line.
In addition, this adds some e2e sub framework packages and some
k8s.io/utils packages which were implemented after creating
.import-restrictions to pass the check.
2020-01-22 01:51:54 +00:00
Dave Protasowski
c8dbde8666 bump github.com/google/gofuzz
This includes the ability for the fuzzer to skip certain struct fields
2020-01-21 20:41:02 -05:00
Mike Spreitzer
a65f525aed Tweak new names 2020-01-21 20:35:45 -05:00
jennybuckley
b33fbc84d9 Update Structured Merge Diff to V3 2020-01-21 15:23:13 -08:00
Antoine Pelisse
f2b21f08d9 kubectl-diff: Return non-1 errors on kubectl failures
Currently, diff AND kubectl can return 1 errors either when diff finds
differences, or when kubectl fails something. It also prints an ugly
error when diff finds a differences, since 1 is treated as an error.

Two things this PR does:

1. If diff returns 1, then do not treat it as an error, and exit with
exit code 1. It no longer prints the ugly error.

2. Kubectl errors are +1'd so that they never return 1 which shouldn't
be considered an error.

We need to update the documentation accordingly, to mention that
`KUBECTL_EXTERNAL_DIFF` programs must also follow the convention of
using one as their exit code for changes detected.
2020-01-21 14:32:18 -08:00
Kubernetes Prow Robot
c01451585e Merge pull request #86408 from julianvmodesto/kubectl-ss-dry-run-helper
Support server-side dry-run in cli-runtime REST Helper
2020-01-21 09:21:37 -08:00
Kubernetes Prow Robot
b869053987 Merge pull request #87253 from SaranBalaji90/update-aws-sdk
Update aws-sdk-go dependency to v1.28.2
2020-01-20 09:05:36 -08:00
Casey Callendrello
5aacacbdf0 client-go/cache/testing: add ability to simulate watch disruption
This adds ResetWatch() to the FakeControllerSource, which lets the
controller simulate a re-list-and-watch.
2020-01-20 17:46:15 +01:00
Kubernetes Prow Robot
33aa665c34 Merge pull request #87326 from wawa0210/bump-golang-mock
Bump golang/mock version to v1.3.1
2020-01-20 07:25:51 -08:00
Philipp Stehle
772dbbc7d7 Fix describe of statefulset prints pointer not value 2020-01-20 12:20:24 +01:00
Mike Spreitzer
1c092bf635 Simplified logic around context cancel, removing bugs
Previously, a `decisionCancel` could overwrite a `decisionReject` or
`decisionExecute`, causing confusion.  Now a request gets exactly one
decision and there is no confusion.

Also added write-once to the promise package and refactored.
2020-01-20 01:58:50 -05:00
Mike Spreitzer
1e170637c3 Refactored QueueSet configuration into two phases
So that errors can be detected before resolving concurrency shares
into concurrency counts.
2020-01-20 01:58:50 -05:00
Kubernetes Prow Robot
f4b6b751cd Merge pull request #87081 from dims/updating-protobuf-and-grpc
Updating protobuf (v1.3.1) and grpc (v1.26.0)
2020-01-18 13:01:36 -08:00
Kubernetes Prow Robot
32e72a54fc Merge pull request #87306 from feiskyer/storage-clients
Add Azure storage clients with backoff retry
2020-01-18 07:59:36 -08:00
Kubernetes Prow Robot
37d9c22abe Merge pull request #86377 from wojtek-t/immutable_secrets_api
API for immutable Secrets and ConfigMaps
2020-01-18 05:25:35 -08:00
Kubernetes Prow Robot
c1b696d672 Merge pull request #87313 from MikeSpreitzer/apf-validation
Update validation for API Priority and Fairness
2020-01-18 01:49:51 -08:00
张潇
8cbc5dc03f Bump golang/mock version to v1.3.1 2020-01-18 12:24:43 +08:00
Pengfei Ni
b0a6e597fe Use new storage clients in Azure cloud provider 2020-01-18 02:38:34 +00:00
Antoine Pelisse
c1a4cd9c75 Improve error message when diff binary is not in PATH 2020-01-17 16:17:41 -08:00
David Eads
dd65e2151b add crash protection to wait functions that were missing it 2020-01-17 16:17:17 -05:00
Julian V. Modesto
6bea0e469b Support DryRun in cli-runtime REST Helper.
- Move TestSupportsDryRun to cli-runtime
- Move TestDryRunVerifier to cli-runtime
- Add OpenAPI schema for testdata to cli-runtime
- Use Helper.DryRun and DryRunVerifier for Apply
- Add WithOptions methods to Helper
2020-01-17 12:32:55 -05:00
Mike Spreitzer
f1c26bf436 removed excess blank line 2020-01-17 12:30:07 -05:00
Davanum Srinivas
b3853138a4 update generated files 2020-01-17 11:23:53 -05:00
Davanum Srinivas
2f78a9480f Updating dependency google.golang.org/genproto to version v0.0.0-20190819201941-24fa4b261c55 2020-01-17 11:23:53 -05:00
Davanum Srinivas
cac0451836 Updating dependency github.com/prometheus/client_model to version v0.0.0-20190812154241-14fe0d1b01d4 2020-01-17 11:23:53 -05:00
Davanum Srinivas
3b29bcf52d Updating dependency google.golang.org/grpc to version v1.26.0 2020-01-17 11:23:52 -05:00
Davanum Srinivas
9c78f05d06 Updating dependency github.com/gogo/protobuf to version v1.3.1 2020-01-17 11:23:52 -05:00
Mike Spreitzer
ec5321c6a9 Update validation for API Priority and Fairness
This PR fixes oversights and adds validation that rejects writes
of wrong Spec values for the four mandatory objects.
2020-01-17 02:43:52 -05:00
Sri Saran Balaji Vellore Rajakumar
a94346bef9 Update aws-sdk-go dependency to v1.28.2 2020-01-16 19:22:14 -08:00
Kubernetes Prow Robot
6413f1ee2b Merge pull request #87246 from nilo19/qi-fix-dns-label
Fix the bug PIP's DNS is deleted if no DNS label service annotation isn't set.
2020-01-16 14:38:32 -08:00
Pengfei Ni
c6429e3726 Add snapshot clients based on armclient 2020-01-16 15:38:38 +00:00
Pengfei Ni
4ea5509b31 Add vmsize clients based on armclient 2020-01-16 15:38:38 +00:00
Pengfei Ni
c86d1ec0e9 Add storageaccount clients based on armclient 2020-01-16 15:38:35 +00:00
Pengfei Ni
43554c80a6 Add disk clients based on armclient 2020-01-16 14:11:28 +00:00