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

@@ -1624,6 +1624,17 @@
}
]
},
"io.k8s.api.apps.v1.StatefulSetOrdinals": {
"description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.",
"properties": {
"start": {
"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": {
@@ -1646,6 +1657,10 @@
"format": "int32",
"type": "integer"
},
"ordinals": {
"$ref": "#/definitions/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": {
"$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy",
"description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional"

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": [
{