Introduce PurgeMode to GracefulEvictionTask in ResourceBinding
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
This commit is contained in:
parent
2f8047673e
commit
9b92cc4d51
|
@ -20054,6 +20054,10 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": ""
|
"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": {
|
"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.",
|
"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",
|
"type": "string",
|
||||||
|
|
|
@ -381,6 +381,16 @@ spec:
|
||||||
description: Producer indicates the controller who triggered
|
description: Producer indicates the controller who triggered
|
||||||
the eviction.
|
the eviction.
|
||||||
type: string
|
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:
|
reason:
|
||||||
description: |-
|
description: |-
|
||||||
Reason contains a programmatic identifier indicating the reason for the eviction.
|
Reason contains a programmatic identifier indicating the reason for the eviction.
|
||||||
|
|
|
@ -381,6 +381,16 @@ spec:
|
||||||
description: Producer indicates the controller who triggered
|
description: Producer indicates the controller who triggered
|
||||||
the eviction.
|
the eviction.
|
||||||
type: string
|
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:
|
reason:
|
||||||
description: |-
|
description: |-
|
||||||
Reason contains a programmatic identifier indicating the reason for the eviction.
|
Reason contains a programmatic identifier indicating the reason for the eviction.
|
||||||
|
|
|
@ -240,6 +240,13 @@ type GracefulEvictionTask struct {
|
||||||
// +required
|
// +required
|
||||||
FromCluster string `json:"fromCluster"`
|
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.
|
// Replicas indicates the number of replicas should be evicted.
|
||||||
// Should be ignored for resource type that doesn't have replica.
|
// Should be ignored for resource type that doesn't have replica.
|
||||||
// +optional
|
// +optional
|
||||||
|
|
|
@ -6832,6 +6832,13 @@ func schema_pkg_apis_work_v1alpha2_GracefulEvictionTask(ref common.ReferenceCall
|
||||||
Format: "",
|
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": {
|
"replicas": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Replicas indicates the number of replicas should be evicted. Should be ignored for resource type that doesn't have replica.",
|
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