The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affected files.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
delete-local-data was deprecated back in v1.20 with this commit:
625e47aaa2
It's about time we entirely drop the support for this flag. Users should
be already using delete-emptydir-data instead.
This commits removes the following flags from kubectl run:
- filename
- force
- grace-period
- kustomize
- recursive
- timeout
- wait
Those flags are deprecated since v1.26, see this commit
09804a198c.
The context can be used for timeout purposes for example, not really for
Kubernetes but other consumers like cri-tools.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Some of the calls to t.Errorf from apitesting/roundtrip use the %#v verb (Go-syntax representation)
for string arguments that are have already been formatted for legibility by something like like
cmp.Diff. Quoting and escaping newlines in these strings makes them harder to read, like this:
> ...
> "(*storage.CSIDriver)({\n TypeMeta: (v1.TypeMeta) {\n Kind: (string) \"\",\n APIVersion: (string)
> \"\"\n },\n ObjectMeta: (v1.ObjectMeta) {\n Name: (string) (len=15) \"犱âM邽[ǎ*ʄ\",\n
> ...
When Pod state changes rapidly, endpoints controller may use outdated
informer cache to sync Service. If the outdated endpoints appear to be
expected by the controller, it skips updating it.
The commit fixes it by checking if endpoints informer cache is outdated
when processing a service. If the endpoints is stale, it returns an
error and retries later.
Signed-off-by: Quan Tian <quan.tian@broadcom.com>
* Pod terminationGracePeriodSeconds is always valid
Validation of a pod spec will always use the pod's
TerminationGracePeriodSeconds value.
A set of pod test-helpers have been created to help construct Pods.
* remove unused func
* reduction
* reduce 2
* simplify test
* report invalid grace period
* update SupplementalGroupPolicy tests
* feat: add func for generating register code
* refactor:remove unused local variable
* fix: make the function name singular
Signed-off-by: Lin Yang <reaver@flomesh.io>
* fix: precisely matching the comment tag for register-gen
Signed-off-by: Lin Yang <reaver@flomesh.io>
---------
Signed-off-by: Lin Yang <reaver@flomesh.io>