Skip to content

Commit

Permalink
Merge pull request #100 from cybozu-go/change-etcd-tls-config
Browse files Browse the repository at this point in the history
change etcd TLS config
  • Loading branch information
ymmt2005 authored Sep 3, 2018
2 parents 5e269ff + ad3ab2c commit 5430842
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
working_directory: /go/src/github.com/cybozu-go/sabakan
steps:
- checkout
# TODO use go mod
- run: go get -v -t -d ./...
- run: (cd /go/src/github.com/coreos/etcd; git checkout v3.3.9)
- run: go get -v -t -d ./...
- run: test -z "$(goimports -d . | tee /dev/stderr)"
- run: golint -set_exit_status ./...
Expand Down
6 changes: 3 additions & 3 deletions cmd/sabakan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func main() {
cfg.Etcd.Timeout = *flagEtcdTimeout
cfg.Etcd.Username = *flagEtcdUsername
cfg.Etcd.Password = *flagEtcdPassword
cfg.Etcd.TLSCA = *flagEtcdTLSCA
cfg.Etcd.TLSCert = *flagEtcdTLSCert
cfg.Etcd.TLSKey = *flagEtcdTLSKey
cfg.Etcd.TLSCAFile = *flagEtcdTLSCA
cfg.Etcd.TLSCertFile = *flagEtcdTLSCert
cfg.Etcd.TLSKeyFile = *flagEtcdTLSKey
} else {
f, err := os.Open(*flagConfigFile)
if err != nil {
Expand Down
9 changes: 8 additions & 1 deletion mtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ $(OUTPUT)/etcd $(OUTPUT)/etcdctl: $(ETCD_ARCHIVE)

$(OUTPUT)/sabakan $(OUTPUT)/sabactl:
mkdir -p $(OUTPUT)
cd ..; go get ./... && GOBIN=$(realpath $(OUTPUT)) go install ./cmd/$(notdir $@)
cd ..; \
go get -d ./... && \
cd $$GOPATH/src/github.com/coreos/etcd && \
git fetch origin && \
git checkout v3.3.9
cd ..; \
go get -d ./... && \
GOBIN=$(realpath $(OUTPUT)) go install ./cmd/$(notdir $@)

$(OUTPUT)/cluster.yml: cluster.yml
mkdir -p $(OUTPUT)
Expand Down

0 comments on commit 5430842

Please sign in to comment.