Skip to content

Commit

Permalink
Merge branch 'main' into TOOLS-2752-conf-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Feb 1, 2024
2 parents 2cd7982 + cfa5d8c commit c71dc73
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "schemas"]
path = schema/schemas
url = https://github.com/aerospike/schemas
url = https://github.com/aerospike/schemas # Tools build fails if ssh is used
ignore = dirty
2 changes: 1 addition & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func newGenerateCmd() *cobra.Command {
return errors.Join(fmt.Errorf("unable to generate config file"), err)
}

asconfig, err := asconfig.NewMapAsConfig(mgmtLibLogger, generatedConf.Version, generatedConf.Conf)
asconfig, err := asconfig.NewMapAsConfig(mgmtLibLogger, generatedConf.Conf)
if err != nil {
return errors.Join(fmt.Errorf("unable to parse the generated conf file"), err)
}
Expand Down
3 changes: 0 additions & 3 deletions conf/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func NewASConfigFromBytes(log logr.Logger, src []byte, srcFmt Format) (*asconfig

cfg, err = asconfig.NewMapAsConfig(
log,
"", // TODO: Remove when management lib merges PR #41
*cmap,
)

Expand All @@ -58,7 +57,6 @@ func loadYAML(log logr.Logger, src []byte) (*asconfig.AsConfig, error) {

c, err := asconfig.NewMapAsConfig(
log,
"", // TODO: Remove when management lib merges PR #41
data,
)

Expand Down Expand Up @@ -94,7 +92,6 @@ func loadAsConf(log logr.Logger, src []byte) (*asconfig.AsConfig, error) {

c, err = asconfig.NewMapAsConfig(
log,
"", // TODO: Remove when management lib merges PR #41
cmap,
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/aerospike/aerospike-client-go/v6 v6.14.1
github.com/aerospike/aerospike-management-lib v1.1.0
github.com/aerospike/aerospike-management-lib v1.2.1-0.20240131023930-e7454a7e0866
github.com/aerospike/tools-common-go v0.0.0-20240201223104-9536b835c556
github.com/bombsimon/logrusr/v4 v4.1.0
github.com/docker/docker v24.0.7+incompatible
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migc
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/aerospike/aerospike-client-go/v6 v6.14.1 h1:1DB9rgbPcCSjR7QS+2CL4MM4atdVcRiWa2AVKO7ydyY=
github.com/aerospike/aerospike-client-go/v6 v6.14.1/go.mod h1:/0Wm81GhMqem+9flWcpazPKoRfjFeG6WrQdXGiMNi0A=
github.com/aerospike/aerospike-management-lib v1.1.0 h1:QchwRIzxxqwnjKHkqbvdDjYl6zHTXiFpmWcN3dSPPuI=
github.com/aerospike/aerospike-management-lib v1.1.0/go.mod h1:NwegUX6or8xmwVMIueBmGTW7lfKlZ9XDQoCuhnQKMCA=
github.com/aerospike/aerospike-management-lib v1.2.1-0.20240131023930-e7454a7e0866 h1:h7rAmIJG/z+pq5hQ2Zi0xHbgG3pNdea/hSH4l5ay9FE=
github.com/aerospike/aerospike-management-lib v1.2.1-0.20240131023930-e7454a7e0866/go.mod h1:NwegUX6or8xmwVMIueBmGTW7lfKlZ9XDQoCuhnQKMCA=
github.com/aerospike/tools-common-go v0.0.0-20240201223104-9536b835c556 h1:JUzUI3n6zZBd3QvGNAdQR6c9ZJOGJc/Uo882uStRKZ0=
github.com/aerospike/tools-common-go v0.0.0-20240201223104-9536b835c556/go.mod h1:vUWN5pPNk1P9fGmW0bvmLCdIV6CqEA8iCyhxb8t3MTE=
github.com/bombsimon/logrusr/v4 v4.1.0 h1:uZNPbwusB0eUXlO8hIUwStE6Lr5bLN6IgYgG+75kuh4=
Expand Down

0 comments on commit c71dc73

Please sign in to comment.