Skip to content

Commit

Permalink
Make the api package a dedicated module
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Aug 18, 2020
1 parent dbbb672 commit c2db29b
Show file tree
Hide file tree
Showing 4 changed files with 461 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN kubectl_ver=1.18.8 && \
curl -sL https://storage.googleapis.com/kubernetes-release/release/v${kubectl_ver}/bin/linux/amd64/kubectl \
-o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl

# copy api submodule
COPY api/ api/

# copy modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
Expand All @@ -20,7 +23,6 @@ RUN go mod download

# copy source code
COPY main.go main.go
COPY api/ api/
COPY controllers/ controllers/

# build
Expand Down
9 changes: 9 additions & 0 deletions api/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/fluxcd/kustomize-controller/api

go 1.14

require (
k8s.io/api v0.18.4
k8s.io/apimachinery v0.18.4
sigs.k8s.io/controller-runtime v0.6.1
)
Loading

0 comments on commit c2db29b

Please sign in to comment.