Skip to content

Commit 1106640

Browse files
maciaszczykmzreigz
andauthoredFeb 1, 2024
refactor: Agent refactoring (#114)
* init * move sync loop to service reconciler * init service controller * refactor status collector * refactor status collector move engine utils to reconciler * move service controller to main * remove unused * add controller manager * add context * refactor * fix controller manager init * make console client once * refactor agent and engine * update socket * bump console client * refactor status * update socket * fix format error * fix some linter issues * update dep * refactor cmd package * fix build * minor changes * add lua unit tests * fix imports * minor enhancement * add restore controller * add velero crds * add backup controller * bump console client * add backup creation logs * add backup creation logs * init velero restore controller * refactor restore controller * update restore reconciler * add namespace for restore controller * add get cluster backup * minor update * add client mocks * update go mod * fix unit tests * fix unit tests * add make target to sync velero crds --------- Co-authored-by: Lukasz Zajaczkowski <[email protected]>
1 parent ead517e commit 1106640

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5618
-963
lines changed
 

‎.mockery.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
filename: "{{.InterfaceName}}_mock.go"
2+
dir: "pkg/test/mocks"
3+
mockname: "{{.InterfaceName}}Mock"
4+
outpkg: "mocks"
5+
packages:
6+
github.com/pluralsh/deployment-operator/pkg/client:
7+
interfaces:
8+
Client:

‎Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ COPY go.sum go.sum
1111
RUN go mod download
1212

1313
# Copy the go source
14-
COPY /cmd/main.go main.go
14+
COPY /cmd cmd/
1515
COPY /pkg pkg/
1616
COPY /api api/
1717
COPY /internal internal/
1818

1919
# Build
20-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o deployment-agent main.go
20+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o deployment-agent cmd/*
2121

2222
FROM alpine:3.18
2323
WORKDIR /workspace

0 commit comments

Comments
 (0)
Please sign in to comment.