Skip to content

Commit

Permalink
Remove unused controllers and fix images builds
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbelamaric committed Dec 18, 2023
1 parent e4319e2 commit 819eefa
Show file tree
Hide file tree
Showing 219 changed files with 7,425 additions and 7,732 deletions.
104 changes: 52 additions & 52 deletions api/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 3 additions & 25 deletions controllers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,10 @@

FROM golang:1.21.4-bookworm as builder

WORKDIR /workspace
COPY porch/go.mod porch/go.sum porch/
COPY porch/api/go.mod porch/api/go.sum porch/api/
WORKDIR /go/src
COPY porch/ .

WORKDIR /workspace/porch/controllers/
RUN go mod download
# Prebuild some libraries to warm the cache
RUN CGO_ENABLED=0 go build -v \
k8s.io/klog/v2 \
k8s.io/klog/v2/klogr \
sigs.k8s.io/controller-runtime \
sigs.k8s.io/controller-runtime/pkg/client \
sigs.k8s.io/controller-runtime/pkg/controller/controllerutil \
k8s.io/client-go/kubernetes \
go.opentelemetry.io/otel \
github.com/google/go-containerregistry/pkg/gcrane \
github.com/google/go-containerregistry/pkg/v1 \
github.com/google/go-containerregistry/pkg/v1/cache \
k8s.io/client-go/discovery/cached

WORKDIR /workspace
COPY porch/api/ porch/api/
COPY porch/controllers/ porch/controllers/
COPY porch/pkg/ porch/pkg/

WORKDIR /workspace/porch/controllers/
WORKDIR /go/src/controllers/
RUN CGO_ENABLED=0 go build -o /porch-controllers -v .

FROM gcr.io/distroless/static
Expand Down
55 changes: 0 additions & 55 deletions controllers/functiondiscovery/config/rbac/role.yaml

This file was deleted.

0 comments on commit 819eefa

Please sign in to comment.