forked from uswitch/sqs-autoscaler-controller
-
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.
[ Razorpay SQS Autoscaler ] Trivy, EOL Languages, Dependabot Fixes (#2)
- Loading branch information
1 parent
6523e92
commit e38a4ca
Showing
3,204 changed files
with
670 additions
and
2,076,006 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module github.com/razorpay/sqs-autoscaler-controller | ||
|
||
go 1.20 | ||
|
||
require ( | ||
github.com/alecthomas/kingpin/v2 v2.3.2 | ||
github.com/aws/aws-sdk-go v1.44.219 | ||
github.com/pubnub/go-metrics-statsd v0.0.0-20170124014003-7da61f429d6b | ||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 | ||
github.com/sirupsen/logrus v1.9.0 | ||
github.com/vmg/backoff v1.0.0 | ||
k8s.io/api v0.26.2 | ||
k8s.io/apiextensions-apiserver v0.26.2 | ||
k8s.io/apimachinery v0.26.2 | ||
k8s.io/client-go v0.26.2 | ||
) | ||
|
||
require ( | ||
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/emicklei/go-restful/v3 v3.9.0 // indirect | ||
github.com/go-logr/logr v1.2.3 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.5 // indirect | ||
github.com/go-openapi/jsonreference v0.20.0 // indirect | ||
github.com/go-openapi/swag v0.19.14 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/gnostic v0.5.7-v3refs // indirect | ||
github.com/google/go-cmp v0.5.9 // indirect | ||
github.com/google/gofuzz v1.1.0 // indirect | ||
github.com/imdario/mergo v0.3.6 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/mailru/easyjson v0.7.6 // 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/spf13/pflag v1.0.5 // indirect | ||
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect | ||
golang.org/x/net v0.7.0 // indirect | ||
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect | ||
golang.org/x/sys v0.5.0 // indirect | ||
golang.org/x/term v0.5.0 // indirect | ||
golang.org/x/text v0.7.0 // indirect | ||
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/protobuf v1.28.1 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
k8s.io/klog/v2 v2.80.1 // indirect | ||
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect | ||
k8s.io/utils v0.0.0-20221107191617-1a15be271d1d // indirect | ||
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect | ||
sigs.k8s.io/yaml v1.3.0 // indirect | ||
) |
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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package crd | ||
|
||
import "k8s.io/apimachinery/pkg/runtime" | ||
|
||
func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { | ||
*out = *in | ||
out.Threshold = in.Threshold | ||
out.Amount = in.Amount | ||
} | ||
|
||
func (in *AutoScalerSpec) DeepCopyInto(out *AutoScalerSpec) { | ||
*out = *in | ||
out.Queue = in.Queue | ||
out.Deployment = in.Deployment | ||
out.MinPods = in.MinPods | ||
out.MaxPods = in.MaxPods | ||
in.ScaleUp.DeepCopyInto(&out.ScaleUp) | ||
in.ScaleDown.DeepCopyInto(&out.ScaleDown) | ||
} | ||
|
||
func (in *SqsAutoScaler) DeepCopyInto(out *SqsAutoScaler) { | ||
*out = *in | ||
out.TypeMeta = in.TypeMeta | ||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||
in.Spec.DeepCopyInto(&out.Spec) | ||
} | ||
|
||
func (in *SqsAutoScaler) DeepCopy() *SqsAutoScaler { | ||
if in == nil { | ||
return nil | ||
} | ||
out := new(SqsAutoScaler) | ||
in.DeepCopyInto(out) | ||
return out | ||
} | ||
|
||
func (in *SqsAutoScaler) DeepCopyObject() runtime.Object { | ||
if c := in.DeepCopy(); c != nil { | ||
return c | ||
} | ||
return nil | ||
} | ||
|
||
func (in *SqsAutoScalerList) DeepCopyInto(out *SqsAutoScalerList) { | ||
*out = *in | ||
out.TypeMeta = in.TypeMeta | ||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) | ||
if in.Items != nil { | ||
in, out := &in.Items, &out.Items | ||
*out = make([]SqsAutoScaler, len(*in)) | ||
for i := range *in { | ||
(*in)[i].DeepCopyInto(&(*out)[i]) | ||
} | ||
} | ||
} | ||
|
||
func (in *SqsAutoScalerList) DeepCopy() *SqsAutoScalerList { | ||
if in == nil { | ||
return nil | ||
} | ||
out := new(SqsAutoScalerList) | ||
in.DeepCopyInto(out) | ||
return out | ||
} | ||
|
||
func (in *SqsAutoScalerList) DeepCopyObject() runtime.Object { | ||
if c := in.DeepCopy(); c != nil { | ||
return c | ||
} | ||
return nil | ||
} |
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
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
Oops, something went wrong.