@@ -454,10 +454,21 @@ oc annotate secret/github-coreosbot-token-username-password \
454
454
jenkins.io/credentials-description="GitHub coreosbot token as username/password"
455
455
```
456
456
457
- ### [ PROD, OPTIONAL ] Create additional root CA certificate secret
457
+ ### Create root CA certificate secret
458
458
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:
461
472
462
473
```
463
474
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
532
543
the Fedora prod cluster, use ` ocs-storagecluster-ceph-rbd ` as shown
533
544
above.
534
545
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
- ```
541
546
542
547
Now, create the Jenkins configmap:
543
548
@@ -583,11 +588,12 @@ This will create:
583
588
584
589
1 . the Jenkins controller imagestream,
585
590
2 . the Jenkins agent imagestream,
586
- 3 . the Jenkins agent BuildConfig (if a root CA cert was provided) ,
591
+ 3 . the Jenkins agent BuildConfig,
587
592
4 . the jenkins-config configmap.
588
593
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` .
591
597
592
598
```
593
599
oc start-build --follow jenkins-with-cert
0 commit comments