Skip to content

Commit

Permalink
Merge pull request #114 from ispeakc0de/v2.1.1-tracker1
Browse files Browse the repository at this point in the history
chore(crds): updating crds to latest schema
  • Loading branch information
Shubham Chaudhary authored Oct 12, 2021
2 parents 85b3a05 + 52c6cf6 commit f349510
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 27 deletions.
4 changes: 2 additions & 2 deletions controller/collect-data.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GetResultList(clients clients.ClientSets, chaosNamespace string, monitoring

// getExperimentMetricsFromResult derive all the metrics data from the chaosresult and set into resultDetails struct
func (resultDetails *ChaosResultDetails) getExperimentMetricsFromResult(chaosResult *litmuschaosv1alpha1.ChaosResult, clients clients.ClientSets) (bool, error) {
verdict := strings.ToLower(chaosResult.Status.ExperimentStatus.Verdict)
verdict := strings.ToLower(string(chaosResult.Status.ExperimentStatus.Verdict))
probeSuccesPercentage, err := getProbeSuccessPercentage(chaosResult)
if err != nil {
return false, err
Expand All @@ -69,7 +69,7 @@ func (resultDetails *ChaosResultDetails) getExperimentMetricsFromResult(chaosRes
setUID(chaosResult.UID).
setNamespace(chaosResult.Namespace).
setProbeSuccesPercentage(probeSuccesPercentage).
setVerdict(chaosResult.Status.ExperimentStatus.Verdict).
setVerdict(string(chaosResult.Status.ExperimentStatus.Verdict)).
setStartTime(events).
setEndTime(events).
setChaosInjectTime(events).
Expand Down
12 changes: 4 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,17 @@ module github.com/litmuschaos/chaos-exporter
go 1.14

require (
github.com/aws/aws-sdk-go v1.36.27
github.com/gogo/protobuf v1.3.2 // indirect
github.com/litmuschaos/chaos-operator v0.0.0-20210415200829-e74fffdeac4c
github.com/litmuschaos/litmus-go v0.0.0-20210517045408-d6d4797d4d0d
github.com/aws/aws-sdk-go v1.38.59
github.com/litmuschaos/chaos-operator v0.0.0-20211011052622-7e75803234f8
github.com/litmuschaos/litmus-go v0.0.0-20210705063441-babf0c4aa57d
github.com/nxadm/tail v1.4.8 // indirect
github.com/onsi/ginkgo v1.15.0
github.com/onsi/gomega v1.10.5
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.6.0
github.com/sirupsen/logrus v1.7.0
github.com/stretchr/testify v1.5.1 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/text v0.3.5 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/api v0.17.3
k8s.io/api v0.22.2
k8s.io/apimachinery v0.17.3
k8s.io/client-go v12.0.0+incompatible
)
Expand Down
Loading

0 comments on commit f349510

Please sign in to comment.