Skip to content

Commit

Permalink
Merge pull request #83 from fluxcd/api-pkg
Browse files Browse the repository at this point in the history
Make the api package a dedicated module
  • Loading branch information
stefanprodan authored Aug 18, 2020
2 parents dbbb672 + c2db29b commit dbb75a4
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 dbb75a4

Please sign in to comment.