diff --git a/Makefile b/Makefile index ed66bc3a7ba2..ea61aadcc88c 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,7 @@ lint-fix: $(GOLANGCI_LINT) ## Lint the codebase and run auto-fixers if supported GOLANGCI_LINT_EXTRA_ARGS=--fix $(MAKE) lint apidiff: $(GO_APIDIFF) ## Check for API differences - $(GO_APIDIFF) $(shell git rev-parse origin/master) --print-compatible + $(GO_APIDIFF) $(shell git rev-parse origin/main) --print-compatible ## -------------------------------------- ## Generate / Manifests @@ -502,7 +502,7 @@ set-manifest-image: RELEASE_TAG ?= $(shell git describe --abbrev=0 2>/dev/null) # the previous release tag, e.g., v0.3.9, excluding pre-release tags PREVIOUS_TAG ?= $(shell git tag -l | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$$" | sort -V | grep -B1 $(RELEASE_TAG) | head -n 1 2>/dev/null) -## set by Prow, ref name of the base branch, e.g., master +## set by Prow, ref name of the base branch, e.g., main RELEASE_ALIAS_TAG := $(PULL_BASE_REF) RELEASE_DIR := out RELEASE_NOTES_DIR := _releasenotes @@ -591,7 +591,7 @@ release-staging: ## Builds and push container images to the staging bucket. REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag .PHONY: release-staging-nightly -release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_master_20210121 +release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_main_20210121 $(eval NEW_RELEASE_ALIAS_TAG := nightly_$(RELEASE_ALIAS_TAG)_$(shell date +'%Y%m%d')) echo $(NEW_RELEASE_ALIAS_TAG) $(MAKE) release-alias-tag TAG=$(RELEASE_ALIAS_TAG) RELEASE_ALIAS_TAG=$(NEW_RELEASE_ALIAS_TAG) @@ -599,7 +599,7 @@ release-staging-nightly: ## Tags and push container images to the staging bucket $(MAKE) manifest-modification REGISTRY=$(STAGING_REGISTRY) RELEASE_TAG=$(NEW_RELEASE_ALIAS_TAG) ## Build the manifests $(MAKE) release-manifests - # Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_master_20210121/bootstrap-components.yaml + # Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_main_20210121/bootstrap-components.yaml gsutil cp $(RELEASE_DIR)/* gs://$(STAGING_BUCKET)/components/$(NEW_RELEASE_ALIAS_TAG) .PHONY: release-alias-tag @@ -638,10 +638,10 @@ clean-release-git: ## Restores the git files usually modified during a release clean-book: ## Remove all generated GitBook files rm -rf ./docs/book/_book -.PHONY: clean-manifests ## Reset manifests in config directories back to master +.PHONY: clean-manifests ## Reset manifests in config directories back to main clean-manifests: - @read -p "WARNING: This will reset all config directories to local master. Press [ENTER] to continue." - git checkout master config bootstrap/kubeadm/config controlplane/kubeadm/config $(CAPD_DIR)/config + @read -p "WARNING: This will reset all config directories to local main. Press [ENTER] to continue." + git checkout main config bootstrap/kubeadm/config controlplane/kubeadm/config $(CAPD_DIR)/config .PHONY: format-tiltfile format-tiltfile: ## Format Tiltfile diff --git a/hack/ensure-golangci-lint.sh b/hack/ensure-golangci-lint.sh index 9e9ef0316727..8c2729eb3ee2 100755 --- a/hack/ensure-golangci-lint.sh +++ b/hack/ensure-golangci-lint.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# NOTE: This script is copied from from https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh. +# NOTE: This script is copied from from https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh. set -e diff --git a/scripts/ci-e2e-lib.sh b/scripts/ci-e2e-lib.sh index c0eb8b779427..328364e3dda0 100644 --- a/scripts/ci-e2e-lib.sh +++ b/scripts/ci-e2e-lib.sh @@ -172,9 +172,9 @@ k8s::checkoutBranch() { echo "+ checkout $releaseBranch branch" git checkout "$releaseBranch" -B "release-$major.$minor" else - # otherwise, we should build from master, which is the branch for the next release - echo "+ checkout master branch" - git checkout master + # otherwise, we should build from main, which is the branch for the next release + echo "+ checkout main branch" + git checkout main fi fi } diff --git a/test/infrastructure/docker/Makefile b/test/infrastructure/docker/Makefile index 81b45125e5ec..be4e7f0fe59b 100644 --- a/test/infrastructure/docker/Makefile +++ b/test/infrastructure/docker/Makefile @@ -245,14 +245,14 @@ release-staging: ## Builds and push container images to the staging bucket. REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag .PHONY: release-staging-nightly -release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_master_20210121 +release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_main_20210121 $(eval NEW_RELEASE_ALIAS_TAG := nightly_$(RELEASE_ALIAS_TAG)_$(shell date +'%Y%m%d')) $(MAKE) release-alias-tag TAG=$(RELEASE_ALIAS_TAG) RELEASE_ALIAS_TAG=$(NEW_RELEASE_ALIAS_TAG) # Set the manifest image to the production bucket. $(MAKE) manifest-modification REGISTRY=$(STAGING_REGISTRY) RELEASE_TAG=$(NEW_RELEASE_ALIAS_TAG) ## Build the manifests $(MAKE) release-manifests - # Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_master_20210121/infrastructure-components.yaml + # Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_main_20210121/infrastructure-components.yaml gsutil cp $(RELEASE_DIR)/* gs://$(STAGING_BUCKET)/components/$(NEW_RELEASE_ALIAS_TAG) .PHONY: release-alias-tag