Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jun 10, 2022
1 parent 101d063 commit 595b452
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 131 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,6 @@ verify-shellcheck: ## Verify shell files
verify-tiltfile: ## Verify Tiltfile format
./hack/verify-starlark.sh

.PHONY: verify-docker-provider
verify-capd:
cd $(CAPD_DIR); ./hack/verify-all.sh

## --------------------------------------
## Binaries
## --------------------------------------
Expand All @@ -494,7 +490,7 @@ verify-capd:
clusterctl: ## Build the clusterctl binary
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/clusterctl sigs.k8s.io/cluster-api/cmd/clusterctl

ALL_MANAGERS = core kubeadm-bootstrap kubeadm-control-plane
ALL_MANAGERS = core kubeadm-bootstrap kubeadm-control-plane capd

.PHONY: managers
managers: $(addprefix manager-,$(ALL_MANAGERS)) ## Run all manager-* targets
Expand Down Expand Up @@ -555,6 +551,9 @@ docker-build-kubeadm-control-plane: ## Build the docker image for kubeadm contro
docker-build-clusterctl: ## Build the docker image for clusterctl with output binary name as 'clusterctl'
DOCKER_BUILDKIT=1 docker build --build-arg builder_image=$(GO_CONTAINER_IMAGE) --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg package=./cmd/clusterctl --build-arg ldflags="$(LDFLAGS)" -f ./cmd/clusterctl/Dockerfile . -t $(CLUSTERCTL_IMG)-$(ARCH):$(TAG)

.PHONY: docker-capd-build-all
docker-capd-build-all: $(addprefix docker-capd-build-,$(ALL_ARCH)) ## Build capd docker images for all architectures

.PHONY: e2e-framework
e2e-framework: ## Builds the CAPI e2e framework
cd $(E2E_FRAMEWORK_DIR); go build ./...
Expand All @@ -567,9 +566,6 @@ build-book: ## Build the book
serve-book: ## Build and serve the book (with live-reload)
$(MAKE) -C docs/book serve

.PHONY: docker-capd-build-all
docker-capd-build-all: $(addprefix docker-capd-build-,$(ALL_ARCH)) ## Build capd docker images for all architectures

docker-capd-build-%:
$(MAKE) ARCH=$* docker-capd-build

Expand Down
32 changes: 0 additions & 32 deletions docs/book/src/developer/providers/v1.1-to-v1.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,35 +92,3 @@ in ClusterAPI are kept in sync with the versions used by `sigs.k8s.io/controller
- The check for `cluster.status.infrastructureReady=true` usually existing at the beginning of the reconcile loop for control-plane providers is implemented after setting external objects ref;
- The check for `cluster.status.infrastructureReady=true` usually existing at the beginning of the reconcile loop for infrastructure provider does not prevent the object to be deleted
rif. [PR #6183](https://github.com/kubernetes-sigs/cluster-api/pull/6183)

- Makefile
- migrate all targets of `./test/infrastructure/docker/Makefile` to the top-level `Makefile`:

| old Makefile target | new Makefile target |
|-----------------------------|-------------------------------|
| `test` | `test-capd` |
| `test-verbose` | `test-capd-verbose` |
| `test-junit` | `test-capd-junit` |
| `manager` | `manager-capd` |
| `generate` | `generate` |
| `generate-go` | `generate-go-deepcopy-capd` |
| | `generate-go-conversion-capd` |
| `generate-manifests` | `generate-manifests-capd` |
| `docker-pull-prerequisites` | `docker-pull-prerequisites` |
| `docker-build` | `docker-capd-build` |
| `docker-push` | `docker-capd-push` |
| `docker-build-all` | `docker-capd-build-all` |
| `docker-build-%` | `docker-capd-build-%` |
| `docker-push-all` | `docker-capd-push-all` |
| `docker-push-%` | `docker-capd-push-%` |
| `docker-push-manifest` | `docker-capd-push-manifest` |
| `release` | `release` |
| `manifest-modification` | `manifest-modification` |
| `release-manifests` | `release-manifests-dev` |
| `release-staging` | `release-capd-staging` |
| `release-staging-nigtly` | `release-capd-staging-nigtly` |
| `release-alias-tag` | `release-capd-alias-tag` |
| `clean-bin` | `clean-bin` |
| `clean-release` | `clean-release` |
| `verify` | `verify / verify-capd` |
| `verify-gen` | `verify-gen` |
6 changes: 1 addition & 5 deletions scripts/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,5 @@ set -o pipefail

REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

# Core Cluster API
# Core Cluster API and Docker provider
cd "${REPO_ROOT}" && make managers clusterctl e2e-framework build-book

echo "*** Building Cluster API Provider Docker ***"
# Docker provider
cd "${REPO_ROOT}" && make manager-capd
60 changes: 0 additions & 60 deletions test/infrastructure/docker/hack/verify-all.sh

This file was deleted.

26 changes: 0 additions & 26 deletions test/infrastructure/docker/hack/verify-build.sh

This file was deleted.

0 comments on commit 595b452

Please sign in to comment.