Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit c57ffcc

Browse files
author
Krish Chowdhary
committed
adds release tools
1 parent 063231f commit c57ffcc

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

Makefile

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
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

cmd/cmd.go renamed to cmd/csi-adapter/cmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package cmd
17+
package main
1818

1919
import (
2020
"flag"

cmd/driver.go renamed to cmd/csi-adapter/driver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package cmd
17+
package main
1818

1919
import (
2020
"os"

main.go renamed to cmd/csi-adapter/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package main
1818

1919
import (
20-
"github.com/kubernetes-sigs/container-object-storage-interface-csi-adapter/cmd"
2120
"os"
2221
"os/signal"
2322
"syscall"
@@ -34,7 +33,7 @@ func main() {
3433
glog.Infof("Exiting on signal %s %#v", s.String(), s)
3534
}()
3635

37-
if err := cmd.Execute(); err != nil {
36+
if err := Execute(); err != nil {
3837
os.Exit(1)
3938
}
4039
}

0 commit comments

Comments
 (0)