Skip to content

Commit c3ca82a

Browse files
dosemwengieDavid Osemwengie
andauthored
Migrate to Operator-SDK V1 (#370)
* operator-sdk v1 layout * fix deps * resolved library versions * update webhooks * use correct group, enable webhook and certmanager * fix webhook testing * add hack to include json tags * add patches crd fix * add operator-sdk download * add script for json tags * install controller gen * install kustomize * add kustomize to deps * add kustomize to deps with go get * add kustomize to deps with go install * source with shell * set shell to bash * refactor releasemanager layout, parse kustomization crd files * install yq * install yq, set path * rename yq * lower yq version, increase verbose * fix yq version * fix yq version, no tar * use pip to install yq * clean up script for yq * copying plan * push updates * use scheme from parent client * slo with sloth * add resoures * Migrate to Operator-SDK V1 --------- Co-authored-by: David Osemwengie <dosemwengie@medium.com>
1 parent 6c00db9 commit c3ca82a

267 files changed

Lines changed: 11332 additions & 10969 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ tags
8181
secrets/*
8282
.idea
8383
cmd/manager/picchuDebug
84+
85+
testbin/*
86+

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
go:
4-
- 1.17.x
4+
- 1.19.x
55

66
sudo: required
77

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Build the manager binary
2+
FROM golang:1.19 as builder
3+
4+
WORKDIR /workspace
5+
# Copy the Go Modules manifests
6+
COPY go.mod go.mod
7+
COPY go.sum go.sum
8+
# cache deps before building and copying source so that we don't need to re-download as much
9+
# and so that source changes don't invalidate our downloaded layer
10+
RUN go mod download
11+
12+
# Copy the go source
13+
COPY main.go main.go
14+
COPY api/ api/
15+
COPY controllers/ controllers/
16+
COPY client/ client/
17+
COPY prometheus/ prometheus/
18+
COPY plan/ plan/
19+
20+
# Build
21+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
22+
23+
# Use distroless as minimal base image to package the manager binary
24+
# Refer to https://github.com/GoogleContainerTools/distroless for more details
25+
FROM gcr.io/distroless/static:nonroot
26+
WORKDIR /
27+
COPY --from=builder /workspace/manager .
28+
USER nonroot:nonroot
29+
30+
ENTRYPOINT ["/manager"]

LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)