1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00

19 Commits

Author SHA1 Message Date
Kaushal M
755eff7f5f build: Use random build id
Using Git hash leaves all built binaries (glusterd2 & glustercli) with
the same build-id, which causes rpmbuild to fail.
2018-12-11 13:56:26 +05:30
Madhu Rajanna
0190411220 Enable Rest Authentication by default
if a restauth key is missing in config
file or if restauth is set to true,
glusterd2 will do token authentication.

Authentication can be disabled by
by setting restauth key in the configuration
to false.

updated test cases to use authentication
if auth file is present

added default rest authentication in glustercli

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-10 13:52:48 +05:30
Aravinda VK
049ba9f8ed config: removed default configuration file
To view the default values run `glusterd2 --help`

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-24 19:05:25 +05:30
Michael Adam
dc87500993 scripts: fix shellcheck warnings in build.sh
SC2086: Double quote to prevent globbing and word splitting.
SC2046: Quote this to prevent word splitting.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Kaushal M
c5071db798 Selective fast builds 2018-02-15 17:22:29 +05:30
Kaushal M
f073be279a Use go build -i 2017-11-13 20:48:11 +05:30
Kaushal M
3564440911 Merge branch 'master' into refactor-pkgs-mergetest 2017-11-13 15:48:44 +05:30
Kaushal M
3e314e1a93 make dist/dist-vendor targets and other make changes
make dist creates source tarballs of the GD2 source directory.
make dist-vendor creates tarballs including the vendor directory.

The generated tarballs contain a VERSION file, which is used by the
build script to set proper versions, gitsha and build-ids when building
GD2 from tarballs.
2017-11-07 18:21:41 +05:30
Kaushal M
31d7f301a0 Update build for new binary packages
Also, use a common build script for both glusterd2 and glustercli.
2017-11-02 21:52:20 +05:30
Prashanth Pai
1f66311d9f Remove mgmt
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2017-10-28 17:27:46 +05:30
Kaushal M
105b91273f Improve Makefile build and install targets 2017-10-10 20:00:10 +05:30
Prashanth Pai
fbd8bfb376 Explicitly add git SHA and other info in version output
...and move version information to its own package

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2017-07-19 16:59:13 +05:30
Kaushal M
68caadba76 Add a build-id to built binary 2017-07-03 16:49:42 +05:30
Kaushal M
6206f4f3ea Merge branch 'master' into plugins 2017-05-11 12:39:35 +05:30
Kaushal M
d066b8b631 Make mgmt build without libvirt and augeas 2017-05-04 19:39:10 +05:30
Aravinda VK
6d52427f92 plugins: Glusterd2 Plugins Infrastructure
This is initial code which enables creation of plugins for glusterd2.

Plugin interface is

type GlusterdPlugin interface{
    Name() string
    SunRPCProgram() sunrpc.Program
    RestRoutes() route.Routes
    RegisterStepFuncs()
}

Plugin can register sunrpc procedure, REST route and can register step
functions required for Transaction(Transaction APIs are not stable
yet)

Included hello plugin, which plugs following REST routes into
glusterd2 REST server.

GET  /v1/hello
POST /v1/hello

To add new Plugin,

- Create a plugin package and add to import and plugin list in the
  file `$SRC/plugins/plugins.go`
- Create a struct and implement the above interfaces

To disable building plugins,

    PLUGINS=no make

Closes #131
Signed-off-by: Aravinda VK avishwan@redhat.com
2017-04-11 16:44:22 +05:30
Prashanth Pai
d0a69688dc Bump up minimum go version required to 1.6
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2016-11-28 11:45:45 +05:30
Mohammed Rafi KC
0a6eac24e3 Set GO15VENDOREXPERIMENT to enable native vendor support
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2016-11-18 12:52:42 +05:30
Kaushal M
d444d1ec3c Add scripts to build and release GD2
- The Makefile has been updated to use these scripts to build, install
  and release
- Run `make release` to create build, create and sign a release archive,
  useful for releasing on Github.
2016-10-18 18:41:59 +05:30