-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changes wrt to OTEL Updates * Update unit tests for new otel * Fix mock redeclaration of functions * fix go mod tidy and regenerate mocks * Update metric unit tests * Added Unit tests * Unregister callback changes * Fix RegisterCallback unit tests * Resolving Linting issues * Fix linting issues * Add unit tests for utils * Update utils tests coverage * Added tests for k8sutils * Comment out failing test in github actions * Update otel exporter tests * Add test for StartInformer * Add test for creating kubeclient * Add test for init * Add tests to k8sutils * Updated tests * Updated k8sutils coverage * Update tests * Update tests * Fix linting * Add copyright and minor edits * Renamed file to be consistent * Added copyrights * Updated tests * Fix return statement * Use constants for fields --------- Co-authored-by: Fernando Alfaro Campos <[email protected]> Co-authored-by: Chiman Jain <[email protected]> Co-authored-by: Trevor Dawe <[email protected]>
- Loading branch information
1 parent
4ab5d73
commit 70981d7
Showing
22 changed files
with
1,847 additions
and
1,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,88 @@ | ||
module github.com/dell/csm-metrics-powermax | ||
|
||
go 1.23 | ||
go 1.23.0 | ||
|
||
toolchain go1.23.2 | ||
toolchain go1.23.4 | ||
|
||
require ( | ||
github.com/dell/gopowermax/v2 v2.8.0 | ||
github.com/fsnotify/fsnotify v1.8.0 | ||
github.com/golang/mock v1.6.0 | ||
github.com/google/uuid v1.6.0 | ||
github.com/gorilla/mux v1.8.1 | ||
github.com/sirupsen/logrus v1.9.3 | ||
github.com/spf13/viper v1.10.1 | ||
github.com/spf13/viper v1.19.0 | ||
github.com/stretchr/testify v1.10.0 | ||
go.opentelemetry.io/otel v1.7.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.30.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.30.0 | ||
go.opentelemetry.io/otel/metric v0.30.0 | ||
go.opentelemetry.io/otel/sdk/metric v0.30.0 | ||
google.golang.org/grpc v1.68.0 | ||
k8s.io/api v0.31.3 | ||
k8s.io/apimachinery v0.31.3 | ||
k8s.io/client-go v0.31.3 | ||
go.opentelemetry.io/otel v1.33.0 | ||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.33.0 | ||
go.opentelemetry.io/otel/metric v1.33.0 | ||
go.opentelemetry.io/otel/sdk/metric v1.33.0 | ||
google.golang.org/grpc v1.69.2 | ||
k8s.io/api v0.32.0 | ||
k8s.io/apimachinery v0.32.0 | ||
k8s.io/client-go v0.32.0 | ||
) | ||
|
||
require ( | ||
github.com/cenkalti/backoff/v4 v4.1.3 // indirect | ||
github.com/cenkalti/backoff/v4 v4.3.0 // indirect | ||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
github.com/emicklei/go-restful/v3 v3.11.0 // indirect | ||
github.com/emicklei/go-restful/v3 v3.12.1 // indirect | ||
github.com/fxamacker/cbor/v2 v2.7.0 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.6 // indirect | ||
github.com/go-openapi/jsonreference v0.20.2 // indirect | ||
github.com/go-openapi/swag v0.22.4 // indirect | ||
github.com/go-openapi/jsonpointer v0.21.0 // indirect | ||
github.com/go-openapi/jsonreference v0.21.0 // indirect | ||
github.com/go-openapi/swag v0.23.0 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/google/gnostic-models v0.6.8 // indirect | ||
github.com/google/gnostic-models v0.6.9 // indirect | ||
github.com/google/go-cmp v0.6.0 // indirect | ||
github.com/google/gofuzz v1.2.0 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect | ||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/imdario/mergo v0.3.6 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/magiconair/properties v1.8.6 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/magiconair/properties v1.8.7 // indirect | ||
github.com/mailru/easyjson v0.9.0 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
github.com/pelletier/go-toml v1.9.5 // indirect | ||
github.com/pelletier/go-toml/v2 v2.2.2 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
github.com/spf13/afero v1.8.2 // indirect | ||
github.com/spf13/cast v1.5.0 // indirect | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/sagikazarmark/locafero v0.4.0 // indirect | ||
github.com/sagikazarmark/slog-shim v0.1.0 // indirect | ||
github.com/sourcegraph/conc v0.3.0 // indirect | ||
github.com/spf13/afero v1.11.0 // indirect | ||
github.com/spf13/cast v1.6.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/subosito/gotenv v1.2.0 // indirect | ||
github.com/subosito/gotenv v1.6.0 // indirect | ||
github.com/x448/float16 v0.8.4 // indirect | ||
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.7.0 // indirect | ||
go.opentelemetry.io/otel/sdk v1.7.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.7.0 // indirect | ||
go.opentelemetry.io/proto/otlp v0.16.0 // indirect | ||
go.opentelemetry.io/auto/sdk v1.1.0 // indirect | ||
go.opentelemetry.io/otel/sdk v1.33.0 // indirect | ||
go.opentelemetry.io/otel/trace v1.33.0 // indirect | ||
go.opentelemetry.io/proto/otlp v1.4.0 // indirect | ||
go.uber.org/atomic v1.9.0 // indirect | ||
go.uber.org/multierr v1.9.0 // indirect | ||
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect | ||
golang.org/x/net v0.33.0 // indirect | ||
golang.org/x/oauth2 v0.23.0 // indirect | ||
golang.org/x/oauth2 v0.24.0 // indirect | ||
golang.org/x/sys v0.28.0 // indirect | ||
golang.org/x/term v0.27.0 // indirect | ||
golang.org/x/text v0.21.0 // indirect | ||
golang.org/x/time v0.3.0 // indirect | ||
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect | ||
google.golang.org/protobuf v1.34.2 // indirect | ||
golang.org/x/time v0.7.0 // indirect | ||
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect | ||
google.golang.org/protobuf v1.35.2 // indirect | ||
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/ini.v1 v1.66.4 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/ini.v1 v1.67.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
k8s.io/klog/v2 v2.130.1 // indirect | ||
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect | ||
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect | ||
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect | ||
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect | ||
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect | ||
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect | ||
sigs.k8s.io/yaml v1.4.0 // indirect | ||
) |
Oops, something went wrong.