Skip to content

Commit

Permalink
Merge pull request #1 from vladimirvivien/transfer-hostpath
Browse files Browse the repository at this point in the history
Moves hostpath driver from kubernetes-csi/drivers monorepo
  • Loading branch information
saad-ali authored Jan 23, 2019
2 parents 64d37cf + 23656aa commit 3b9819c
Show file tree
Hide file tree
Showing 656 changed files with 511,158 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_output
.Makefile.swp
196 changes: 196 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"

[prune]
go-tests = true
unused-packages = true

[[constraint]]
name = "github.com/container-storage-interface/spec"
version = "1.0.0"

[[constraint]]
branch = "master"
name = "github.com/golang/glog"

[[override]]
revision = "5db89f0ca68677abc5eefce8f2a0a772c98ba52d"
name = "github.com/docker/distribution"

[[constraint]]
name = "github.com/pborman/uuid"
version = "1.1.0"

[[constraint]]
branch = "master"
name = "golang.org/x/net"

[[constraint]]
name = "google.golang.org/grpc"
version = "1.10.0"

[[constraint]]
name = "k8s.io/kubernetes"
version = "v1.12.0"

[[override]]
version = "kubernetes-1.12.0"
name = "k8s.io/api"

[[override]]
version = "kubernetes-1.12.0"
name = "k8s.io/apiserver"

[[override]]
name = "github.com/golang/protobuf"
version = "v1.1.0"

[[override]]
name = "github.com/json-iterator/go"
version = "1.1.4"

[[override]]
name = "gopkg.in/square/go-jose.v2"
version = "2.1.7"
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

REGISTRY_NAME=quay.io/k8scsi
IMAGE_NAME=hostpathplugin
IMAGE_VERSION=canary
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)
REV=$(shell git describe --long --tags --dirty)

.PHONY: all hostpath clean hostpath-container

all: hostpath

test:
go test github.com/kubernetes-csi/csi-driver-host-path/pkg/... -cover
go vet github.com/kubernetes-csi/csi-driver-host-path/pkg/...
hostpath:
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X github.com/kubernetes-csi/csi-driver-host-path/pkg/hostpath.vendorVersion=$(REV) -extldflags "-static"' -o _output/hostpathplugin ./cmd/hostpathplugin
hostpath-container: hostpath
docker build -t $(IMAGE_TAG) -f ./cmd/Dockerfile .
push: hostpath-container
docker push $(IMAGE_TAG)
clean:
go clean -r -x
-rm -rf _output
Loading

0 comments on commit 3b9819c

Please sign in to comment.