Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes the Flexvolume API. #734

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ endif
-I $(PROTOS_PATH)/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--swagger_out=logtostderr=true:$(PROTOSRC_PATH)/api/server/sdk \
$(PROTOSRC_PATH)/api/api.proto
@echo "Generating grpc protobuf definitions from pkg/flexvolume/flexvolume.proto"
$(PROTOC) -I/usr/local/include -I$(PROTOSRC_PATH) -I$(PROTOS_PATH)/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=plugins=grpc:. $(PROTOSRC_PATH)/pkg/flexvolume/flexvolume.proto
$(PROTOC) -I/usr/local/include -I$(PROTOSRC_PATH) -I$(PROTOS_PATH)/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:. $(PROTOSRC_PATH)/pkg/flexvolume/flexvolume.proto
@echo "Generating protobuf definitions from pkg/jsonpb/testing/testing.proto"
$(PROTOC) -I $(PROTOSRC_PATH) $(PROTOSRC_PATH)/pkg/jsonpb/testing/testing.proto --go_out=plugins=grpc:.
@echo "Updating SDK versions"
Expand Down Expand Up @@ -293,15 +290,6 @@ launch-local-btrfs: install
sudo bash -x etc/btrfs/init.sh
sudo $(shell which osd) -d -f etc/config/config_btrfs.yaml

install-flexvolume:
go install -a -tags "$(TAGS)" github.com/libopenstorage/openstorage/pkg/flexvolume github.com/libopenstorage/openstorage/pkg/flexvolume/cmd/flexvolume

install-flexvolume-plugin: install-flexvolume
sudo rm -rf /usr/libexec/kubernetes/kubelet/volume/exec-plugins/openstorage~openstorage
sudo mkdir -p /usr/libexec/kubernetes/kubelet/volume/exec-plugins/openstorage~openstorage
sudo chmod 777 /usr/libexec/kubernetes/kubelet/volume/exec-plugins/openstorage~openstorage
cp $(GOPATH)/bin/flexvolume /usr/libexec/kubernetes/kubelet/volume/exec-plugins/openstorage~openstorage/openstorage

clean: $(OSDSANITY)-clean
go clean -i $(PKGS)
packr clean
Expand Down Expand Up @@ -331,7 +319,6 @@ clean: $(OSDSANITY)-clean
docker-build-osd \
launch \
launch-local-btrfs \
install-flexvolume-plugin \
$(OSDSANITY)-install \
$(OSDSANITY)-clean \
clean \
Expand Down
159 changes: 0 additions & 159 deletions api/flexvolume/flexvolume.go

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/osd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
"github.com/codegangsta/cli"
"github.com/docker/docker/pkg/reexec"
"github.com/libopenstorage/openstorage/api"
"github.com/libopenstorage/openstorage/api/flexvolume"
"github.com/libopenstorage/openstorage/api/server"
"github.com/libopenstorage/openstorage/api/server/sdk"
osdcli "github.com/libopenstorage/openstorage/cli"
Expand Down Expand Up @@ -354,10 +353,6 @@ func start(c *cli.Context) error {
return fmt.Errorf("Invalid OSD config file: Default Driver specified but driver not initialized")
}

if err := flexvolume.StartFlexVolumeAPI(config.FlexVolumePort, cfg.Osd.ClusterConfig.DefaultDriver); err != nil {
return fmt.Errorf("Unable to start flexvolume API: %v", err)
}

// Start the graph drivers.
for d := range cfg.Osd.GraphDrivers {
logrus.Infof("Starting graph driver: %v", d)
Expand Down
2 changes: 0 additions & 2 deletions hack/git-add-proto-generated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
# Simple script to add generated files from api.proto into their own commit
git add api/api.pb.g* \
api/server/sdk/api/api.swagger.json \
pkg/flexvolume/flexvolume.pb.go \
pkg/flexvolume/flexvolume.pb.gw.go \
pkg/jsonpb/testing/testing.pb.go
60 changes: 0 additions & 60 deletions pkg/flexvolume/api_server.go

This file was deleted.

109 changes: 0 additions & 109 deletions pkg/flexvolume/client.go

This file was deleted.

Loading