Skip to content

Commit cc4e42b

Browse files
authored
Merge pull request #46 from sbezverk/csi_core_credentials
refactor provisioner to use new api objects
2 parents 20f0239 + d90d5d0 commit cc4e42b

File tree

1,745 files changed

+92137
-127569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,745 files changed

+92137
-127569
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ FROM alpine
22
LABEL maintainers="Kubernetes Authors"
33
LABEL description="CSI External Provisioner"
44

5-
COPY csi-provisioner csi-provisioner
5+
COPY ./bin/csi-provisioner csi-provisioner
66
ENTRYPOINT ["/csi-provisioner"]

Dockerfile.builder

Lines changed: 0 additions & 8 deletions
This file was deleted.

Gopkg.lock

Lines changed: 31 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242

4343
[[constraint]]
4444
name = "google.golang.org/grpc"
45-
version = "1.7.2"
45+
version = "1.9.2"
4646

4747
[[constraint]]
4848
name = "k8s.io/apimachinery"
49-
branch = "release-1.9"
49+
branch = "master"
5050

5151
[[constraint]]
5252
name = "k8s.io/client-go"
5353
version = "v6.0.0"
5454

5555
[[constraint]]
5656
name = "k8s.io/api"
57-
branch = "release-1.9"
57+
branch = "master"

Makefile

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,30 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
IMAGE = k8scsi/csi-provisioner
16-
VERSION = v0.2.0
15+
IMAGE_NAME = quay.io/k8scsi/csi-provisioner
16+
IMAGE_VERSION = v0.2.0
1717

18-
container: build quick-container
19-
.PHONY: container
18+
ifdef V
19+
TESTARGS = -v -args -alsologtostderr -v 5
20+
else
21+
TESTARGS =
22+
endif
2023

21-
clean:
22-
rm -f external-provisioner
23-
rm -rf _output
24-
.PHONY: clean
25-
26-
format:
27-
gofmt -w -s ./
28-
.PHONY: format
24+
all: csi-provisioner
2925

30-
deps:
31-
dep ensure -update
32-
.PHONY: deps
26+
csi-provisioner:
27+
mkdir -p bin
28+
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o ./bin/csi-provisioner ./cmd/csi-provisioner
3329

34-
quick-container:
35-
sudo ./hack/build-container.sh
36-
@echo ""
37-
@echo "Container quay.io/k8scsi/csi-provisioner:canary created"
38-
.PHONY: quick-container
30+
clean:
31+
rm -rf bin deploy/docker/csi-provisioner
3932

40-
provisioner:
41-
mkdir -p _output
42-
go build -i -o _output/csi-provisioner ./cmd/csi-provisioner/
43-
.PHONY: provisioner
33+
container: csi-provisioner
34+
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) .
4435

45-
all build: provisioner
36+
push: container
37+
docker push $(IMAGE_NAME):$(IMAGE_VERSION)
4638

47-
.PHONY: all build
39+
test:
40+
go test `go list ./... | grep -v 'vendor'` $(TESTARGS)
41+
go vet `go list ./... | grep -v vendor`

0 commit comments

Comments
 (0)