Skip to content

Commit 0fc3a98

Browse files
committed
#1 Makefile and Project Changes
1 parent 2da4707 commit 0fc3a98

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

Makefile

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
101101
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
102102
# CertManager is installed by default; skip with:
103103
# - CERT_MANAGER_INSTALL_SKIP=true
104-
KIND_CLUSTER ?= k8s-debug-mode-cr-lib-test-e2e
104+
KIND_CLUSTER ?= k8s-backup-lib-test-e2e
105105

106106
.PHONY: setup-test-e2e
107107
setup-test-e2e: ## Set up a Kind cluster for e2e tests if it does not exist
@@ -159,23 +159,6 @@ docker-build: ## Build docker image with the manager.
159159
docker-push: ## Push docker image with the manager.
160160
$(CONTAINER_TOOL) push ${IMG}
161161

162-
# PLATFORMS defines the target platforms for the manager image be built to provide support to multiple
163-
# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
164-
# - be able to use docker buildx. More info: https://docs.docker.com/build/buildx/
165-
# - have enabled BuildKit. More info: https://docs.docker.com/develop/develop-images/build_enhancements/
166-
# - be able to push the image to your registry (i.e. if you do not set a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
167-
# To adequately provide solutions that are compatible with multiple platforms, you should consider using this option.
168-
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
169-
.PHONY: docker-buildx
170-
docker-buildx: ## Build and push docker image for the manager for cross-platform support
171-
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
172-
sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
173-
- $(CONTAINER_TOOL) buildx create --name k8s-debug-mode-cr-lib-builder
174-
$(CONTAINER_TOOL) buildx use k8s-debug-mode-cr-lib-builder
175-
- $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .
176-
- $(CONTAINER_TOOL) buildx rm k8s-debug-mode-cr-lib-builder
177-
rm Dockerfile.cross
178-
179162
.PHONY: build-installer
180163
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
181164
mkdir -p dist

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ domain: cloudogu.com
66
layout:
77
- go.kubebuilder.io/v4
88
projectName: k8s-backup-lib
9-
repo: github.com/cloudogu/k8s-backuplib
9+
repo: github.com/cloudogu/k8s-backup-lib
1010
resources:
1111
- api:
1212
crdVersion: v1

hack/boilerplate.go.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
This file was generated with "make generate-deepcopy".
3+
*/

0 commit comments

Comments
 (0)