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
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Kenneth Owens
b1ce1ffc55
Removes PartitionStatefulSetStrategyType and Partition from UpdateStrategy and replaces them with a parameterized RollingUpdate strategy.
2017-06-12 10:06:09 -07:00
Kenneth Owens
1b55f57391
Implements StatefulSet update
...
Implements history utilities for ControllerRevision in the controller/history package
StatefulSetStatus now has additional fields for consistency with DaemonSet and Deployment
StatefulSetStatus.Replicas now represents the current number of createdPods and StatefulSetStatus.ReadyReplicas is the current number of ready Pods
2017-06-06 12:00:28 -07:00
Clayton Coleman
20d45af694
Combine statefulset burst and monotonic scaling tests
...
Use subtests to avoid duplicating entire suite of control logic.
2017-05-21 01:14:30 -04:00
Kenneth Owens
7d22e64284
StatefulSet should not launch Pod i, if a Pod in the sequence [0,i) has its
...
DeletionTimestamp set. Fixes 44229.
Rename isTerminated to isTerminating
Adds a test case for at the unit level to prevent regression
2017-04-21 08:38:21 -07:00
Chao Xu
4f9591b1de
move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod
2017-04-17 11:38:11 -07:00
Anthony Yeh
b4b8fdbca3
GC: Fix re-adoption race when orphaning dependents.
...
The GC expects that once it sees a controller with a non-nil
DeletionTimestamp, that controller will not attempt any adoption.
There was a known race condition that could cause a controller to
re-adopt something orphaned by the GC, because the controller is using a
cached value of its own spec from before DeletionTimestamp was set.
This fixes that race by doing an uncached quorum read of the controller
spec just before the first adoption attempt. It's important that this
read occurs after listing potential orphans. Note that this uncached
read is skipped if no adoptions are attempted (i.e. at steady state).
2017-03-17 15:39:26 -07:00
Anthony Yeh
f269e78ebc
StatefulSet: Don't touch Pods if DeletionTimestamp is set.
2017-03-06 09:46:03 -08:00
Michail Kargakis
dbab67aa32
controller: statefulsets respect observed generation
2017-03-02 19:43:06 +01:00