Skip to content

Commit 54b9c11

Browse files
committed
HACKING: Update documentation to reflect changes
- Update documentation to reflect changes - Add note about how to work with the Fedora Staging pipecfg. Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
1 parent 6c648e8 commit 54b9c11

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

HACKING.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,21 @@ oc annotate secret/github-coreosbot-token-username-password \
454454
jenkins.io/credentials-description="GitHub coreosbot token as username/password"
455455
```
456456

457-
### [PROD, OPTIONAL] Create additional root CA certificate secret
457+
### Create root CA certificate secret
458458

459-
If an additional root CA certificate is needed, create it as
460-
a secret. This assumes `ca.crt` is a file in the working directory:
459+
The root CA certificate (ca.crt) is required and should be created as a secret.
460+
This example assumes that the ca.crt file is present in your current working
461+
directory.
462+
463+
If you are working in a development environment, you still need to create a
464+
dummy configuration file as shown below:
465+
466+
```
467+
cat <<'EOF' > ca.crt
468+
dummy
469+
EOF
470+
```
471+
Then create the secret:
461472

462473
```
463474
oc create secret generic additional-root-ca-cert \
@@ -532,12 +543,6 @@ using a development cluster, it normally isn't, and you can drop it. For
532543
the Fedora prod cluster, use `ocs-storagecluster-ceph-rbd` as shown
533544
above.
534545

535-
If using an additional root CA certificate, then you will also need to
536-
specify the `AGENT_NAMESPACE` parameter to yours, e.g.:
537-
538-
```
539-
--param=AGENT_NAMESPACE=fedora-coreos-pipeline \
540-
```
541546

542547
Now, create the Jenkins configmap:
543548

@@ -583,11 +588,12 @@ This will create:
583588

584589
1. the Jenkins controller imagestream,
585590
2. the Jenkins agent imagestream,
586-
3. the Jenkins agent BuildConfig (if a root CA cert was provided),
591+
3. the Jenkins agent BuildConfig,
587592
4. the jenkins-config configmap.
588593

589-
If a root CA cert was provided, we need to build the base images that
590-
will bake in the cert in the controller and agent:
594+
Note: If you are working with the Fedora staging pipeline, specify the
595+
`staging` branch for the pipecfg: `--pipecfg
596+
https://github.com/coreos/fedora-coreos-pipeline@staging`.
591597

592598
```
593599
oc start-build --follow jenkins-with-cert

0 commit comments

Comments
 (0)