Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit 75d9e33

Browse files
committed
remove DoTerminating from ModuleDeployment CRD
1 parent 2f80074 commit 75d9e33

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

module-controller/api/v1alpha1/moduledeployment_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ type ModuleDeploymentStatus struct {
197197

198198
ReleaseStatus *ReleaseStatus `json:"releaseStatus,omitempty"`
199199

200-
DoTerminating bool `json:"doTerminating,omitempty"`
201-
202200
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
203201
}
204202

module-controller/config/crd/bases/serverless.alipay.com_moduledeployments.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ spec:
216216
type: string
217217
type: object
218218
type: array
219-
doTerminating:
220-
type: boolean
221219
observedGeneration:
222220
format: int64
223221
type: integer

module-controller/internal/controller/moduledeployment_controller.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,6 @@ func (r *ModuleDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Req
9292
return ctrl.Result{}, nil
9393
}
9494

95-
if !moduleDeployment.Status.DoTerminating {
96-
moduleDeployment.Status.DoTerminating = true
97-
if moduleDeployment.Status.ReleaseStatus.Progress != v1alpha1.ModuleDeploymentReleaseProgressTerminating {
98-
moduleDeployment.Status.ReleaseStatus.Progress = v1alpha1.ModuleDeploymentReleaseProgressTerminating
99-
}
100-
return ctrl.Result{}, r.Status().Update(ctx, moduleDeployment)
101-
}
10295
}
10396

10497
if moduleDeployment.Generation == 1 {

0 commit comments

Comments
 (0)