Skip to content

Commit 9051765

Browse files
committed
add directpv.min.io/v1beta1
Signed-off-by: Bala.FA <[email protected]>
1 parent 4670791 commit 9051765

File tree

151 files changed

+44445
-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.

151 files changed

+44445
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*~
2+
centos*.xml
3+
*.qcow2*
4+
vdb.xml

.golangci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
run:
2+
timeout: 5m
3+
skip-files:
4+
- ".*crd_bindata.go$"
5+
6+
linters-settings:
7+
golint:
8+
min-confidence: 0
9+
10+
misspell:
11+
locale: US
12+
13+
gofumpt:
14+
lang-version: "1.17"
15+
16+
# Choose whether or not to use the extra rules that are disabled
17+
# by default
18+
extra-rules: false
19+
20+
21+
linters:
22+
disable-all: true
23+
enable:
24+
- typecheck
25+
- goimports
26+
- goheader
27+
- misspell
28+
- govet
29+
- ineffassign
30+
- deadcode
31+
- gomodguard
32+
- gofmt
33+
- varcheck
34+
- gofumpt
35+
- tenv
36+
- durationcheck
37+
38+
39+
issues:
40+
exclude-use-default: false
41+
exclude:
42+
- should have a package comment
43+
- Error return value of `` is not checked
44+
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv)|flag\.Set|flag\.CommandLine\.Parse|viper\.BindPFlags. is not checked
45+
- the goroutine calls T.Fatal(f)?, which must be called in the same goroutine as the test
46+
- call to T.Fatal(f)?

.goreleaser.yml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
project_name: directpv
2+
3+
release:
4+
name_template: "Release version {{.Version}}"
5+
6+
github:
7+
owner: minio
8+
name: directpv
9+
10+
extra_files:
11+
- glob: "*.minisig"
12+
- glob: "*.zip"
13+
14+
before:
15+
hooks:
16+
- go mod tidy -compat=1.17
17+
- go mod download
18+
19+
builds:
20+
-
21+
main: ./cmd/directpv
22+
id: directpv
23+
binary: directpv
24+
goos:
25+
- linux
26+
goarch:
27+
- amd64
28+
- arm64
29+
- ppc64le
30+
env:
31+
- CGO_ENABLED=0
32+
flags:
33+
- -trimpath
34+
- -tags="osusergo netgo static_build"
35+
ldflags:
36+
- -s -w -X main.Version={{ .Tag }}
37+
38+
-
39+
main: ./cmd/kubectl-direct_csi
40+
id: kubectl-direct_csi
41+
binary: kubectl-direct_csi
42+
goos:
43+
- linux
44+
- windows
45+
- darwin
46+
goarch:
47+
- amd64
48+
- arm64
49+
- ppc64le
50+
ignore:
51+
- goos: windows
52+
goarch: arm64
53+
env:
54+
- CGO_ENABLED=0
55+
flags:
56+
- -trimpath
57+
- -tags="osusergo netgo static_build"
58+
ldflags:
59+
- -s -w -X main.Version={{ .Tag }}
60+
hooks:
61+
post: ./package.sh {{ .Path }}
62+
63+
-
64+
main: ./cmd/kubectl-directpv
65+
id: kubectl-directpv
66+
binary: kubectl-directpv
67+
goos:
68+
- linux
69+
- windows
70+
- darwin
71+
goarch:
72+
- amd64
73+
- arm64
74+
- ppc64le
75+
ignore:
76+
- goos: windows
77+
goarch: arm64
78+
env:
79+
- CGO_ENABLED=0
80+
flags:
81+
- -trimpath
82+
- -tags="osusergo netgo static_build"
83+
ldflags:
84+
- -s -w -X main.Version={{ .Tag }}
85+
hooks:
86+
post: ./package.sh {{ .Path }}
87+
88+
archives:
89+
-
90+
allow_different_binary_count: true
91+
format: binary
92+
93+
changelog:
94+
sort: asc
95+
96+
dockers:
97+
- image_templates:
98+
- "quay.io/minio/directpv:{{ .Tag }}-amd64"
99+
use: buildx
100+
goarch: amd64
101+
ids:
102+
- directpv
103+
dockerfile: Dockerfile
104+
extra_files:
105+
- LICENSE
106+
- CREDITS
107+
- centos.repo
108+
build_flag_templates:
109+
- "--platform=linux/amd64"
110+
- image_templates:
111+
- "quay.io/minio/directpv:{{ .Tag }}-ppc64le"
112+
use: buildx
113+
goarch: ppc64le
114+
ids:
115+
- directpv
116+
dockerfile: Dockerfile
117+
extra_files:
118+
- LICENSE
119+
- CREDITS
120+
- centos.repo
121+
build_flag_templates:
122+
- "--platform=linux/ppc64le"
123+
- image_templates:
124+
- "quay.io/minio/directpv:{{ .Tag }}-arm64"
125+
use: buildx
126+
goarch: arm64
127+
ids:
128+
- directpv
129+
dockerfile: Dockerfile
130+
extra_files:
131+
- LICENSE
132+
- CREDITS
133+
- centos.repo
134+
build_flag_templates:
135+
- "--platform=linux/arm64"
136+
docker_manifests:
137+
- name_template: quay.io/minio/directpv:{{ .Tag }}
138+
image_templates:
139+
- quay.io/minio/directpv:{{ .Tag }}-amd64
140+
- quay.io/minio/directpv:{{ .Tag }}-arm64
141+
- quay.io/minio/directpv:{{ .Tag }}-ppc64le
142+
- name_template: quay.io/minio/directpv:latest
143+
image_templates:
144+
- quay.io/minio/directpv:{{ .Tag }}-amd64
145+
- quay.io/minio/directpv:{{ .Tag }}-arm64
146+
- quay.io/minio/directpv:{{ .Tag }}-ppc64le

0 commit comments

Comments
 (0)