Merge pull request #5816 from mszacillo/purgemode-api

feat(stateful failover support) Introduce PurgeMode to GracefulEvictionTask in ResourceBinding
This commit is contained in:
karmada-bot 2024-11-15 09:50:52 +08:00 committed by GitHub
commit 35b7e8f120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 38 additions and 0 deletions

View File

@ -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",

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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.",