Skip to content

Commit 6d2713c

Browse files
authored
Prepare the Strimzi Operators repo to rename the master branch to main (strimzi#4636)
* Prepare the Strimzi Operators repo to rename the master branch to main Signed-off-by: Jakub Scholz <[email protected]> * Fix the contributing guide Signed-off-by: Jakub Scholz <[email protected]> * Fix Helm Charts Signed-off-by: Jakub Scholz <[email protected]>
1 parent fbc0105 commit 6d2713c

File tree

19 files changed

+75
-76
lines changed

19 files changed

+75
-76
lines changed

.azure/build-pipeline.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
trigger:
33
branches:
44
include:
5-
- 'master'
5+
- 'main'
66
- 'release-*'
77
tags:
88
include:

.azure/scripts/build.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ fi
6060
# Push artifatcs (Docker containers, JARs, docs)
6161
if [ "$BUILD_REASON" == "PullRequest" ] ; then
6262
echo "Building Pull Request - nothing to push"
63-
elif [[ "$BRANCH" != "refs/tags/"* ]] && [ "$BRANCH" != "refs/heads/master" ]; then
64-
echo "Not in master branch and not in release tag - nothing to push"
63+
elif [[ "$BRANCH" != "refs/tags/"* ]] && [ "$BRANCH" != "refs/heads/main" ]; then
64+
echo "Not in main branch and not in release tag - nothing to push"
6565
else
6666
if [ "${MAIN_BUILD}" == "TRUE" ] ; then
67-
echo "Main build on master branch or release tag - going to push to Docker Hub, Nexus and website"
67+
echo "Main build on main branch or release tag - going to push to Docker Hub, Nexus and website"
6868

6969
echo "Login into Docker Hub ..."
7070
docker login -u $DOCKER_USER -p $DOCKER_PASS $DOCKER_REGISTRY
7171

7272
export DOCKER_ORG=strimzi
7373

74-
if [ "$BRANCH" == "refs/heads/master" ]; then
74+
if [ "$BRANCH" == "refs/heads/main" ]; then
7575
export DOCKER_TAG="latest"
7676
else
7777
export DOCKER_TAG="${BRANCH#refs/tags/}"
@@ -80,7 +80,7 @@ else
8080
echo "Pushing to docker org $DOCKER_ORG"
8181
make docker_push
8282

83-
if [ "$BRANCH" == "refs/heads/master" ]; then
83+
if [ "$BRANCH" == "refs/heads/main" ]; then
8484
make docu_pushtowebsite
8585
fi
8686

.azure/scripts/docu-push-to-website.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ git config user.email "[email protected]"
3333

3434
git add -A
3535
git commit -s -m "Update documentation (Travis CI build ${TRAVIS_BUILD_NUMBER})" --allow-empty
36-
git push origin master
36+
git push origin main
3737

3838
popd

.azure/templates/default_variables.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Default variables for jobs
22
variables:
3-
${{ if eq( variables['Build.SourceBranch'], 'refs/heads/master' ) }}:
3+
${{ if eq( variables['Build.SourceBranch'], 'refs/heads/main' ) }}:
44
pull_request: false
55
docker_org: strimzi
66
docker_registry: quay.io
77
tag: latest
88
commit: latest
9-
${{ if ne( variables['Build.SourceBranch'], 'refs/heads/master' ) }}:
9+
${{ if ne( variables['Build.SourceBranch'], 'refs/heads/main' ) }}:
1010
${{ if startsWith( variables['Build.SourceBranch'], 'refs/tags/' ) }}:
1111
pull_request: false
1212
docker_org: strimzi

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Strimzi Community Code of Conduct
22

3-
Strimzi Community Code of Conduct is defined in the [governance repository](https://github.com/strimzi/governance/blob/master/CODE_OF_CONDUCT.md).
3+
Strimzi Community Code of Conduct is defined in the [governance repository](https://github.com/strimzi/governance/blob/main/CODE_OF_CONDUCT.md).

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you want to get in touch with us first before contributing, you can use:
3030

3131
# How to become a maintainer
3232

33-
The governance of the project is defined in the [GOVERNANCE.md](https://github.com/strimzi/strimzi-kafka-operator/blob/master/GOVERNANCE.md) file in the Strimzi Github repository, but in summary certain members of the community are the "maintainers" who decide the direction of the project. New maintainers can be elected by a ⅔ majority vote of the existing maintainers.
33+
The governance of the project is defined in the [GOVERNANCE.md](https://github.com/strimzi/strimzi-kafka-operator/blob/main/GOVERNANCE.md) file in the Strimzi Github repository, but in summary certain members of the community are the "maintainers" who decide the direction of the project. New maintainers can be elected by a ⅔ majority vote of the existing maintainers.
3434

3535
So as to be transparent and to ensure that all potential maintainers are judged fairly and consistently the following criteria should be taken into account in electing new maintainers:
3636

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TOPDIR=$(dir $(lastword $(MAKEFILE_LIST)))
22

33
include ./Makefile.os
44

5-
GITHUB_VERSION ?= master
5+
GITHUB_VERSION ?= main
66
RELEASE_VERSION ?= latest
77
CHART_SEMANTIC_RELEASE_VERSION ?= $(shell cat ./release.version | tr A-Z a-z)
88
BRIDGE_VERSION ?= $(shell cat ./bridge.version | tr A-Z a-z)

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Run Apache Kafka on Kubernetes and OpenShift
44

5-
[![Build Status](https://dev.azure.com/cncf/strimzi/_apis/build/status/build?branchName=master)](https://dev.azure.com/cncf/strimzi/_build/latest?definitionId=16&branchName=master)
5+
[![Build Status](https://dev.azure.com/cncf/strimzi/_apis/build/status/build?branchName=main)](https://dev.azure.com/cncf/strimzi/_build/latest?definitionId=16&branchName=main)
66
[![GitHub release](https://img.shields.io/github/release/strimzi/strimzi-kafka-operator.svg)](https://github.com/strimzi/strimzi-kafka-operator/releases/latest)
77
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
88
[![Twitter Follow](https://img.shields.io/twitter/follow/strimziio.svg?style=social&label=Follow&style=for-the-badge)](https://twitter.com/strimziio)
@@ -17,7 +17,7 @@ To get up and running quickly, check our [Quick Start for Minikube, OKD (OpenShi
1717

1818
## Documentation
1919

20-
Documentation to the current _master_ branch as well as all releases can be found on our [website][strimzi].
20+
Documentation to the current _main_ branch as well as all releases can be found on our [website][strimzi].
2121

2222
## Getting help
2323

@@ -50,8 +50,8 @@ All bugs, tasks or enhancements are tracked as [GitHub issues](https://github.co
5050
might be a good start for new contributors are marked with ["good-start"](https://github.com/strimzi/strimzi-kafka-operator/labels/good-start)
5151
label.
5252

53-
The [Dev guide](https://github.com/strimzi/strimzi-kafka-operator/blob/master/development-docs/DEV_GUIDE.md) describes how to build Strimzi.
54-
Before submitting a patch, please make sure to understand, how to test your changes before opening a PR [Test guide](https://github.com/strimzi/strimzi-kafka-operator/blob/master/development-docs/TESTING.md).
53+
The [Dev guide](https://github.com/strimzi/strimzi-kafka-operator/blob/main/development-docs/DEV_GUIDE.md) describes how to build Strimzi.
54+
Before submitting a patch, please make sure to understand, how to test your changes before opening a PR [Test guide](https://github.com/strimzi/strimzi-kafka-operator/blob/main/development-docs/TESTING.md).
5555

5656
The [Documentation Contributor Guide](https://strimzi.io/contributing/guide/) describes how to contribute to Strimzi documentation.
5757

development-docs/DEV_GUIDE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Other build options:
173173
174174
### Kafka versions
175175
176-
As part of the Docker image build several different versions of Kafka will be built, which can increase build times. Which Kafka versions are to be built are defined in the [kafka-versions.yaml](https://github.com/strimzi/strimzi-kafka-operator/blob/master/kafka-versions.yaml) file. Unwanted versions can be commented out to speed up the build process.
176+
As part of the Docker image build several different versions of Kafka will be built, which can increase build times. Which Kafka versions are to be built are defined in the [kafka-versions.yaml](https://github.com/strimzi/strimzi-kafka-operator/blob/main/kafka-versions.yaml) file. Unwanted versions can be commented out to speed up the build process.
177177
178178
### Maven Settings
179179

development-docs/RELEASE.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `release` target will not build the Docker images - they should be built and
1111
The release process should normally look like this:
1212

1313
1. Create a release branch
14-
2. On the `master` git branch of the operators repository:
14+
2. On the `main` git branch of the operators repository:
1515
* Update the versions to the next SNAPSHOT version using the `next_version` `make` target. For example to update the next version to `0.6.0-SNAPSHOT` run: `make NEXT_VERSION=0.6.0-SNAPSHOT next_version`.
1616

1717
3. Run `make clean`
@@ -35,21 +35,20 @@ The release process should normally look like this:
3535
* Copy files from the operators repository `documentation/html` to `docs/operators/latest/full` in the website repository
3636
* Update the Helm Chart repository file by copying `helm-charts/helm3/index.yaml` in the operators GitHub repository to `charts/index.yaml` in the website GitHub repsoitory.
3737

38-
12. _(only for GA, not for RCs)_ The maven artifacts (`api` module) will be automatically staged from Azure during the tag build. It has to be releases from [Sonatype](https://oss.sonatype.org/#stagingRepositories) to get to the main Maven repositories.
39-
13. _(only for GA, not for RCs)_ On the `master` git branch of the operators repository:
40-
* Copy the `packaging/helm-charts/index.yaml` from the `release` branch to `master`
38+
12. _(only for GA, not for RCs)_ On the `main` git branch of the operators repository:
39+
* Copy the `packaging/helm-charts/index.yaml` from the `release` branch to `main`
4140
* Update the `ProductVersion` variable in `documentation/using/shared/attributes.doc`
42-
* Update the `install`, `examples` and `helm-chart` directories in the `master` branch with the newly released files
41+
* Update the `install`, `examples` and `helm-chart` directories in the `main` branch with the newly released files
4342

43+
13. _(only for GA, not for RCs)_ The maven artifacts (`api` module) will be automatically staged from Azure during the tag build. It has to be releases from [Sonatype](https://oss.sonatype.org/#stagingRepositories) to get to the main Maven repositories.
4444
14. _(only for GA, not for RCs)_ Update the Strimzi manifest files in Operator Hub [community operators](https://github.com/operator-framework/community-operators) repository and submit a pull request upstream. *Note*: Instructions for this step need updating.
4545
15. _(only for GA, not for RCs)_ Add the new version to the `systemtest/src/test/resources/upgrade/StrimziUpgradeST.json` file for the upgrade tests
4646
16. _(only for GA, not for RCs)_ Add the new version to the `systemtest/src/test/resources/upgrade/StrimziDowngradeST.json` file and remove the old one for the downgrade tests
4747

48-
4948
## Updating Kafka Bridge version
5049

5150
The version of Strimzi Kafka Bridge is defined in the file `./bridge.version`.
52-
Even the master branch is using this fixed version and not the version build from the `master` branch of Kafka Bridge.
51+
Even the `main` branch is using this fixed version and not the version build from the `main` branch of Kafka Bridge.
5352
If you need to update the Kafka bridge to newer version, you should do it with following steps:
5453

5554
1. Edit the `bridge.version` file and update it to contain the new Bridge version

documentation/contributing/contributor-guide.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ Once you have your local repository set up and have up to date copies of upstrea
1818
.Procedure
1919
. Open your terminal
2020
. `cd` to the directory where your documentation resides
21-
. Checkout the master branch
21+
. Checkout the main branch
2222
+
2323
[source]
2424
----
25-
$ git checkout master
25+
$ git checkout main
2626
----
2727
. Update your local repository and fork with the upstream content
2828
+
2929
[source]
3030
----
31-
$ git pull upstream master
32-
$ git push origin master --force
31+
$ git pull upstream main
32+
$ git push origin main --force
3333
----
3434
. Create a new branch for your work (using the issue number is helpful)
3535
+
@@ -67,7 +67,7 @@ $ git push origin HEAD
6767
+
6868
[source]
6969
----
70-
$ git pull upstream master
70+
$ git pull upstream main
7171
$ git push -f origin HEAD
7272
----
7373
. Visit your fork on GitHub

documentation/contributing/git-tips.adoc

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ To delete all of your branches except the branch you are on:
77

88
[source]
99
----
10-
$ git checkout master
10+
$ git checkout main
1111
$ for br in `git branch` ; do git branch -D $br ; done
1212
----
1313

1414
To delete one branch:
1515

1616
[source,options="nowrap",subs="+quotes"]
1717
----
18-
$ git checkout master
18+
$ git checkout main
1919
$ git branch -D <branch-name>
2020
----
2121

@@ -27,7 +27,7 @@ To resolve a merge conflict in an existing pull request:
2727
----
2828
$ git checkout <branch-name>
2929
$ git branch -u origin <branch-name>
30-
$ git pull --rebase upstream master
30+
$ git pull --rebase upstream main
3131
$ git push -f origin HEAD
3232
----
3333

@@ -37,11 +37,11 @@ If your fork is both ahead of and behind the origin you can reset your fork to m
3737

3838
[source]
3939
----
40-
$ git checkout master
41-
$ git reset --hard upstream/master
42-
$ git push origin master --force
43-
$ git pull upstream master
44-
$ git push origin master --force
40+
$ git checkout main
41+
$ git reset --hard upstream/main
42+
$ git push origin main --force
43+
$ git pull upstream main
44+
$ git push origin main --force
4545
----
4646

4747
== Using `ssh-agent` to save your SSH key's passphrase
@@ -52,7 +52,7 @@ Before using the `ssh-agent` you will see a prompt to enter your passphrase afte
5252

5353
[source]
5454
----
55-
[amq-repo]$ git pull --rebase upstream master
55+
[amq-repo]$ git pull --rebase upstream main
5656
Enter passphrase for key '/home/<username>/.ssh/id_rsa':
5757
----
5858

@@ -75,12 +75,12 @@ Identity added: /home/<username>/.ssh/id_rsa (/home/<username>/.ssh/id_rsa)
7575

7676
This is the process you can use if you need commits another writer has submitted in a merge request that is not yet merged.
7777

78-
. Check out a new topic branch from upstream/master as you normally do.
78+
. Check out a new topic branch from upstream/main as you normally do.
7979
+
8080
[source,options="nowrap",subs="+quotes"]
8181
----
8282
$ git fetch upstream
83-
$ git checkout -b <new-topic-branch> upstream/master
83+
$ git checkout -b <new-topic-branch> upstream/main
8484
----
8585
. If you have not yet added that writer’s remote repository, add it now.
8686
+

documentation/contributing/introduction.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://github.com/strimzi/strimzi-kafka-operator[`strimzi-kafka-operator`^] (Gi
2727
https://github.com/strimzi/strimzi-kafka-bridge[`strimzi-kafka-bridge`^] (GitHub):: The public GitHub repo hosts all of the Strimzi Kafka Bridge code.
2828
https://github.com/strimzi/strimzi-kafka-oauth[`strimzi-kafka-oauth`^] (GitHub):: The public GitHub repo hosts all of the Strimzi OAuth 2.0 code.
2929

30-
The main documentation is in the Strimzi Operators repository, in the https://github.com/strimzi/strimzi-kafka-operator/tree/master/documentation[`documentation` folder^].
30+
The main documentation is in the Strimzi Operators repository, in the https://github.com/strimzi/strimzi-kafka-operator/tree/main/documentation[`documentation` folder^].
3131
The _documentation_ folder is split into _category_ folders to manage the content.
3232

3333
Documentation category folders contain files related to Strimzi guides (Deploying, Quickstart, Overview, Using), and the files that provide the content for one or more of these guides – _assemblies_ and _modules_.

documentation/contributing/make-tooling.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[make-tooling]]
22
= Using make with documentation
33

4-
When you make changes to the documentation, it is a good practice to do a local test build to verify the book builds successfully and renders as you expect before you submit the merge request back to upstream master.
4+
When you make changes to the documentation, it is a good practice to do a local test build to verify the book builds successfully and renders as you expect before you submit the merge request back to upstream main.
55

66
Make is a useful tool for building your documentation and pushing it to a public website so that peer and quality reviewers can see your edits as the user would.
77

helm-charts/helm3/strimzi-kafka-operator/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.22.1
33
description: 'Strimzi: Apache Kafka running on Kubernetes'
44
home: https://strimzi.io/
5-
icon: https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/documentation/logo/strimzi_logo.png
5+
icon: https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/main/documentation/logo/strimzi_logo.png
66
keywords:
77
- kafka
88
- queue

helm-charts/helm3/strimzi-kafka-operator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If you encounter any issues while using Strimzi, you can get help using:
3939

4040
### License
4141

42-
Strimzi is licensed under the [Apache License, Version 2.0](https://github.com/strimzi/strimzi-kafka-operator/blob/master/LICENSE).
42+
Strimzi is licensed under the [Apache License, Version 2.0](https://github.com/strimzi/strimzi-kafka-operator/blob/main/LICENSE).
4343

4444
## Prerequisites
4545

packaging/helm-charts/helm3/strimzi-kafka-operator/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: "0.1.0"
33
description: "Strimzi: Apache Kafka running on Kubernetes"
44
name: strimzi-kafka-operator
55
version: 0.1.0
6-
icon: https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/documentation/logo/strimzi_logo.png
6+
icon: https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/main/documentation/logo/strimzi_logo.png
77
keywords:
88
- kafka
99
- queue

packaging/helm-charts/helm3/strimzi-kafka-operator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If you encounter any issues while using Strimzi, you can get help using:
3939

4040
### License
4141

42-
Strimzi is licensed under the [Apache License, Version 2.0](https://github.com/strimzi/strimzi-kafka-operator/blob/master/LICENSE).
42+
Strimzi is licensed under the [Apache License, Version 2.0](https://github.com/strimzi/strimzi-kafka-operator/blob/main/LICENSE).
4343

4444
## Prerequisites
4545

0 commit comments

Comments
 (0)