Commit Graph

2616 Commits

Author SHA1 Message Date
Kubernetes Publisher
57681663d9 Merge pull request #91634 from jpbetz/latest-utils
Bump k8s.io/utils to 6e3d28 to pick up nested trace

Kubernetes-commit: a7e4973cb9d163fa9df2ecc0955d156d507a9a71
2020-06-23 05:21:57 +00:00
Joe Betz
b4312fa6cf Bump k8s.io/utils to 6e3d28 to pick up nested trace
Kubernetes-commit: 52838be7b22c53050d4e397c221f0b3c3842122c
2020-06-19 10:17:13 -07:00
Kubernetes Publisher
c8ca982e60 Merge pull request #92251 from nikhita/client-go-pod-proxy
client-go: add ProxyGet expansion method for pods

Kubernetes-commit: 3d0848c9e3c63e6e132c525b1c71e1eda5c0e823
2020-06-19 21:22:52 +00:00
Kubernetes Publisher
58357f96bf Merge pull request #92219 from voor/update-golang-text
[security] Vulnerability in golang.org/x/text/encoding/unicode v0.3.2

Kubernetes-commit: 08ab50d1a870d12044081f58c6f9fa18b989597f
2020-06-19 21:22:50 +00:00
Kubernetes Publisher
7a96a1f079 Merge pull request #91798 from chelseychen/event-fallback
Move fallback of Event API into new event lib

Kubernetes-commit: 7e69068dcb7608169747d1ff5c85bae8c3a2e66e
2020-06-19 05:21:40 +00:00
Kubernetes Publisher
18c1ef0354 Merge pull request #92139 from ash2k/ash2k/fix-clientConfig-data-race
Fix client config data race

Kubernetes-commit: 37ec23c4370028ed5205c99b97226c914696d4c1
2020-06-18 13:24:24 +00:00
Nikhita Raghunath
8c1e3c3fbd client-go: add ProxyGet expansion method for pods
Currently, the proxy subresource is not supported for pods in client-go.
Today, invoking this requires using the REST client directly.

To make using the proxy resource easier, this commit adds a ProxyGet
method for pods in pod_expansion.go similar to the ProxyGet method
for services in service_expansion.go.

Ref: d8febccacf/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/service_expansion.go

Kubernetes-commit: 72ab11193a419f0e0e66e86c4e6be9991c3682f2
2020-06-18 16:28:23 +05:30
Kubernetes Publisher
3ab27431ef Merge pull request #90523 from sttts/sttts-security-contacts
Add myself to staging repo SECURITY_CONTACTS

Kubernetes-commit: d8febccacfc9d51a017be9531247689e0e36df04
2020-06-18 09:21:51 +00:00
Robert Van Voorhees
cc928941e5 [security] Vulnerability in golang.org/x/text/encoding/unicode v0.3.2
Hello gophers,

Version v0.3.3 of golang.org/x/text fixes a vulnerability in the golang.org/x/text/encoding/unicode package which could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory.

An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String.

transform.String has also been hardened not to enter an infinite loop if a Transformer keeps returning ErrShortSrc even if atEOF is true.

This issue was first filed as Issue 39491 by GitHub user abacabadabacaba and reported to the security team by Anton Gyllenberg. It is tracked as CVE-2020-14040.

Cheers,

Katie for the Go team

Kubernetes-commit: 3cef97e8b5f67b4a350ee7a51e68604732e46f58
2020-06-17 07:57:05 -04:00
Kubernetes Publisher
15d3142967 Merge pull request #89778 from cmluciano/cml/ingressv1
ingress: Add Ingress to v1 API and update backend to defaultBackend

Kubernetes-commit: 53f3699cf936b14e04b8533e51e8e7ffe0eeb7ef
2020-06-17 09:06:52 +00:00
Kubernetes Publisher
3c831c893e Merge pull request #92069 from tapih/update-json-patch
Update github.com/evanphx/json-patch to e83c0a1c26c884f8ec4fb743f6db9…

Kubernetes-commit: 81f84d3a1764e883441ff155a3c0fdc724a1b304
2020-06-17 05:06:43 +00:00
Chelsey Chen
24854a9a68 Auto generated changes
Kubernetes-commit: c90330d8f4ca9fd980df24044960a4d8bb28a780
2020-06-16 18:25:18 -04:00
Kubernetes Publisher
31e286ee19 Merge pull request #73032 from liggitt/kubectl-warning
surface server-side warnings in client-go / kubectl

Kubernetes-commit: 7151131d79674d073e716063a03f8cbd67671e33
2020-06-16 09:19:03 +00:00
Mikhail Mazurskiy
afa880fea1 Fix data race on config.clientConfig
config.clientConfig can have an unlocked read
and a locked write

Kubernetes-commit: 609da52afaf6395d738f529c78daadc05e619f68
2020-06-15 21:53:11 +10:00
Hiroshi Muraoka
6674917427 Update github.com/evanphx/json-patch to e83c0a1c26c884f8ec4fb743f6db92a941f605f1
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com>

Kubernetes-commit: 5b06aaa7ab7d8ecf3b0088de13b3df381409e88f
2020-06-12 11:11:08 +00:00
Mike Spreitzer
826338c319 Remove contemplation of invariant violations from delta_fifo.go
Some comments and code incorrectly contemplated violating the
invariant that a keys is in `f.items` if and only if it is in
`f.queue`.

Also fixed up some comment wording.

Kubernetes-commit: 5efd727d112206ef9a8ede93c5878b0d40707ae9
2020-06-09 18:57:28 -04:00
Kobayashi Daisuke
b5d4191149 Replace StartLogging(klog.Infof) with StartStructuredLogging(0)
Kubernetes-commit: 4ae11dac2e2cc8594c528a679db5861c0926b514
2020-06-09 12:01:45 +09:00
Kobayashi Daisuke
55768fa31f Add an function for Structured Logging function into EventBroatcaster
Kubernetes-commit: dcaa8d7126cb711b9b93ef10fa84364dac8a22d3
2020-06-09 10:10:41 +09:00
Chelsey Chen
a8a31f0d9b Move fallback of Event API into new event lib
Kubernetes-commit: e0e12f25c9ccd33f5578fddef79d93eb7b62ea0c
2020-06-04 21:36:04 -04:00
Patrick Ohly
1d719d3045 CSIStorageCapacity: 'make update'
Kubernetes-commit: 9a66e8e1b5820027c1747cff052d335e29597fc2
2020-06-04 20:50:43 +02:00
Anders Eknert
2321e60ec1 Presence of bearer token should cancel exec action
If a bearer token is present in a request, the exec credential plugin should accept that as the chosen method of authentication. Judging by an [earlier comment in exec.go](c18bc7e9f7/staging/src/k8s.io/client-go/plugin/pkg/client/auth/exec/exec.go (L217)), this was already intended. This would however not work since UpdateTransportConfig would set the GetCert callback which would then get called by the transport, triggering the exec plugin action even with a token present in the request. See linked issue for further details.

See #87369 for further details.

Signed-off-by: Anders Eknert <anders.eknert@bisnode.com>

Kubernetes-commit: b423216a3b781009fb4ec4d5974eeb3f882f9d2d
2020-06-04 00:12:05 +02:00
Kobayashi Daisuke
10e6fa29f1 Migrate log to klog.InfoS for staging/src/k8s.io/client-go
Kubernetes-commit: ed1b83c6de5ccc62494e7f0e580cd743ad9a5934
2020-06-03 11:13:54 +09:00
Andrew Keesler
11ef39e643 Fix typo: authentiction -> authentication
Signed-off-by: Andrew Keesler <akeesler@vmware.com>

Kubernetes-commit: eefed60e2300bdb9f5827e2da63d6949bb080d4c
2020-05-21 20:13:20 -04:00
Andrew Keesler
6b620f1777 exec credential provider: add install hint
This commit adds the ability for users to specify an install hint for
their exec credential provider binary.

In the exec credential provider workflow, if the exec credential binary
does not exist, then the user will see some sort of ugly

  exec: exec: "does-not-exist": executable file not found in $PATH

error message.  If some user downloads a kubeconfig from somewhere, they
may not know that kubectl is trying to use a binary to obtain
credentials to auth to the API, and scratch their head when they see
this error message.  Furthermore, even if a user does know that their
kubeconfig is trying to run a binary, they might not know how to obtain
the binary.  This install hint seeks to ease the above 2 user pains.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>

Kubernetes-commit: 94e2065df2eef3b198942efb156ef6e27abcc6f9
2020-05-20 15:20:20 -04:00
Monis Khan
eb15c10113 Generated bazel
Signed-off-by: Monis Khan <mok@vmware.com>

Kubernetes-commit: 0284139660dcabfe8816b3136f12d79a5a236db1
2020-05-06 02:17:37 -04:00
Monis Khan
8959cc2497 Generated conversions
Signed-off-by: Monis Khan <mok@vmware.com>

Kubernetes-commit: 99566970ceceb7e60f48cf2ff3015586fe50cc0e
2020-05-06 01:28:11 -04:00
Monis Khan
9e147f192f exec credential provider: wire in cluster info
Signed-off-by: Monis Khan <mok@vmware.com>

Kubernetes-commit: f97422c8bd57692f5a1a3aa6dc6abc31051ebc82
2020-05-06 01:01:09 -04:00
Dr. Stefan Schimanski
c062ecda03 Add myself to staging repo SECURITY_CONTACTS
Kubernetes-commit: d42ccdc690f617cd55da0e3f699194e1dc247895
2020-04-27 16:39:25 +02:00
Zachary Seguin
7efa263687 Add lease release tests in leader election
Kubernetes-commit: a4979cd2a69192138b5998daca07d9b7ca6c8801
2020-04-22 18:52:44 -04:00
Jordan Liggitt
4622a81a82 Generated files
Kubernetes-commit: df6608dc998f4b403f10433809dfbc78e20c890d
2020-04-14 22:26:35 -04:00
Christopher M. Luciano
0197b870e3 ingress: Add Ingress to v1 API and update backend to defaultBackend
ingress: use new serviceBackend split

ingress: remove all v1beta1 restrictions on creation

This change removes creation and update restrictions enforced by
k8s 1.18 for not allowing resource backends.

Paths are no longer
required to be valid regex and a PathType is now user-specified
and no longer defaulted.

Also remove all TODOs in staging/net/v1 types

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>

Kubernetes-commit: 2b091f60ca09d3d03923a26b7cd02fb3dc6c47e2
2020-04-01 14:51:04 -04:00
Zachary Seguin
710705cfe6 Generate complete leader election record to resolve leader election issues with LeaseLocks
Kubernetes-commit: c902b8a20578a1d299e3563613a66ed32f70efad
2019-08-03 17:40:03 -04:00
Jordan Liggitt
75f9ee62c1 client-go: extract warning headers from API responses
Kubernetes-commit: b1098bd0d53658bfb945e485683d543ab7dc73ba
2019-01-17 11:35:07 -05:00
Kubernetes Publisher
63eae69e3c Merge pull request #91754 from liggitt/csr-v1-client-go-manager
CSR v1 - switch client-go certificate manager utility to v1 by default

Kubernetes-commit: 507cc204044149843ebda8ca64ea2403866a545c
2020-06-16 09:19:01 +00:00
Jordan Liggitt
3ab7d09ea9 Switch cert manager to v1 CSR API by default, falling back to v1beta1
Kubernetes-commit: a298c14f18d4973a9ceaf21f1e0dc4e39b4c5bfb
2020-06-03 22:40:02 -04:00
Kubernetes Publisher
0adb702ae4 Merge pull request #91792 from serathius/klog2
Upgrade klog to v2.1.0

Kubernetes-commit: a36b9a992223a71d822f3a0680f6b5202d2687d8
2020-06-16 09:18:59 +00:00
Kubernetes Publisher
e2038ac220 Merge pull request #91485 from knight42/fix/fake-pod-logs
fix: make fake.Clientset support streaming logs

Kubernetes-commit: a054010d032b301e495d1a421f53b9a37a0a0109
2020-06-16 09:18:56 +00:00
Kubernetes Publisher
9f48a1ba50 Merge pull request #91685 from liggitt/csr-v1
CertificateSigningRequest v1 API

Kubernetes-commit: 3f8bb1bf50fb5a13a5823bdbc49bd6c2198752db
2020-06-16 09:18:55 +00:00
Marek Siarkowicz
e7fab6fed0 Upgrade klog to v2.1.0
Update contains fixes required for Structured Logging Effort

Kubernetes-commit: 1e3918f1d0dd8809d3675caeb49a7c99b9941263
2020-06-04 23:18:01 +02:00
Jordan Liggitt
e900be4b2f Generated files
Change-Id: I598d686849f4b97846757b227f5191bac031798b

Kubernetes-commit: a504445086243627417aada477bc602594a71951
2020-06-01 22:26:24 -04:00
Kubernetes Publisher
be97aaa976 Merge pull request #91435 from jqmichael/deltaFifoDoc
Updated delta FIFO doc

Kubernetes-commit: 5a784d4faaf2d589ed61c4c386f3060b358740f6
2020-06-03 03:53:52 +00:00
Kubernetes Publisher
72878402c8 Merge pull request #90191 from liggitt/csr-status
CSR condition status, lastTransitionTime, versioned validation

Kubernetes-commit: 5fb9e35e57bf0ccdfa52d9f05a27ff641470d430
2020-06-02 06:50:01 +00:00
Kubernetes Publisher
01913eaa61 Merge pull request #91561 from RainbowMango/pr_fix_invalid_recover
fix a client-go crash handler not working issue.

Kubernetes-commit: 99df02cd4ad467279ed758674542cf9a2c042859
2020-05-30 10:48:35 +00:00
Kubernetes Publisher
7530c5eab3 Merge pull request #91502 from deads2k/dyn-audit-removal-00
remove --feature-gates=DynamicAuditing

Kubernetes-commit: d1586ea3f916b98b82c175102092c4af305da45f
2020-05-30 10:48:34 +00:00
RainbowMango
78a7be5457 fix a client-go crash handler not working issue.
Kubernetes-commit: 4a4d1947b031aa301be6046c641faae275f5223b
2020-05-29 14:41:27 +08:00
Jordan Liggitt
198e8f5ee4 Switch issued check to inspect certificate length
Kubernetes-commit: 94fd1d76ca0e8992b000fbb6b1562c11c37df7cb
2020-05-28 10:48:49 -04:00
David Eads
fb82acb39d remove-api
Kubernetes-commit: e857adbdfdba795ceca870f194d8d8a296bbdc21
2020-05-27 14:27:08 -04:00
knight42
cacbf4f9e0 fix: make fake.Clientset support streaming logs
Signed-off-by: knight42 <anonymousknight96@gmail.com>

Kubernetes-commit: 16238e10def838ba58037279b480315b2c77ae21
2020-05-27 17:45:12 +08:00
Hongcai Ren
f099a72e14 cleanup misleading errors in openAPI tesing (#91321)
* cleanup misleading errors in openAPI tesing

* make sure test case would fail

Kubernetes-commit: 0459c2afab4f1913993e437a781e95457ecefb42
2020-05-27 00:25:20 +00:00
Qing Ju
89cf2be62c Added clarification to delta FIFO doc
Kubernetes-commit: c71272b0c7ac09991ba215e7bc5a8af8334c4b17
2020-05-25 19:48:10 -07:00