-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for additional root CA certs
We're working on getting this pipeline working internally. The first thing we hit is that Red Hat has its own internal root CA. We'll need to handle this both for cosa and the Jenkins agent which wants to fetch `remoting.jar` from the controller as soon as it starts. This patch handles just the latter for now. We do this by optionally supporting building our own Jenkins agent with the certificates in it. For cosa, I think we will be able to work around this by directly pointing e.g. git and libdnf at the certificate. This also fixes a mismatch issue: before we were using an unversioned agent image from Quay. Now, we're following the in-cluster imagestream, just like for the controller itself, so we know they're always matching.
- Loading branch information
Showing
8 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: v1 | ||
kind: Template | ||
metadata: | ||
name: jenkins-agent | ||
parameters: | ||
- description: Secret name containing any additional root CA certificates | ||
name: ADDITIONAL_ROOT_CA_CERTS_SECRET | ||
value: additional-root-ca-certs | ||
objects: | ||
- kind: BuildConfig | ||
apiVersion: v1 | ||
metadata: | ||
name: jenkins-agent | ||
spec: | ||
source: | ||
dockerfile: | | ||
FROM overridden | ||
COPY certs/* /etc/pki/ca-trust/source/anchors/ | ||
RUN update-ca-trust | ||
secrets: | ||
- destinationDir: certs | ||
secret: | ||
name: ${ADDITIONAL_ROOT_CA_CERTS_SECRET} | ||
strategy: | ||
dockerStrategy: | ||
from: | ||
kind: ImageStreamTag | ||
name: jenkins-agent-base:latest | ||
namespace: openshift | ||
forcePull: true | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: jenkins-agent:derived | ||
successfulBuildsHistoryLimit: 2 | ||
failedBuildsHistoryLimit: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters