Skip to content

Commit 56fb54b

Browse files
committed
Initial commit
0 parents  commit 56fb54b

File tree

21,388 files changed

+10225449
-0
lines changed

Some content is hidden

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

21,388 files changed

+10225449
-0
lines changed

Diff for: .gitignore

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# OSX leaves these everywhere on SMB shares
2+
._*
3+
4+
# OSX trash
5+
.DS_Store
6+
7+
# Eclipse files
8+
.classpath
9+
.project
10+
.settings/**
11+
12+
# Files generated by JetBrains IDEs, e.g. IntelliJ IDEA
13+
.idea/
14+
*.iml
15+
16+
# Vscode files
17+
.vscode
18+
19+
# This is where the result of the go build goes
20+
/output*/
21+
/_output*/
22+
/_output
23+
24+
# Emacs save files
25+
*~
26+
\#*\#
27+
.\#*
28+
29+
# Vim-related files
30+
[._]*.s[a-w][a-z]
31+
[._]s[a-w][a-z]
32+
*.un~
33+
Session.vim
34+
.netrwhist
35+
36+
# cscope-related files
37+
cscope.*
38+
39+
# Go test binaries
40+
*.test
41+
42+
# JUnit test output from ginkgo e2e tests
43+
/junit*.xml
44+
45+
# Mercurial files
46+
**/.hg
47+
**/.hg*
48+
49+
# Vagrant
50+
.vagrant
51+
52+
.tags*
53+
54+
# Test artifacts produced by Jenkins jobs
55+
/_artifacts/
56+
57+
# Go dependencies installed on Jenkins
58+
/_gopath/
59+
60+
# Config directories created by gcloud and gsutil on Jenkins
61+
/.config/gcloud*/
62+
/.gsutil/
63+
64+
# direnv .envrc files
65+
.envrc
66+
67+
# This file used by some vendor repos (e.g. github.com/go-openapi/...) to store secret variables and should not be ignored
68+
!\.drone\.sec
69+
70+
# Godeps or dep workspace
71+
/Godeps/_workspace
72+
73+
/bazel-*
74+
*.pyc
75+
76+
test.sh
77+
pv-keyvault-csi.yaml
78+

Diff for: Gopkg.lock

+159
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Gopkg.toml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
# Gopkg.toml example
3+
#
4+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5+
# for detailed Gopkg.toml documentation.
6+
#
7+
# required = ["github.com/user/thing/cmd/thing"]
8+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9+
#
10+
# [[constraint]]
11+
# name = "github.com/user/project"
12+
# version = "1.0.0"
13+
#
14+
# [[constraint]]
15+
# name = "github.com/user/project2"
16+
# branch = "dev"
17+
# source = "github.com/myfork/project2"
18+
#
19+
# [[override]]
20+
# name = "github.com/x/y"
21+
# version = "2.4.0"
22+
23+
24+
[[constraint]]
25+
name = "github.com/container-storage-interface/spec"
26+
version = "0.3.0"
27+
28+
[[constraint]]
29+
branch = "master"
30+
name = "github.com/golang/glog"
31+
32+
[[constraint]]
33+
name = "github.com/stretchr/testify"
34+
version = "1.2.2"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "golang.org/x/net"
39+
40+
[[constraint]]
41+
name = "google.golang.org/grpc"
42+
version = "1.17.0"
43+
44+
[[constraint]]
45+
name = "k8s.io/kubernetes"
46+
version = "1.13.0"
47+
48+
[[override]]
49+
version = "kubernetes-1.13.0"
50+
name = "k8s.io/api"
51+
52+
[[override]]
53+
version = "kubernetes-1.13.0"
54+
name = "k8s.io/apiserver"
55+
56+
[[override]]
57+
version = "kubernetes-1.13.0"
58+
name = "k8s.io/apiextensions-apiserver"
59+
60+
[[override]]
61+
name = "github.com/Azure/azure-sdk-for-go"
62+
version = "v21.3.0"

Diff for: Makefile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2018 The Kubernetes Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
REGISTRY_NAME=ritazh
16+
IMAGE_NAME=keyvault-csi
17+
IMAGE_VERSION=latest#v0.0.1
18+
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)
19+
IMAGE_TAG_LATEST=$(REGISTRY_NAME)/$(IMAGE_NAME):latest
20+
REV=$(shell git describe --long --tags --dirty)
21+
22+
.PHONY: all keyvault-csi image clean deps
23+
24+
all: keyvault-csi
25+
26+
test:
27+
go test github.com/ritazh/keyvault-csi-driver/pkg/... -cover
28+
go vet github.com/ritazh/keyvault-csi-driver/pkg/...
29+
keyvault-csi: deps
30+
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
31+
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X github.com/ritazh/keyvault-csi-driver/pkg/keyvault.vendorVersion=$(IMAGE_VERSION) -extldflags "-static"' -o _output/keyvaultcsi ./pkg/keyvaultcsidriver
32+
image: keyvault-csi
33+
docker build --no-cache -t $(IMAGE_TAG) -f ./pkg/keyvaultcsidriver/Dockerfile .
34+
push: image
35+
docker push $(IMAGE_TAG)
36+
push-latest: image
37+
docker push $(IMAGE_TAG)
38+
docker tag $(IMAGE_TAG) $(IMAGE_TAG_LATEST)
39+
docker push $(IMAGE_TAG_LATEST)
40+
clean:
41+
go clean -r -x
42+
-rm -rf _output
43+
setup: clean
44+
@echo "Setup..."
45+
go get -u github.com/golang/dep/cmd/dep
46+
deps: setup
47+
@echo "Ensuring Dependencies..."
48+
$Q go env
49+
$Q dep ensure

Diff for: OWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
approvers:
2+
- ritazh

0 commit comments

Comments
 (0)