Skip to content

Commit

Permalink
chore: fix webhook build.
Browse files Browse the repository at this point in the history
Signed-off-by: yy <[email protected]>

Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie committed Jul 11, 2024
1 parent 63ca1da commit 10bf805
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 136 deletions.
2 changes: 1 addition & 1 deletion webhooks/admission/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ ARG TARGETARCH
WORKDIR /
USER 65532:65532

COPY bin/controller-admission-$TARGETARCH /manager
COPY bin/webhook-admission-$TARGETARCH /manager

ENTRYPOINT ["/manager"]
6 changes: 3 additions & 3 deletions webhooks/admission/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Image URL to use all building/pushing image targets
IMG ?= ghcr.io/labring/sealos-admission-controller:latest
IMG ?= ghcr.io/labring/sealos-admission-webhook:latest
TARGETARCH ?= amd64

# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
Expand Down Expand Up @@ -73,8 +73,8 @@ run: manifests generate fmt vet ## Run a controller from your host.

.PHONY: docker-build
docker-build: test build ## Build docker image with the manager.
mv bin/manager bin/controller-admission-${TARGETARCH}
chmod +x bin/controller-admission-${TARGETARCH}
mv bin/manager bin/webhook-admission-${TARGETARCH}
chmod +x bin/webhook-admission-${TARGETARCH}
docker build -t ${IMG} . --build-arg TARGETARCH=${TARGETARCH}

.PHONY: docker-push
Expand Down
132 changes: 0 additions & 132 deletions webhooks/admission/api/v1/webhook_suite_test.go

This file was deleted.

0 comments on commit 10bf805

Please sign in to comment.