Adding implementation of KEP-3335, StatefulSetSlice

This commit is contained in:
Peter Schuurman
2022-09-26 18:34:03 -07:00
parent 2b7b5245ea
commit 7b3d77a41a
37 changed files with 1804 additions and 507 deletions

View File

@@ -1044,6 +1044,18 @@
}
]
},
"io.k8s.api.apps.v1.StatefulSetOrdinals": {
"description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.",
"properties": {
"start": {
"default": 0,
"description": "Start is the number representing the first index that is used to represent replica ordinals. Defaults to 0. If set, replica ordinals will be numbered [.spec.ordinals.start, .spec.ordinals.start - .spec.replicas).",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy": {
"description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.",
"properties": {
@@ -1066,6 +1078,14 @@
"format": "int32",
"type": "integer"
},
"ordinals": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.apps.v1.StatefulSetOrdinals"
}
],
"description": "Ordinals controls how the stateful set creates pod and persistent volume claim names. The default behavior assigns a number starting with zero and incremented by one for each additional replica requested. This requires the StatefulSetSlice feature gate to be enabled, which is alpha."
},
"persistentVolumeClaimRetentionPolicy": {
"allOf": [
{