Tim Hockin
a3b05033f6
Move endpoints test-helper funcs to a package
2021-07-01 18:26:45 -07:00
Tim Hockin
012bfaf98d
Service REST test: remove last use of "inner"
...
This required making a more hi-fidelity fake. That, in turn, required
fixing some tests which were just not correct.
2021-07-01 18:26:45 -07:00
Tim Hockin
22ed090e73
Service REST test: mostly remove tests of "inner"
...
This test was sometimes using the "inner" REST and sometimes using the
"outer" REST. This commit changes all but one test to use the outer.
The remaining test needs rework.
2021-07-01 18:26:45 -07:00
Tim Hockin
7e8882d189
Service REST test: Remove pointless scaffolding
...
These fields don't add much value in actually proving it all works, and
they make the upcoming de-layering hard.
2021-07-01 18:26:45 -07:00
Tim Hockin
175f4f3387
Move service test-helper funcs to a package
2021-07-01 18:26:45 -07:00
Tim Hockin
b1fcbab801
Service REST test: helper funcs for ports, too
2021-07-01 18:26:45 -07:00
Tim Hockin
5f65ba7d76
Service REST test: Use helper funcs to streamline
...
This makes subsequent changes easier to see.
2021-07-01 18:26:44 -07:00
Tim Hockin
d64bb1b29e
Service REST test: always check errors
...
This will be needed in upcoming changes.
2021-07-01 18:26:44 -07:00
Tim Hockin
d3a0332b6c
Service REST test: remove unused fields
...
These fields are never set, so we can remove them with no change in
behavior.
2021-07-01 18:26:44 -07:00
Tim Hockin
292b1444eb
Remove bad test for AllocateLoadBalancerNodePorts
...
If the gate is open, we should never find nil.
2021-07-01 18:26:44 -07:00
Tim Hockin
0bb280044e
Fix typo in IP allocator error
2021-07-01 18:26:44 -07:00
Tim Hockin
5970c4671c
Add an IPFamily() method to ipallocator
2021-07-01 18:26:44 -07:00
Tim Hockin
89b633d353
Fix doc comment
2021-07-01 18:26:44 -07:00
Kubernetes Prow Robot
98d20f552b
Merge pull request #99378 from mattcary/api
...
StatefulSet PersistentVolumeClaimDeletePolicy
2021-06-30 11:49:03 -07:00
Chris Henzie
dba8ee229e
Add validation options for PersistentVolumeClaims
...
These options provide an extensible way of configuring how PVCs are
validated
2021-06-28 21:24:55 -07:00
Chris Henzie
9ba0eed7c5
Add validation options for PersistentVolumes
...
These options provide an extensible way of configuring how PVs are
validated
2021-06-28 21:24:55 -07:00
Shiming Zhang
45ce2dfacc
Treat negative as 1s in delete path
2021-06-28 11:49:39 +08:00
Kubernetes Prow Robot
a0f9c8c277
Merge pull request #103001 from zshihang/csi
...
CSIServiceAccountToken ga
2021-06-26 19:31:23 -07:00
Antonio Ojea
fa7b5d86e6
remove duplicate validation on services
...
The rest api for services was validating that, on updates, both
the old and new service have the same type. That guarantees that
the type is going to be the same after that, thus we don't need
to validate the service type on the old and the new service.
2021-06-25 23:18:56 +02:00
Kubernetes Prow Robot
e19dc07ac5
Merge pull request #102898 from khenidak/fix-prefer-dualstack
...
fix auto upgraded preferDual-Stack services (in cluster upgrade)
2021-06-25 10:58:08 -07:00
Matthew Cary
b259686b36
tests for statefulset PersistentVolumeClaimDeletePolicy api change
...
Change-Id: I07c8e31a8c76a6a1022c08fb749af7e353b731de
2021-06-23 11:55:35 -07:00
Matthew Cary
e4e735cd1c
statefulset PersistentVolumeClaimDeletePolicy api change
2021-06-23 10:33:05 -07:00
Matthew Cary
0feba0c4ee
Add StatefulSetAutoDeletePVC feature gate
...
Change-Id: Iacb48932bd5402bf7e95431ffb95b0896421f88a
2021-06-23 10:33:05 -07:00
Kubernetes Prow Robot
7b24c7e4a7
Merge pull request #101256 from Jiawei0227/length2
...
Relax csiNodeIDMaxLength length limit to 256
2021-06-23 02:10:10 -07:00
Khaled (Kal) Henidak
2c6bba2936
fix auto upgraded preferDualStack services (in cluster upgrade)
2021-06-22 17:40:21 +00:00
Shihang Zhang
8231a3e921
CSIServiceAccountToken ga
2021-06-21 11:35:24 -07:00
Jordan Liggitt
068e4c55a8
Eliminate parallel and unnecessary embedded etcd instances
2021-06-15 09:53:06 -04:00
Andrew Sy Kim
4d38d21880
apis: remove Service topologyKeys
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com >
2021-06-03 22:17:45 -04:00
Kubernetes Prow Robot
f5eded9a00
Merge pull request #100142 from Ethyling/enh-get-lastrestart
...
Add `LAST RESTART` column to `kubectl get pods`
2021-06-02 10:54:43 -07:00
Jordan Jacobelli
9eea445bcc
Update test cases for 'RESTARTS' column in 'kubectl get pods'
...
Signed-off-by: Jordan Jacobelli <jordanjacobelli04@gmail.com >
2021-06-02 17:32:21 +02:00
Kubernetes Prow Robot
63c75f3766
Merge pull request #102461 from goodluckbot/apiserver-event-toSelectableFields
...
Improve ToSelectableFields' performance for events
2021-06-02 08:02:18 -07:00
goodluckbot
eb114115fd
Improve func ToSelectableFields performance for event
2021-05-31 23:48:26 +08:00
Kubernetes Prow Robot
a98d3d0700
Merge pull request #100842 from ravisantoshgudimetla/add-minReadySeconds-ss
...
api: Add min ready seconds & availablereplicas for statefulsets
2021-05-26 13:45:50 -07:00
ravisantoshgudimetla
f3ab955018
validation: Handle presence of api introduced
...
When the StatefulSetMinReadySeconds feature gate is disabled,
the registry and validation must properly handle dropping the
minReadySeconds and AvailableReplicas fields
2021-05-25 20:03:18 -04:00
Kubernetes Prow Robot
781382a74d
Merge pull request #102067 from tkashem/apf-always-create-suggested
...
apf: always create missing bootstrap configuration object
2021-05-25 12:12:43 -07:00
Kubernetes Prow Robot
c115435adc
Merge pull request #101688 from liggitt/field-warnings
...
Add field-level warning plumbing and add pod spec warnings
2021-05-19 17:23:04 -07:00
Jordan Liggitt
f669796dfd
Send pod spec warnings when creating or changing workload objects
2021-05-18 10:42:36 -04:00
Jordan Liggitt
642e6168d1
Add metadata.generation support to all pod-spec-containing types
2021-05-18 10:42:36 -04:00
Jordan Liggitt
8c8a4cf3e4
Add WarningsOnCreate,WarningsOnUpdate
2021-05-18 10:42:36 -04:00
Abu Kashem
f9ee64007e
apf: always create missing bootstrap configuration object(s)
2021-05-17 12:08:39 -04:00
Kubernetes Prow Robot
7563d3092e
Merge pull request #96216 from knight42/refactor/disable-insecure-port-in-ctrler-mgr
...
refactor: disable insecure serving in controller-manager
2021-05-10 13:49:36 -07:00
Abu Kashem
759a64136b
add auto update for apf bootstrap configuration
...
Take the following approach:
On a fresh install, all bootstrap configuration objects will
have auto update enabled via the following annotation :
`apf.kubernetes.io/autoupdate: 'true'`
The kube-apiserver periodically checks the bootstrap configuration
objects on the cluster and applies update if necessary.
We enforce an 'always auto-update' policy for the mandatory
configuration object(s).
We update the suggested configuration objects when:
- auto update is enabled (`apf.kubernetes.io/autoupdate: 'true'`) or
- auto update annotation key is missing but `generation` is `1`
If the configuration object is missing the annotation key, we add
it appropriately:
it is set to `true` if `generation` is `1`, `false` otherwise.
The above approach ensures that we don't squash changes made by an
operator. Please note, we can't protect the changes made by the
operator in the following scenario:
- the user changes the spec and then deletes and recreates
the same object. (generation resets to 1)
remove using a marker
2021-05-07 14:23:17 -04:00
Jian Zeng
e481d99965
refactor: disable insecure serving in controller-manager
...
Now the following flags have no effect and would be removed in v1.24:
* `--port`
* `--address`
The insecure port flags `--port` may only be set to 0 now.
Signed-off-by: Jian Zeng <zengjian.zj@bytedance.com >
2021-05-03 00:01:49 +08:00
Kubernetes Prow Robot
972ee2d425
Merge pull request #101034 from verb/1.22-ec-api
...
Switch alpha Pod ephemeralcontainers API to use Pod kind
2021-04-22 06:21:41 -07:00
Andrea Nodari
09649e58b5
Check request info when updating managed fields during scale
...
- Test all versions to make sure each resource version is in the
mappings
- Fail when request info contains an unrecognized version. We have tests
that guarantee that all known versions are in the mappings. If we
get a version in request info that is not there we should fail fast to
prevent inconsistent behaviour (e.g. for some reason the mappings is
not up to date).
Ensure all known versions are in mappings
2021-04-21 20:27:02 +02:00
Antoine Pelisse
816e80206c
Use ScaleHandler for all scalable resources
2021-04-21 18:41:40 +02:00
Andrea Nodari
a9ea98b3b9
Track ownership of deployments scale subresource
2021-04-21 18:41:40 +02:00
Jiawei Wang
125fb04dbf
Relax node_id length limit to 256
2021-04-19 12:55:19 -07:00
Kubernetes Prow Robot
f1c1379def
Merge pull request #100963 from enj/enj/i/authz_func_ctx
...
authorizer func: pass through context
2021-04-16 12:56:22 -07:00
Kubernetes Prow Robot
27a625cf89
Merge pull request #100724 from liggitt/eviction-v1beta1
...
Add policy/v1 Eviction support
2021-04-16 10:02:22 -07:00