Arda Güçlü
b82572f6f6
Do not attempt to truncate revision history if revisionHistoryLimit is negative
2024-12-20 10:03:38 +03:00
Peter Schuurman
585971431b
Remove StatefulSetStartOrdinal feature gate to target stable in 1.31
2024-07-16 08:05:09 -07:00
Filip Křepinský
8ca077ab7a
improve TestParallelScale test
...
we can test for larger number of parallel requests than 2 in
statefulsets with hundreds of replicas
2024-05-07 21:01:47 +02:00
Filip Křepinský
df276c5538
fix requests tracker concurrency
2024-05-07 20:45:18 +02:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Filip Křepinský
85d55b6737
fix stateful set pod recreation and event spam ( #123809 )
...
* fix pods tracking and internal error checking in statefulset tests
* fix stateful set pod recreation and event spam
- do not emit events when pod reaches terminal phase
- do not try to recreate pod until the old pod has been removed from
etcd storage
* fix conflict race in statefulset rest update
statefulset controller does less requests per sync now and thus can
reconcile status faster, thus resulting in a higher chance for conflicts
2024-04-18 01:03:46 -07:00
Aleksandra Malinowska
e07d898cfd
Make StatefulSet restart pods with phase Succeeded
2023-10-26 15:34:01 +02:00
Aleksandra Malinowska
54714686bc
Modify test PVC to detect concurrent map write bug
2023-10-11 15:07:50 +02:00
Abhishek Srivastav
5f8fc30b2c
Added locks on request tracker before accessing fields ( #120599 )
...
* Added locks on request tracker before accessing fields
Unit test StatefulSetAutoDeletePVCEnabled has been
flaking with DATARACE. Added lock on request tracker
before accessing err field.
* Addressed review comments for PR : Added locks on request tracker before accessing fields
2023-10-03 16:38:08 +02:00
Aleksandra Malinowska
5ed60a72f6
Revert "Make StatefulSet restart pods with phase Succeeded"
2023-09-19 15:49:36 +02:00
Kubernetes Prow Robot
3eca0a5f78
Merge pull request #120398 from aleksandra-malinowska/sts-restart-always
...
Make StatefulSet restart pods with phase Succeeded
2023-09-13 12:40:12 -07:00
Aleksandra Malinowska
d7264d0af0
Make StatefulSet restart pods with phase Succeeded
2023-09-08 17:47:17 +02:00
Stephen Kitt
aa89e6dc97
Use ptr.To to retrieve intstr addresses
...
This uses the generic ptr.To in k8s.io/utils to replace functions and
code constructs which only serve to return pointers to intstr
values. Other uses of the deprecated pointer package are updated in
modified files.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-09-08 11:10:50 +02:00
Daniel Vega-Myhre
7698fe7639
Add StatefulSet pod index as pod label ( #119232 )
...
* add statefulset pod index as pod label
* change statefulset pod index label name
* check 3 pods
* change label variable name
2023-07-17 12:47:10 -07:00
Aleksandra Malinowska
d616cf72a3
Add unit tests for parallel StatefulSet create & delete
2023-06-28 16:55:38 +02:00
Aleksandra Malinowska
63e5b6bdb2
Parallel StatefulSet pod create & delete
2023-06-20 12:15:21 +02:00
Stephen Kitt
5bfe738af2
apps: replace intstr.FromInt with intstr.FromInt32
...
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:17:05 +02:00
Rahul Rangith
392cd5ce8c
Make e2e test not rely on local volumes
2023-01-17 10:21:42 -05:00
Rahul Rangith
3cf636b22e
PR feedback
2023-01-17 10:21:41 -05:00
Rahul Rangith
c1cc18ccd5
Automatically recreate pvc when sts pod is stuck in pending
2023-01-17 10:21:41 -05:00
Filip Křepinský
ec0b200f3d
statefulset: handle API error on pod deletion
...
when new revision is being rolled out
2022-11-10 22:47:23 +01:00
Peter Schuurman
9258cb4041
Fix typo in function emptyInvariants()
2022-11-08 07:48:10 -08:00
Peter Schuurman
366997951b
Update doc comments and change name of feature gate
2022-11-08 07:48:10 -08:00
Peter Schuurman
8a9c126eca
Small updates and comment fixes
2022-11-08 07:48:09 -08:00
Peter Schuurman
7b3d77a41a
Adding implementation of KEP-3335, StatefulSetSlice
2022-11-08 07:48:00 -08:00
Gunju Kim
6559050ee1
StatefulSet: Cleanup the complex defer function updating the status
...
In the long term, the complex defer function makes the code harder to
maintain as code after it should take that into account. This removes
the complex defer function updating the status of a statefulset.
2022-11-08 08:39:42 +09:00
Mengjiao Liu
b9740694f3
StatefulSet: fix kube-controller-manager panic due to StatefulSetPersistentVolumeClaimRetentionPolicy being nil
2022-10-27 23:13:36 +08:00
Ravi Gudimetla
9144250a92
Promote minReadySeconds to GA
2022-07-13 11:37:10 -04:00
Mayank Kumar
2733b66e80
add maxUnavailable implementation and UT
2022-03-28 11:01:05 -07:00
Matthew Cary
f2861d7876
Turn off informer for statefulset unit tests
...
Change-Id: I353a2d5bd59963d5d2308eaf7d0e6f77d969fc25
2022-01-15 20:29:19 +00:00
Matthew Cary
0e2b901762
Clean up deep copy needed for UpdateStatefulSet
...
Change-Id: Id732358183d682d1a945cfee56f83bcaac0d7c31
2021-11-23 06:48:54 -08:00
Matthew Cary
53b3a6c1d9
controller change for statefulset auto-delete (tests)
...
Change-Id: I16b50e6853bba65fc89c793d2b9b335581c02407
2021-11-17 16:48:50 -08:00
Mike Dame
41fcb95f2f
Wire contexts to Apps controllers
2021-10-13 16:32:13 -04:00
ravisantoshgudimetla
ceb1dbd2f1
statefulsets: MinReadySeconds implementation
...
https://github.com/kubernetes/kubernetes/pull/100842
introduced featuregate. This PR implements the logic
behind it.
2021-06-15 12:59:54 -04:00
wawa0210
d360be0f7c
fix pkg/controller/statefulset staticcheck
2020-06-26 00:00:41 +08:00
Nan Yu
89bb7d8454
Honor the RevisionHistoryLimit in StatefulSetSpec
...
The StatefulSet controller cleans up ControllerRevisions at the end of
the reconcile loop. If something goes wrong during reconcile, it bails
out without actually performing this step. This commit moves the cleanup
to a deferred function call to guarantee it will be executed.
Fixes issue: https://github.com/kubernetes/kubernetes/issues/85690
2020-02-18 10:42:38 -08:00
likakuli
10864d3366
fix a bug that orphan revision cannot be adopted and sts cannot be synced
2020-01-08 17:56:41 +08:00
David Xia
fabfd950b1
cleanup: fix some log and error capitalizations
...
Part of https://github.com/kubernetes/kubernetes/issues/15863
2019-07-20 18:26:16 -04:00
Faraaz Khan
594e228a17
set updated replicas correctly in scale up, scale down scenarios as well
2018-04-25 20:46:17 -05:00
Faraaz Khan
beec45b4de
set updated replicas
2018-04-25 20:46:17 -05:00
dhilipkumars
aba725a391
Promote SS to apps/v1
2018-01-18 13:48:52 +05:30
Tomas Nozicka
f6af1904cd
Make StatefulSet report an event when recreating failed pod
2017-11-09 12:23:37 +01:00
Dr. Stefan Schimanski
1d053c4f7c
controllers: simplify deepcopy calls
2017-08-29 19:21:24 +02:00
crimsonfaith91
ebdbafd2c5
statefulSet kubectl rollout command
2017-08-24 16:43:03 -07:00
Lars Lehtonen
9f8d57a2d4
Fix swallowed errors in statefulset tests
2017-08-21 17:12:36 -07:00
Yinan Li
46c6aea1cf
Use CollisionCount for collision avoidance in StatefulSet controller
2017-08-18 06:49:02 -07:00
Anthony Yeh
283211c1cf
StatefulSet: Remove pod.alpha.kubernetes.io/initialized
annotation.
2017-07-24 10:18:47 -07:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
cde4772928
run ./root-rewrite-all-other-apis.sh, then run make all, pkg/... compiles
2017-06-22 11:30:52 -07:00