Move go packages to vino/pkg
This organizes our go packages under a "pkg/" directory, which will help keep them separated from other things (tools, config, ...), especially as the number of packages grows. It also brings vino in line with conventions used by sip, airshipctl, and the k8s community. Change-Id: Ieea0cdde7eeea9400384ca45bb5830322bbe0a82
This commit is contained in:
parent
00125cbdef
commit
31a1fc0ad9
@ -13,9 +13,7 @@ RUN go mod download
|
||||
|
||||
# Copy the go source
|
||||
COPY main.go main.go
|
||||
COPY api api/
|
||||
COPY controllers controllers/
|
||||
|
||||
COPY pkg pkg/
|
||||
|
||||
# Build
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
|
||||
|
4
main.go
4
main.go
@ -29,8 +29,8 @@ import (
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
"sigs.k8s.io/controller-runtime/pkg/log/zap"
|
||||
|
||||
vinov1 "vino/api/v1"
|
||||
"vino/controllers"
|
||||
vinov1 "vino/pkg/api/v1"
|
||||
"vino/pkg/controllers"
|
||||
// +kubebuilder:scaffold:imports
|
||||
)
|
||||
|
||||
|
@ -30,7 +30,7 @@ import (
|
||||
logf "sigs.k8s.io/controller-runtime/pkg/log"
|
||||
"sigs.k8s.io/controller-runtime/pkg/log/zap"
|
||||
|
||||
airshipv1 "vino/api/v1"
|
||||
airshipv1 "vino/pkg/api/v1"
|
||||
// +kubebuilder:scaffold:imports
|
||||
)
|
||||
|
@ -35,7 +35,7 @@ import (
|
||||
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
|
||||
"sigs.k8s.io/yaml"
|
||||
|
||||
vinov1 "vino/api/v1"
|
||||
vinov1 "vino/pkg/api/v1"
|
||||
)
|
||||
|
||||
const (
|
Loading…
Reference in New Issue
Block a user