Merge pull request #5816 from mszacillo/purgemode-api
feat(stateful failover support) Introduce PurgeMode to GracefulEvictionTask in ResourceBinding
This commit is contained in:
commit
35b7e8f120
|
@ -20080,6 +20080,10 @@
|
|||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"purgeMode": {
|
||||
"description": "PurgeMode represents how to deal with the legacy applications on the cluster from which the application is migrated. Valid options are \"Immediately\", \"Graciously\" and \"Never\".",
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"description": "Reason contains a programmatic identifier indicating the reason for the eviction. Producers may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.",
|
||||
"type": "string",
|
||||
|
|
|
@ -381,6 +381,16 @@ spec:
|
|||
description: Producer indicates the controller who triggered
|
||||
the eviction.
|
||||
type: string
|
||||
purgeMode:
|
||||
description: |-
|
||||
PurgeMode represents how to deal with the legacy applications on the
|
||||
cluster from which the application is migrated.
|
||||
Valid options are "Immediately", "Graciously" and "Never".
|
||||
enum:
|
||||
- Immediately
|
||||
- Graciously
|
||||
- Never
|
||||
type: string
|
||||
reason:
|
||||
description: |-
|
||||
Reason contains a programmatic identifier indicating the reason for the eviction.
|
||||
|
|
|
@ -381,6 +381,16 @@ spec:
|
|||
description: Producer indicates the controller who triggered
|
||||
the eviction.
|
||||
type: string
|
||||
purgeMode:
|
||||
description: |-
|
||||
PurgeMode represents how to deal with the legacy applications on the
|
||||
cluster from which the application is migrated.
|
||||
Valid options are "Immediately", "Graciously" and "Never".
|
||||
enum:
|
||||
- Immediately
|
||||
- Graciously
|
||||
- Never
|
||||
type: string
|
||||
reason:
|
||||
description: |-
|
||||
Reason contains a programmatic identifier indicating the reason for the eviction.
|
||||
|
|
|
@ -240,6 +240,13 @@ type GracefulEvictionTask struct {
|
|||
// +required
|
||||
FromCluster string `json:"fromCluster"`
|
||||
|
||||
// PurgeMode represents how to deal with the legacy applications on the
|
||||
// cluster from which the application is migrated.
|
||||
// Valid options are "Immediately", "Graciously" and "Never".
|
||||
// +kubebuilder:validation:Enum=Immediately;Graciously;Never
|
||||
// +optional
|
||||
PurgeMode policyv1alpha1.PurgeMode `json:"purgeMode,omitempty"`
|
||||
|
||||
// Replicas indicates the number of replicas should be evicted.
|
||||
// Should be ignored for resource type that doesn't have replica.
|
||||
// +optional
|
||||
|
|
|
@ -6839,6 +6839,13 @@ func schema_pkg_apis_work_v1alpha2_GracefulEvictionTask(ref common.ReferenceCall
|
|||
Format: "",
|
||||
},
|
||||
},
|
||||
"purgeMode": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "PurgeMode represents how to deal with the legacy applications on the cluster from which the application is migrated. Valid options are \"Immediately\", \"Graciously\" and \"Never\".",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"replicas": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Replicas indicates the number of replicas should be evicted. Should be ignored for resource type that doesn't have replica.",
|
||||
|
|
Loading…
Reference in New Issue