mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 02:37:36 +00:00
Adding implementation of KEP-3335, StatefulSetSlice
This commit is contained in:
15
api/openapi-spec/swagger.json
generated
15
api/openapi-spec/swagger.json
generated
@@ -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"
|
||||
|
@@ -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": [
|
||||
{
|
||||
|
Reference in New Issue
Block a user