Skip to content

Commit cfa5fdc

Browse files
authored
Add QdrantClusterRestore Pending phase (#157)
1 parent 4141599 commit cfa5fdc

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

api/v1/qdrantclusterrestore_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ const (
4444
RestoreSkipped RestorePhase = "Skipped"
4545
RestoreFailed RestorePhase = "Failed"
4646
RestoreSucceeded RestorePhase = "Succeeded"
47+
RestorePending RestorePhase = "Pending"
4748
)
4849

4950
// QdrantClusterRestoreStatus defines the observed state of QdrantClusterRestore
5051
// +kubebuilder:pruning:PreserveUnknownFields
5152
type QdrantClusterRestoreStatus struct {
5253
// Phase is the current phase of the restore
53-
// +kubebuilder:validation:Enum=Running;Skipped;Failed;Succeeded
54+
// +kubebuilder:validation:Enum=Running;Skipped;Failed;Succeeded;Pending
5455
Phase RestorePhase `json:"phase,omitempty"`
5556
// Message from the operator in case of failures, like snapshot not found
5657
// +optional

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusterrestores.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ spec:
106106
- Skipped
107107
- Failed
108108
- Succeeded
109+
- Pending
109110
type: string
110111
type: object
111112
x-kubernetes-preserve-unknown-fields: true

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantclusters.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,6 @@ spec:
584584
Additional policies may be added in the future.
585585
Clients making eviction decisions should disallow eviction of unhealthy pods
586586
if they encounter an unrecognized policy in this field.
587-
588-
This field is beta-level. The eviction API uses this field when
589-
the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).
590587
type: string
591588
type: object
592589
rebalanceStrategy:
@@ -1017,7 +1014,6 @@ spec:
10171014
- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
10181015
10191016
If this value is nil, the behavior is equivalent to the Honor policy.
1020-
This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
10211017
type: string
10221018
nodeTaintsPolicy:
10231019
description: |-
@@ -1028,7 +1024,6 @@ spec:
10281024
- Ignore: node taints are ignored. All nodes are included.
10291025
10301026
If this value is nil, the behavior is equivalent to the Ignore policy.
1031-
This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
10321027
type: string
10331028
topologyKey:
10341029
description: |-

crds/qdrant.io_qdrantclusterrestores.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ spec:
105105
- Skipped
106106
- Failed
107107
- Succeeded
108+
- Pending
108109
type: string
109110
type: object
110111
x-kubernetes-preserve-unknown-fields: true

crds/qdrant.io_qdrantclusters.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,6 @@ spec:
583583
Additional policies may be added in the future.
584584
Clients making eviction decisions should disallow eviction of unhealthy pods
585585
if they encounter an unrecognized policy in this field.
586-
587-
This field is beta-level. The eviction API uses this field when
588-
the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).
589586
type: string
590587
type: object
591588
rebalanceStrategy:
@@ -1016,7 +1013,6 @@ spec:
10161013
- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
10171014
10181015
If this value is nil, the behavior is equivalent to the Honor policy.
1019-
This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
10201016
type: string
10211017
nodeTaintsPolicy:
10221018
description: |-
@@ -1027,7 +1023,6 @@ spec:
10271023
- Ignore: node taints are ignored. All nodes are included.
10281024
10291025
If this value is nil, the behavior is equivalent to the Ignore policy.
1030-
This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
10311026
type: string
10321027
topologyKey:
10331028
description: |-

docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,7 @@ _Appears in:_
12171217
| `Skipped` | |
12181218
| `Failed` | |
12191219
| `Succeeded` | |
1220+
| `Pending` | |
12201221

12211222

12221223
#### RestoreSource

0 commit comments

Comments
 (0)