8
8
"strings"
9
9
"time"
10
10
11
- chaosTypes "github.com/litmuschaos/chaos-operator/api/litmuschaos/v1alpha1"
12
- "github.com/litmuschaos/litmus/chaoscenter/graphql/server/pkg/probe"
13
-
14
11
"github.com/litmuschaos/litmus/chaoscenter/graphql/server/pkg/chaos_infrastructure"
15
12
16
13
"github.com/litmuschaos/litmus/chaoscenter/graphql/server/pkg/database/mongodb"
@@ -29,7 +26,7 @@ import (
29
26
"github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
30
27
"github.com/ghodss/yaml"
31
28
"github.com/google/uuid"
32
-
29
+ chaosTypes "github.com/litmuschaos/chaos-operator/api/litmuschaos/v1alpha1"
33
30
scheduleTypes "github.com/litmuschaos/chaos-scheduler/api/litmuschaos/v1alpha1"
34
31
"go.mongodb.org/mongo-driver/bson"
35
32
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -150,12 +147,6 @@ func (c *chaosExperimentService) ProcessExperimentCreation(ctx context.Context,
150
147
weightages []* dbChaosExperiment.WeightagesInput
151
148
revision []dbChaosExperiment.ExperimentRevision
152
149
)
153
-
154
- probes , err := probe .ParseProbesFromManifest (wfType , input .ExperimentManifest )
155
- if err != nil {
156
- return err
157
- }
158
-
159
150
if input .Weightages != nil {
160
151
//TODO: Once we make the new chaos terminology change in APIs, then we can we the copier instead of for loop
161
152
for _ , v := range input .Weightages {
@@ -173,7 +164,6 @@ func (c *chaosExperimentService) ProcessExperimentCreation(ctx context.Context,
173
164
ExperimentManifest : input .ExperimentManifest ,
174
165
UpdatedAt : timeNow ,
175
166
Weightages : weightages ,
176
- Probes : probes ,
177
167
})
178
168
179
169
newChaosExperiment := dbChaosExperiment.ChaosExperimentRequest {
@@ -199,7 +189,7 @@ func (c *chaosExperimentService) ProcessExperimentCreation(ctx context.Context,
199
189
RecentExperimentRunDetails : []dbChaosExperiment.ExperimentRunDetail {},
200
190
}
201
191
202
- err = c .chaosExperimentOperator .InsertChaosExperiment (ctx , newChaosExperiment )
192
+ err : = c .chaosExperimentOperator .InsertChaosExperiment (ctx , newChaosExperiment )
203
193
if err != nil {
204
194
return err
205
195
}
0 commit comments