Skip to content

Commit 1fa3461

Browse files
Microzuul CIGerrit Code Review
Microzuul CI
authored and
Gerrit Code Review
committed
Merge "doc - vatious fixes"
2 parents a5ef0a4 + 0eb8438 commit 1fa3461

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

doc/deployment/config_repository.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
1. [Gerrit](#hosting-on-gerrit)
88
- [Prerequisites](#prerequisites-on-gerrit)
99
- [Configuring Gerrit](#configuring-gerrit)
10-
- [Configuring the Zuul connection](#configuring-the-zuul-connection)
10+
- [Configuring the Zuul connection](#configuring-the-gerrit-zuul-connection)
1111
1. [GitLab](#hosting-on-gitlab)
12-
- [Configuring the Zuul connection](#configuring-the-zuul-connection-1)
12+
- [Configuring the Zuul connection](#configuring-the-gitlab-zuul-connection)
1313
1. [Next Steps](#next-steps)
1414

1515
## Concept
@@ -121,7 +121,7 @@ Here are the required labels to define in the repository's *Access* settings (*m
121121

122122
For further information check the [Gerrit section](https://zuul-ci.org/docs/zuul/latest/drivers/gerrit.html#gerrit) in Zuul's documentation.
123123

124-
#### Configuring the Zuul connection
124+
#### Configuring the Gerrit Zuul connection
125125

126126
In order for Zuul to start listening to Gerrit events, add a `gerritconn` property in your deployed **SoftwareFactory**'s Spec. Edit the spec with:
127127

@@ -168,7 +168,7 @@ an API Token and WebHook token](https://zuul-ci.org/docs/zuul/latest/drivers/git
168168
The `gate` pipeline defined for the `config` repository workflow relies in the `gateit` label for the pipeline
169169
trigger rule. Thus, a GitLab label named `gateit` must be defined in the `Settings` the `config` repository.
170170

171-
#### Configuring the Zuul connection
171+
#### Configuring the Gitlab Zuul connection
172172

173173
To setup the zuul's connection to the GitLab instance, first you need a `Secret` resource (eg. named `gitlab-com-secret`)
174174
to store the API and WebHook tokens. The `Secret`'s scheme is a follow:
@@ -198,7 +198,7 @@ spec:
198198
- name: <zuul-connection-name>
199199
server: gitlab.com
200200
baseurl: https://gitlab.com
201-
secrets: gitlab-com-secret
201+
secrets: gitlab-conn-secret
202202
[...]
203203
```
204204

doc/developer/images.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ running Zuul pods.
8888
Follow these steps on your MicroShift instance
8989

9090
```sh
91-
mkdir -p /home/centos/git && cd /home/centos/git
91+
mkdir -p /home/cloud-user/git && cd /home/cloud-user/git
9292
git clone https://opendev.org/zuul/zuul
9393
# Clone at the current version provided by sf-operator or use master branch
94-
git checkout 9.3.0
94+
cd zuul; git checkout 10.1.0
9595
```
9696

9797
Then you can run the operator by providing the environment variable `ZUUL_LOCAL_SOURCE=<full-path-to-zuul-source>`.
98-
For instance (using the standalone mode):
98+
For instance (using the standalone mode'):
9999

100100
```
101-
ZUUL_LOCAL_SOURCE=/home/cloud-user/git/zuul/zuul sf-operator --namespace sf dev create standalone-sf --cr playbooks/files/sf.yaml
101+
ZUUL_LOCAL_SOURCE=/home/cloud-user/git/zuul/zuul go run ./main.go --namespace sf dev create standalone-sf --cr playbooks/files/sf.yaml
102102
```
103103

104104
After any code change, you can restart the Zuul pods, for instance the zuul-scheduler pod:
@@ -110,6 +110,8 @@ kubectl rollout restart -n sf sts/zuul-merger
110110
kubectl rollout restart -n sf deploy/zuul-web
111111
```
112112

113+
The Zuul web UI won't work, to re-enable it the [following section](#zuul-web).
114+
113115
### Zuul-web
114116

115117
zuul-web static assets are located under the Zuul source tree on the container image. The local copy, from
@@ -124,8 +126,8 @@ Either,
124126
To Fetch the built asset from the zuul-web container image, run the following process from the microshift machine.
125127

126128
```sh
127-
cd /home/centos/git/zuul/zuul/web
128-
podman create --name zuul-web quay.io/software-factory/zuul-web:9.3.0-1
129+
cd /home/cloud-user/git/zuul/zuul/web
130+
podman create --name zuul-web quay.io/software-factory/zuul-web:10.1.0-1
129131
podman export -o /tmp/zuul-web.tar zuul-web
130132
tar -xf /tmp/zuul-web.tar usr/local/lib/python3.11/site-packages/zuul/web/static
131133
mv usr/local/lib/python3.11/site-packages/zuul/web/static static

0 commit comments

Comments
 (0)