Skip to content

Commit da8d7bc

Browse files
authored
Update controllers (#271)
* ⬆️ Upgrade to go `1.20` Signed-off-by: Elis Lulja <[email protected]> * feat(ctrl): Create manager constructor Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrls): create new namespace controller Signed-off-by: Elis Lulja <[email protected]> * refactor(ns-ctrl): parse namespace labels Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrls): create new utility functions Signed-off-by: Elis Lulja <[email protected]> * refactor(ns-ctrl): use common controller options Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrl): create new service controller Signed-off-by: Elis Lulja <[email protected]> * feat(serviceregistry): create event struct Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrl-utils): improve service checking Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrls): send events to channel Signed-off-by: Elis Lulja <[email protected]> * feat(event-handler): create namespace worker Signed-off-by: Elis Lulja <[email protected]> * feat(events-handler): create events handler Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrls): move to `pkg` Signed-off-by: Elis Lulja <[email protected]> * refactor(Dockerfile): update Dockerfile `FROM` Signed-off-by: Elis Lulja <[email protected]> * refactor(ctrl): make more attempts to resolve IPs Signed-off-by: Elis Lulja <[email protected]> * feat(event-handler): use namespace workers Signed-off-by: Elis Lulja <[email protected]> * refactor(main): use new handlers and controllers Signed-off-by: Elis Lulja <[email protected]> * refactor(Dockerfile): update Dockerfile Signed-off-by: Elis Lulja <[email protected]> * Update dependencies Signed-off-by: Elis Lulja <[email protected]> * refactor: delete unused code Signed-off-by: Elis Lulja <[email protected]> * ⬆️ update dependencies Signed-off-by: Elis Lulja <[email protected]> --------- Signed-off-by: Elis Lulja <[email protected]>
1 parent 8bef1ec commit da8d7bc

Some content is hidden

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

71 files changed

+1605
-13204
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build binary
2-
FROM golang:1.17 as builder
2+
FROM golang:1.20 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests
@@ -12,7 +12,6 @@ RUN go mod download
1212
# Copy the go source
1313
COPY main.go main.go
1414
COPY utils.go utils.go
15-
COPY controllers/ controllers/
1615
COPY pkg/ pkg/
1716
COPY internal/ internal/
1817

controllers/namespace_controller.go

-182
This file was deleted.

controllers/service_controller.go

-142
This file was deleted.

0 commit comments

Comments
 (0)