Skip to content

Commit c317301

Browse files
authored
Merge pull request #5275 from CecileRobertMichon/branch-rename-prep
🌱 Rename default branch to main in scripts
2 parents 58905fb + de3b93b commit c317301

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ lint-fix: $(GOLANGCI_LINT) ## Lint the codebase and run auto-fixers if supported
243243
GOLANGCI_LINT_EXTRA_ARGS=--fix $(MAKE) lint
244244

245245
apidiff: $(GO_APIDIFF) ## Check for API differences
246-
$(GO_APIDIFF) $(shell git rev-parse origin/master) --print-compatible
246+
$(GO_APIDIFF) $(shell git rev-parse origin/main) --print-compatible
247247

248248
## --------------------------------------
249249
## Generate / Manifests
@@ -502,7 +502,7 @@ set-manifest-image:
502502
RELEASE_TAG ?= $(shell git describe --abbrev=0 2>/dev/null)
503503
# the previous release tag, e.g., v0.3.9, excluding pre-release tags
504504
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)
505-
## set by Prow, ref name of the base branch, e.g., master
505+
## set by Prow, ref name of the base branch, e.g., main
506506
RELEASE_ALIAS_TAG := $(PULL_BASE_REF)
507507
RELEASE_DIR := out
508508
RELEASE_NOTES_DIR := _releasenotes
@@ -591,15 +591,15 @@ release-staging: ## Builds and push container images to the staging bucket.
591591
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag
592592

593593
.PHONY: release-staging-nightly
594-
release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_master_20210121
594+
release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_main_20210121
595595
$(eval NEW_RELEASE_ALIAS_TAG := nightly_$(RELEASE_ALIAS_TAG)_$(shell date +'%Y%m%d'))
596596
echo $(NEW_RELEASE_ALIAS_TAG)
597597
$(MAKE) release-alias-tag TAG=$(RELEASE_ALIAS_TAG) RELEASE_ALIAS_TAG=$(NEW_RELEASE_ALIAS_TAG)
598598
# Set the manifest image to the staging bucket.
599599
$(MAKE) manifest-modification REGISTRY=$(STAGING_REGISTRY) RELEASE_TAG=$(NEW_RELEASE_ALIAS_TAG)
600600
## Build the manifests
601601
$(MAKE) release-manifests
602-
# Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_master_20210121/bootstrap-components.yaml
602+
# Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_main_20210121/bootstrap-components.yaml
603603
gsutil cp $(RELEASE_DIR)/* gs://$(STAGING_BUCKET)/components/$(NEW_RELEASE_ALIAS_TAG)
604604

605605
.PHONY: release-alias-tag
@@ -638,10 +638,10 @@ clean-release-git: ## Restores the git files usually modified during a release
638638
clean-book: ## Remove all generated GitBook files
639639
rm -rf ./docs/book/_book
640640

641-
.PHONY: clean-manifests ## Reset manifests in config directories back to master
641+
.PHONY: clean-manifests ## Reset manifests in config directories back to main
642642
clean-manifests:
643-
@read -p "WARNING: This will reset all config directories to local master. Press [ENTER] to continue."
644-
git checkout master config bootstrap/kubeadm/config controlplane/kubeadm/config $(CAPD_DIR)/config
643+
@read -p "WARNING: This will reset all config directories to local main. Press [ENTER] to continue."
644+
git checkout main config bootstrap/kubeadm/config controlplane/kubeadm/config $(CAPD_DIR)/config
645645

646646
.PHONY: format-tiltfile
647647
format-tiltfile: ## Format Tiltfile

hack/ensure-golangci-lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# NOTE: This script is copied from from https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh.
17+
# NOTE: This script is copied from from https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh.
1818

1919
set -e
2020

scripts/ci-e2e-lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ k8s::checkoutBranch() {
172172
echo "+ checkout $releaseBranch branch"
173173
git checkout "$releaseBranch" -B "release-$major.$minor"
174174
else
175-
# otherwise, we should build from master, which is the branch for the next release
176-
echo "+ checkout master branch"
177-
git checkout master
175+
# otherwise, we should build from main, which is the branch for the next release
176+
echo "+ checkout main branch"
177+
git checkout main
178178
fi
179179
fi
180180
}

test/infrastructure/docker/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ release-staging: ## Builds and push container images to the staging bucket.
245245
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag
246246

247247
.PHONY: release-staging-nightly
248-
release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_master_20210121
248+
release-staging-nightly: ## Tags and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_main_20210121
249249
$(eval NEW_RELEASE_ALIAS_TAG := nightly_$(RELEASE_ALIAS_TAG)_$(shell date +'%Y%m%d'))
250250
$(MAKE) release-alias-tag TAG=$(RELEASE_ALIAS_TAG) RELEASE_ALIAS_TAG=$(NEW_RELEASE_ALIAS_TAG)
251251
# Set the manifest image to the production bucket.
252252
$(MAKE) manifest-modification REGISTRY=$(STAGING_REGISTRY) RELEASE_TAG=$(NEW_RELEASE_ALIAS_TAG)
253253
## Build the manifests
254254
$(MAKE) release-manifests
255-
# Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_master_20210121/infrastructure-components.yaml
255+
# Example manifest location: artifacts.k8s-staging-cluster-api.appspot.com/components/nightly_main_20210121/infrastructure-components.yaml
256256
gsutil cp $(RELEASE_DIR)/* gs://$(STAGING_BUCKET)/components/$(NEW_RELEASE_ALIAS_TAG)
257257

258258
.PHONY: release-alias-tag

0 commit comments

Comments
 (0)