-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added openshift secret to store git private ssh key
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,15 +48,15 @@ parameters: | |
displayName: Context Directory | ||
name: gitContextDir | ||
value: | ||
- description: Github trigger secret. A difficult to guess string encoded as part of the webhook URL. Not encrypted. | ||
- description: Github trigger secret. A difficult to guess string encoded as part of the webhook URL. Not encrypted. | ||
displayName: GitHub Webhook Secret (Generated if empty) | ||
from: '[a-zA-Z0-9]{40}' | ||
generate: expression | ||
name: gitSecret | ||
- description: The ID (name) of the git ssh private key as stored in Jenkins Credential Store | ||
displayName: Git Jenkins Credentials ID | ||
name: gitJenkinsCredentialsId | ||
value: | ||
- description: The git ssh private key to access/write git repo (synced to Jenkins Credential Store) | ||
displayName: Git ssh private key | ||
name: gitSshPrivateKey | ||
value: c2V0LnNzaC1wcml2YXRlLWtleQ== | ||
- description: The OpenShift Namespace prefix where the ImageStreams reside. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
emuthiah
Author
Contributor
|
||
displayName: Namespace Prefix (Prefix for each namespace ie prefix-tools, prefix-dev etc) | ||
name: namespacePrefix | ||
|
@@ -160,6 +160,16 @@ parameters: | |
value: | ||
|
||
objects: | ||
- apiVersion: v1 | ||
data: | ||
ssh-privatekey: >- | ||
${gitSshPrivateKey} | ||
kind: Secret | ||
metadata: | ||
labels: | ||
credential.sync.jenkins.openshift.io: 'true' | ||
name: ${appName}-github-key | ||
type: kubernetes.io/ssh-auth | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
|
@@ -198,7 +208,7 @@ objects: | |
- name: GIT_SOURCE_REF | ||
value: ${gitRef} | ||
- name: GIT_CREDENTIALS_ID | ||
value: ${gitJenkinsCredentialsId} | ||
value: ${appName}-github-key | ||
- name: GIT_CONTEXT_DIR | ||
value: ${gitContextDir} | ||
- name: CHECKOUT_SRC | ||
|
What is this secret for?