Skip to content

Commit

Permalink
Merge pull request bank-vaults#1884 from banzaicloud/update-sdk
Browse files Browse the repository at this point in the history
Update sdk to use the code from the new module
  • Loading branch information
sagikazarmark authored Apr 25, 2023
2 parents 7482b73 + 3d8c7eb commit 5b1967a
Show file tree
Hide file tree
Showing 27 changed files with 301 additions and 1,891 deletions.
2 changes: 1 addition & 1 deletion cmd/bank-vaults/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"strings"
"time"

"github.com/bank-vaults/vault-sdk/vault"
"github.com/fsnotify/fsnotify"
"github.com/jpillora/backoff"
"github.com/sirupsen/logrus"
Expand All @@ -29,7 +30,6 @@ import (

"github.com/banzaicloud/bank-vaults/internal/configuration"
internalVault "github.com/banzaicloud/bank-vaults/internal/vault"
"github.com/banzaicloud/bank-vaults/pkg/sdk/vault"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/bank-vaults/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
package main

import (
"github.com/bank-vaults/vault-sdk/vault"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

internalVault "github.com/banzaicloud/bank-vaults/internal/vault"
"github.com/banzaicloud/bank-vaults/pkg/sdk/vault"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/bank-vaults/unseal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"os"
"time"

"github.com/bank-vaults/vault-sdk/vault"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

internalVault "github.com/banzaicloud/bank-vaults/internal/vault"
"github.com/banzaicloud/bank-vaults/pkg/sdk/vault"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"log"
"os"

database "github.com/banzaicloud/bank-vaults/pkg/sdk/db"
"github.com/banzaicloud/bank-vaults/pkg/sdk/vault"
database "github.com/bank-vaults/vault-sdk/db"
"github.com/bank-vaults/vault-sdk/vault"
"github.com/hashicorp/vault/api"
"github.com/sirupsen/logrus"
logrusadapter "logur.dev/adapter/logrus"
Expand Down
2 changes: 1 addition & 1 deletion cmd/vault-env/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"time"

"emperror.dev/errors"
"github.com/bank-vaults/vault-sdk/vault"
vaultapi "github.com/hashicorp/vault/api"
"github.com/sirupsen/logrus"
logrus_syslog "github.com/sirupsen/logrus/hooks/syslog"
Expand All @@ -34,7 +35,6 @@ import (
logrusadapter "logur.dev/adapter/logrus"

"github.com/banzaicloud/bank-vaults/internal/injector"
"github.com/banzaicloud/bank-vaults/pkg/sdk/vault"
)

// The special value for VAULT_ENV which marks that the login token needs to be passed through to the application
Expand Down
23 changes: 5 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/aliyun/alibaba-cloud-sdk-go v1.61.193
github.com/aliyun/aliyun-oss-go-sdk v2.0.4+incompatible
github.com/aws/aws-sdk-go v1.44.122
github.com/aws/aws-sdk-go v1.44.248
github.com/banzaicloud/bank-vaults/pkg/sdk v0.0.0
github.com/cisco-open/k8s-objectmatcher v1.9.0
github.com/cristalhq/jwt/v3 v3.0.14
Expand All @@ -25,7 +25,7 @@ require (
github.com/hashicorp/go-uuid v1.0.2
github.com/hashicorp/go-version v1.6.0
github.com/hashicorp/hcl v1.0.0
github.com/hashicorp/vault/api v1.8.2
github.com/hashicorp/vault/api v1.9.1
github.com/hashicorp/vault/sdk v0.6.0
github.com/imdario/mergo v0.3.12
github.com/jpillora/backoff v1.0.0
Expand All @@ -37,7 +37,7 @@ require (
github.com/prometheus/client_golang v1.15.0
github.com/sirupsen/logrus v1.8.1
github.com/slok/kubewebhook/v2 v2.1.0
github.com/spf13/cast v1.4.1
github.com/spf13/cast v1.5.0
github.com/spf13/cobra v1.3.0
github.com/spf13/viper v1.10.1
github.com/stretchr/testify v1.8.2
Expand Down Expand Up @@ -78,9 +78,8 @@ require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/armon/go-metrics v0.3.10 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
github.com/bank-vaults/vault-sdk v0.9.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
Expand All @@ -94,7 +93,6 @@ require (
github.com/docker/docker-credential-helpers v0.6.4 // indirect
github.com/emicklei/go-restful v2.16.0+incompatible // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect
github.com/go-logr/logr v0.4.0 // indirect
Expand All @@ -108,7 +106,6 @@ require (
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/wire v0.3.0 // indirect
Expand All @@ -119,41 +116,31 @@ require (
github.com/gruntwork-io/go-commons v0.8.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.0.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.5 // indirect
github.com/hashicorp/go-retryablehttp v0.6.6 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.1 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.6 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/leosayous21/go-azure-msi v0.0.0-20210509193526-19353bedcfc8 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mailru/easyjson v0.7.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/reflectwalk v1.0.0 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pquerna/otp v1.2.0 // indirect
Expand All @@ -174,7 +161,7 @@ require (
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
golang.org/x/crypto v0.3.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sync v0.1.0 // indirect
Expand Down
Loading

0 comments on commit 5b1967a

Please sign in to comment.