Skip to content

Commit

Permalink
removing common/ingressgateway (#15966)
Browse files Browse the repository at this point in the history
* removing common/ingressgateway

* updated go.mod

* fixing goimports
  • Loading branch information
dariusztutaj authored Nov 3, 2022
1 parent ca7104b commit 7fc0e22
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 281 deletions.
3 changes: 1 addition & 2 deletions common/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.18
require (
github.com/avast/retry-go v2.2.0+incompatible
github.com/stretchr/testify v1.7.0
golang.org/x/net v0.0.0-20220728030405-41545e8bf201
golang.org/x/tools v0.1.12
k8s.io/code-generator v0.18.6
)
Expand All @@ -27,6 +26,7 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
golang.org/x/net v0.0.0-20220728030405-41545e8bf201 // indirect
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
Expand All @@ -38,7 +38,6 @@ require (
)

replace (
golang.org/x/crypto => golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
golang.org/x/net => golang.org/x/net v0.0.0-20220728030405-41545e8bf201
golang.org/x/text => golang.org/x/text v0.3.7
golang.org/x/tools => golang.org/x/tools v0.1.12
Expand Down
4 changes: 3 additions & 1 deletion common/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20220728030405-41545e8bf201 h1:bvOltf3SADAfG05iRml8lAB3qjoEX5RCyN4K6G5v3N0=
golang.org/x/net v0.0.0-20220728030405-41545e8bf201/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
3 changes: 0 additions & 3 deletions common/ingressgateway/doc.go

This file was deleted.

109 changes: 0 additions & 109 deletions common/ingressgateway/ingressgateway.go

This file was deleted.

164 changes: 0 additions & 164 deletions common/ingressgateway/ingressgateway_test.go

This file was deleted.

6 changes: 4 additions & 2 deletions common/logging/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func (l *Logger) WithContext() *zap.SugaredLogger {
return l.zapLogger.With(zap.Namespace("context"))
}

/**
/*
*
By default the Fatal Error log will be in json format, because it's production default.
*/
func LogFatalError(format string, args ...interface{}) error {
Expand All @@ -64,7 +65,8 @@ func LogFatalError(format string, args ...interface{}) error {
return nil
}

/**
/*
*
This function initialize klog which is used in k8s/go-client
*/
func InitKlog(log *Logger, level Level) error {
Expand Down

0 comments on commit 7fc0e22

Please sign in to comment.