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:
Matt McEuen 2021-01-05 14:42:00 -06:00
parent 00125cbdef
commit 31a1fc0ad9
8 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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
)

View File

@ -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
)

View File

@ -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 (