Skip to content

Commit 04f2f40

Browse files
author
Wei
authored
Merge pull request #192 from jwcesign/main
chore: cleanup duplicated nodeclass status
2 parents 1c712f4 + f89295e commit 04f2f40

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

pkg/apis/v1alpha1/ecsnodeclass_status.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
const (
2525
ConditionTypeVSwitchesReady = "VSwitchesReady"
2626
ConditionTypeSecurityGroupsReady = "SecurityGroupsReady"
27-
ConditionTypeInstanceRAMReady = "InstanceRAMReady"
2827
ConditionTypeImagesReady = "ImagesReady"
2928
)
3029

@@ -84,7 +83,6 @@ func (in *ECSNodeClass) StatusConditions() status.ConditionSet {
8483
return status.NewReadyConditions(
8584
ConditionTypeVSwitchesReady,
8685
ConditionTypeSecurityGroupsReady,
87-
ConditionTypeInstanceRAMReady,
8886
ConditionTypeImagesReady,
8987
).For(in)
9088
}

pkg/controllers/nodeclass/status/controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ func (c *Controller) Reconcile(ctx context.Context, nodeClass *v1alpha1.ECSNodeC
7878
}
7979
stored := nodeClass.DeepCopy()
8080

81-
// TODO: implement different conditions setup
82-
nodeClass.StatusConditions().SetTrue(v1alpha1.ConditionTypeInstanceRAMReady)
83-
8481
var results []reconcile.Result
8582
var errs error
8683
for _, reconciler := range []nodeClassStatusReconciler{

0 commit comments

Comments
 (0)