This repository was archived by the owner on Apr 24, 2024. It is now read-only.
File tree 4 files changed +31
-6
lines changed
4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 1
- build :
2
- go build -o bin/csi-adapter main.go
1
+ # Copyright 2020 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
+ all : reltools build
16
+
17
+ .PHONY : reltools
18
+ reltools : ./release-tools/build.make
19
+ ./release-tools/build.make :
20
+ $(eval CURDIR := $(shell pwd) )
21
+ $(eval TMP := $(shell mktemp -d) )
22
+ $(shell cd ${TMP} && git clone git@github.com:kubernetes-sigs/container-object-storage-interface-csi-adapter.git)
23
+ $(shell cp -r ${TMP}/api/release-tools ${CURDIR}/)
24
+ $(shell rm -rf ${TMP})
25
+
26
+ CMDS =csi-adapter
27
+
28
+ include release-tools/build.make
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- package cmd
17
+ package main
18
18
19
19
import (
20
20
"flag"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- package cmd
17
+ package main
18
18
19
19
import (
20
20
"os"
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ limitations under the License.
17
17
package main
18
18
19
19
import (
20
- "github.com/kubernetes-sigs/container-object-storage-interface-csi-adapter/cmd"
21
20
"os"
22
21
"os/signal"
23
22
"syscall"
@@ -34,7 +33,7 @@ func main() {
34
33
glog .Infof ("Exiting on signal %s %#v" , s .String (), s )
35
34
}()
36
35
37
- if err := cmd . Execute (); err != nil {
36
+ if err := Execute (); err != nil {
38
37
os .Exit (1 )
39
38
}
40
39
}
You can’t perform that action at this time.
0 commit comments