Matthew Cary
d386d6880e
Respect controllers on PVCs for retention policy
2024-06-05 12:06:41 -07:00
Aleksandra Malinowska
e07d898cfd
Make StatefulSet restart pods with phase Succeeded
2023-10-26 15:34:01 +02:00
Kubernetes Prow Robot
568aee16e8
Merge pull request #120731 from Nordix/sts_issue/adil
...
Fixing CurrentReplicas and CurrentRevision in completeRollingUpdate
2023-10-20 14:42:08 +02:00
adil ghaffar
00c21ced3a
Fixing CurrentReplicas and CurrentRevision in completeRollingUpdate
2023-10-19 14:17:42 +03:00
Aleksandra Malinowska
7989400bef
Fix concurrent write when filling PVC labels
2023-10-11 15:07:55 +02:00
Aleksandra Malinowska
5ed60a72f6
Revert "Make StatefulSet restart pods with phase Succeeded"
2023-09-19 15:49:36 +02:00
Aleksandra Malinowska
d7264d0af0
Make StatefulSet restart pods with phase Succeeded
2023-09-08 17:47:17 +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
2fb472c83c
Refactor StatefulSet controller update logic
2023-06-20 12:14:25 +02:00
kerthcet
3f1d8e7aeb
Apply to use contextual logging for all loggers in statefulSet
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-18 16:55:19 +08: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
HirazawaUi
397cc73dc9
delete unused functions in pkg/controller directory
2023-03-28 22:41:20 +08:00
Rahul Rangith
c1cc18ccd5
Automatically recreate pvc when sts pod is stuck in pending
2023-01-17 10:21:41 -05:00
Peter Schuurman
366997951b
Update doc comments and change name of feature gate
2022-11-08 07:48:10 -08:00
Peter Schuurman
7b3d77a41a
Adding implementation of KEP-3335, StatefulSetSlice
2022-11-08 07:48:00 -08:00
Mengjiao Liu
b9740694f3
StatefulSet: fix kube-controller-manager panic due to StatefulSetPersistentVolumeClaimRetentionPolicy being nil
2022-10-27 23:13:36 +08:00
Davanum Srinivas
a9593d634c
Generate and format files
...
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Abirdcfly
00b9ead02c
cleanup: remove duplicate import
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-14 11:25:19 +08:00
FillZpp
1818a9a36a
A calculation function for StatefulSet maxUnavailable and some tests for it
...
Signed-off-by: FillZpp <FillZpp.pub@gmail.com>
2022-05-31 16:45:19 +08:00
Matthew Cary
bce87a3e4f
controller change for statefulset auto-delete (implementation)
2021-11-17 16:48:50 -08:00
Kubernetes Prow Robot
a5be86fee7
Merge pull request #101316 from ravisantoshgudimetla/add-minReadySeconds-impl
...
Add min ready seconds impl
2021-06-15 13:41:43 -07: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
hantmac
619fff10ea
handle Unmarshal error
...
Signed-off-by: hantmac <hantmac@outlook.com>
2021-05-13 21:22:59 +08:00
ialidzhikov
e1e7c39b47
Remove unnecessary type conversion
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2021-01-09 22:43:29 +02:00
qingsenLi
d3a0c149a3
Remove some unused codes in stateful_set_utils.go
2019-09-21 22:24:48 +08:00
hwdef
4e7ef9ad36
delete unused var
2019-09-19 18:04:13 +08:00
kanchairen
bf421ae560
Fix a bug that StatefulSet applies the revision incorrectly
2019-06-30 09:49:00 +08:00
caiweidong
eb8dd093fe
add UT
2019-03-19 20:36:38 +08:00
caiweidong
751007c17d
Do not replace labels of pvc with those of StastefulSet
2019-03-12 11:13:57 +08:00
Ayush Pateria
a269491f18
Modify tests
2018-02-22 19:19:06 +05:30
Ayush Pateria
1beed0f4c6
Remove unused code and modify tests to include set based selector
2018-02-20 03:23:51 +05:30
Ayush Pateria
4f84a1cb7e
Pass pod labels to controller revision
2018-02-09 14:54:18 +05:30
dhilipkumars
aba725a391
Promote SS to apps/v1
2018-01-18 13:48:52 +05:30
Kenneth Owens
1ce4ef8229
Adds the statefulset.kubernetes.io/pod-name label allowing users to
...
attach a Service to an individual Pod.
2017-11-20 09:13:07 -08: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
Kenneth Owens
a6473d82dc
StatefulSet controller no longer attempts to mutate v1.PodSpec.Hostname or v1.PodSpec.Subdomain
2017-08-21 13:08:31 -07:00
Kubernetes Submit Queue
b59ad9cbff
Merge pull request #50146 from gmarek/deepcopyinto
...
Automatic merge from submit-queue (batch tested with PRs 46512, 50146)
Make metav1.(Micro)?Time functions take pointers
Is there any reason for those functions not to be on pointers?
2017-08-19 11:28:15 -07:00
Yinan Li
46c6aea1cf
Use CollisionCount for collision avoidance in StatefulSet controller
2017-08-18 06:49:02 -07:00
gmarek
0504cfbc25
Make metav1.(Micro)?Time functions take pointers
2017-08-17 11:24:28 +02:00
Kubernetes Submit Queue
3e8a25e818
Merge pull request #50008 from atlassian/meta-controller-ref
...
Automatic merge from submit-queue
Migrate to controller references helpers in meta/v1
**What this PR does / why we need it**:
This is a follow up for #48319 that migrates all method usages to new methods in meta/v1.
**Special notes for your reviewer**:
Looking at each commit individually might be easier.
**Release note**:
```release-note
NONE
```
/sig api-machinery
/kind cleanup
2017-08-10 17:07:30 -07:00
Yinan Li
89fd3b0ebd
Copy annotations from StatefulSet to ControllerRevisions it owns
2017-08-07 14:50:05 -07:00
Mikhail Mazurskiy
042b5642b9
Migrate to NewControllerRef from meta/v1 package
2017-08-06 22:43:46 +10:00
Anthony Yeh
283211c1cf
StatefulSet: Remove pod.alpha.kubernetes.io/initialized
annotation.
2017-07-24 10:18:47 -07:00
Chao Xu
9d489c8504
manual changes
2017-07-17 15:05:38 -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