Skip to content

Commit

Permalink
fix: add resource scale chaos to dashboard collector and schedule col…
Browse files Browse the repository at this point in the history
…lector
  • Loading branch information
jeroenmol-form3 committed Dec 13, 2023
1 parent 5a6e917 commit 9efddf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/dashboard/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ func convertInnerObjectToExperiment(obj v1alpha1.InnerObject) (*core.Experiment,
archive.Action = ""
case *v1alpha1.RollingRestartChaos:
archive.Action = ""
case *v1alpha1.ResourceScaleChaos:
archive.Action = ""
default:
return nil, errors.New("unsupported chaos type " + archive.Kind)
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/dashboard/collector/schedule_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ func (r *ScheduleCollector) setUnarchivedSchedule(req ctrl.Request, schedule v1a
archive.Action = ""
case v1alpha1.ScheduleTypeRollingRestartChaos:
archive.Action = ""
case v1alpha1.ScheduleTypeResourceScaleChaos:
archive.Action = ""
default:
return errors.New("unsupported chaos type " + string(schedule.Spec.Type))
}
Expand Down

0 comments on commit 9efddf5

Please sign in to comment.