Update module k8s.io/client-go to v12 #3
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v8.0.0+incompatible
->v12.0.0
Release Notes
kubernetes/client-go
v12.0.0
Compare Source
This is the exact version of the client used by Kubernetes v1.15.0.
v11.0.0
Compare Source
This is the exact version of the client used by Kubernetes v1.14.0.
v10.0.0
Compare Source
Breaking Changes:
Action required: client-go will no longer have bootstrap
(
k8s.io/client-go/tools/bootstrap
) related code. Any reference to it willbreak. Please redirect all references to
k8s.io/bootstrap
instead.(#67356)
The methods
NewSelfSignedCACert
andNewSignedCert
now usecrypto.Signer
interface instead of
rsa.PrivateKey
for certificate creation. This is doneto allow different kind of private keys (for example: ecdsa).
(#69329)
GetScale
andUpdateScale
methods have been added forapps/v1
clientsand with this, no-verb scale clients have been removed.
(#70437)
k8s.io/client-go/util/cert/triple
package has been removed.(#70966)
New Features:
unfinished_work_microseconds
is added to the workqueue metrics.It can be used to detect stuck worker threads (kube-controller-manager runs many workqueues.).
(#70884)
A method
GetPorts
is added to expose the ports that were forwarded.This can be used to retrieve the locally-bound port in cases where the input was port 0.
(#67513)
Dynamic listers and informers, that work with
runtime.Unstructured
objects,are added. These are useful for writing generic, non-generated controllers.
(68748)
The dynamic fake client now supports JSONPatch.
(#69330)
The
GetBinding
method is added for pods in the fake client.(#69412)
Bug fixes and Improvements:
The
apiVersion
and action name values for fake evictions are now set.(#69035)
PEM files containing both TLS certificate and key can now be parsed in
arbitrary order. Previously key was always required to be first.
(#69536)
Go clients created from a kubeconfig that specifies a
TokenFile
nowperiodically reload the token from the specified file.
(#70606)
It is now ensured that oversized data frames are not written to
spdystreams in
remotecommand.NewSPDYExecutor
.(#70999)
A panic occuring on calling
scheme.Convert
is fixed by populating the fakedynamic client scheme. (#69125)
Add step to correctly setup permissions for the in-cluster-client-configuration example.
(#69232)
The function
Parallelize
is deprecated. UseParallelizeUntil
instead.(#68403)
[k8s.io/apimachinery] Restrict redirect following from the apiserver to
same-host redirects, and ignore redirects in some cases.
(#66516)
API changes
New Features:
GlusterFS PersistentVolumes sources can now reference endpoints in any
namespace using the
spec.glusterfs.endpointsNamespace
field.Ensure all kubelets are upgraded to 1.13+ before using this capability.
(#60195)
The dynamic audit configuration
API is added. (#67547)
A new field
EnableServiceLinks
is added to thePodSpec
to indicate whetherinformation about services should be injected into pod's environment variables.
(#68754)
CSIPersistentVolume
feature, i.e.PersistentVolumes
withCSIPersistentVolumeSource
, is GA.CSIPersistentVolume
feature gate is nowdeprecated and will be removed according to deprecation policy.
(#69929)
Raw block volume support is promoted to beta, and enabled by default.
This is accessible via the
volumeDevices
container field in pod specs,and the
volumeMode
field in persistent volume and persistent volume claims definitions.(#71167)
Bug fixes and Improvements:
The default value of extensions/v1beta1 Deployment's
RevisionHistoryLimit
is set to
MaxInt32
. (#66605)procMount
field is no longer incorrectly marked as required in openapi schema.(#69694)
The caBundle and service fields in admission webhook API objects now correctly
indicate they are optional. (#70138)
v9.0.0
Compare Source
Breaking Changes:
client-go now supports additional non-alpha-numeric characters in UserInfo
"extra" data keys. It should be updated in order to properly support extra
data containing "/" characters or other characters disallowed in HTTP headers.
Old clients sending keys which were
%
-escaped by the user will have theirvalues unescaped by new API servers.
(#65799)
apimachinery/pkg/watch.Until
has been moved toclient-go/tools/watch.UntilWithoutRetry
. While switching please considerusing the new
client-go/tools/watch.UntilWithSync
orclient-go/tools/watch.Until
.(#66906)
[k8s.io/apimachinery]
Unstructured
metadata accessors now respect omitempty semanticsi.e. a field having zero value will now be removed from the unstructured metadata map.
(#67635)
[k8s.io/apimachinery] The
ObjectConvertor
interface is now changed such thatConvertFieldLabel
func takes GroupVersionKind as an argument instead of justversion and kind. (#65780)
[k8s.io/apimachinery] componentconfig
ClientConnectionConfiguration
ismoved to
k8s.io/apimachinery/pkg/apis/config
.(#66058)
[k8s.io/apimachinery] Renamed
KubeConfigFile
toKubeconfig
inClientConnectionConfiguration
.(#67149)
[k8s.io/apimachinery] JSON patch no longer supports
int
.(#63522)
New Features:
Add ability to cancel leader election.
This also proves useful in integration tests where the whole app is started and
stopped in each test. (#57932)
An example showing how to use fake clients in tests is added.
(#65291)
[k8s.io/apimachinery] Create and Update now support
CreateOptions
andUpdateOptions
.(#65105)
Bug fixes and Improvements:
Decrease the amount of time it takes to modify kubeconfig
files with large amounts of contexts.
(#67093)
The leader election client now renews timeout.
(#65094)
Switched certificate data replacement from
REDACTED
toDATA+OMITTED
.(#66023)
Fix listing in the fake dynamic client.
(#66078)
Fix discovery so that plural names are no longer ignored if a singular name is not specified.
(#66249)
Fix kubelet startup failure when using
ExecPlugin
in kubeconfig.(#66395)
Fix panic in the fake
SubjectAccessReview
client when object is nil.(#66837)
Periodically reload
InClusterConfig
token.(#67359)
[k8s.io/apimachinery] Report parsing error in json serializer.
(#63668)
[k8s.io/apimachinery] The
metav1.ObjectMeta
accessor does not deepcopyowner references anymore. In general, the accessor interface does not enforce
deepcopy nor does it forbid it (e.g. for
unstructured.Unstructured
).(#64915)
[k8s.io/apimachinery] Utility functions
SetTransportDefaults
andDialerFor
once again respect custom Dial functions set on transports.
(#65547)
[k8s.io/apimachinery] Speed-up conversion function invocation by avoiding
reflect.Call
. Action required: regenerated conversion with conversion-gen.(#65771)
[k8s.io/apimachinery] Establish "406 Not Acceptable" response for
unmarshable protobuf serialization error.
(#67041)
[k8s.io/apimachinery] Immediately close the other side of the connection by
exiting once one side closes when proxying.
(#67288)
API changes
Breaking Changes:
Volume dynamic provisioning scheduling has been promoted to beta.
ACTION REQUIRED: The DynamicProvisioningScheduling alpha feature gate has been removed.
The VolumeScheduling beta feature gate is still required for this feature.
(#67432)
The CSI file system type is no longer defaulted to ext4.
All the production drivers listed under https://kubernetes-csi.github.io/docs/Drivers.html
were inspected and should not be impacted after this change.
If you are using a driver not in that list,
please test the drivers on an updated test cluster first.
(#65499)
New Features:
Support annotations for remote admission webhooks.
(#58679)
Support both directory and block device for local volume
plugin
FileSystem
VolumeMode
.(#63011)
Introduce
autoscaling/v2beta2
andcustom_metrics/v1beta2
,which implement metric selectors for Object and Pods metrics,
as well as allowing AverageValue targets on Objects, similar to External metrics.
(#64097)
Add
Lease
API in thecoordination.k8s.io
API group.(#64246)
ProcMount
added toSecurityContext
andAllowedProcMounts
added toPodSecurityPolicy
to allow paths in the container's
/proc
to not be masked.(#64283)
Add the
AuditAnnotations
field toImageReviewStatus
to allow theImageReview
backend to return annotations to be added to the created pod.(#64597)
SCTP is now supported as additional protocol (alpha) alongside TCP and UDP in
Pod, Service, Endpoint, and NetworkPolicy.
(#64973)
The
PodShareProcessNamespace
feature to configure PID namespace sharingwithin a pod has been promoted to beta.
(#66507)
Add
TTLSecondsAfterFinished
toJobSpec
for cleaning up Jobs after they finish.(#66840)
Add
DataSource
andTypedLocalObjectReference
fields to supportrestoring a volume from a volume snapshot data source.
(#67087)
RuntimeClass
is a new API resource for defining different classes of runtimesthat may be used to run containers in the cluster.
Pods can select a
RunitmeClass
to use via theRuntimeClassName
field.This feature is in alpha, and the
RuntimeClass
feature gate must be enabledin order to use it. (#67737)
To address the possibility dry-run requests overwhelming admission webhooks
that rely on side effects and a reconciliation mechanism, a new field is being
added to
admissionregistration.k8s.io/v1beta1.ValidatingWebhookConfiguration
and
admissionregistration.k8s.io/v1beta1.MutatingWebhookConfiguration
so thatwebhooks can explicitly register as having dry-run support.
If a dry-run request is made on a resource that triggers a non dry-run supporting
webhook, the request will be completely rejected, with "400: Bad Request".
Additionally, a new field is being added to the
admission.k8s.io/v1beta1.AdmissionReview
API object, exposing to webhookswhether or not the request being reviewed is a dry-run.
(#66936)
Bug fixes and Improvements:
The
DisruptedPods
field inPodDisruptionBudgetStatus
is now optional.(#63757)
extensions/v1beta1
Deployment'sProgressDeadlineSeconds
now defaults toMaxInt32
.(#66581)
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.