-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathvalues.yaml
207 lines (200 loc) · 6.66 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
---
appName: &name jenkins
route: true
# ovs this is not a real password in use.... or is it?
# ¯\_(ツ)_/¯
source_secrets:
# secret used to git clone inside of OpenShift when running s2i and possibly in a Jenkins job too
- name: git-auth
username: idm-sa
password: thisisdefinitelymypassword
# annotations:
# build.openshift.io/source-secret-match-uri-1: 'https://gitea.*/*'
# build.openshift.io/source-secret-match-uri-2: 'http://gitea:3000/*'
# build.openshift.io/source-secret-match-uri-3: 'https://gitea.my-cluster.com/*'
# tekton.dev/git-0: 'http://gitea.devops.svc.cluster.local:3000'
# tekton.dev/git-1: 'http://gitea:3000'
# tekton.dev/git-2: 'https://gitea.apps.my-cluster.com'
# some token... appears in jenkins env as JSON ie {"token": "aaaaa.bbbbb.ccccc"}
- name: my-token
type: Opaque
token: aaaaa.bbbbb.ccccc
# default password for nexus bind for jenkis - this is ovs changed.
# .... probably
- name: nexus-password
username: admin
password: admin123
deployment:
openshiftauth: true
imagestream:
name: *name
tag: latest
limits:
memory_request: 2Gi
memory_limit: 6Gi
cpu_request: 500m
cpu_limit: 1
env_vars:
- name: SLACK_BASE_URL
value: ''
- name: SLACK_ROOM
value: ''
- name: SLACK_TOKEN_CREDENTIAL_ID
value: ''
- name: SLACK_TEAM
value: ''
- name: SHARED_LIB_REPO
value: ''
- name: SHARED_LIB_NAME
value: ''
- name: SHARED_LIB_REF
value: ''
- name: SHARED_LIB_SECRET
value: ''
- name: GITLAB_HOST
value: ''
- name: GITLAB_TOKEN
value: ''
- name: GITLAB_GROUP_NAME
value: rht-labs
# persistence:
# accessModes: ReadWriteOnce
# volumeSize: 20Gi
services:
- name: *name
port_name: web
port: 80
target_port: 8080
selector: *name
annotations: service.alpha.openshift.io/dependencies
- name: jenkins-jnlp
port_name: agent
port: 50000
target_port: 50000
selector: *name
buildconfigs:
# Jenkins S2I from Red Hat Labs
- name: *name
strategy_type: "Source"
source_repo: https://github.com/rht-labs/s2i-config-jenkins.git
source_repo_ref: master
source_context_dir: '/'
builder_image_kind: "DockerImage"
builder_image_name: quay.io/openshift/origin-jenkins
builder_image_tag: "latest"
# Jenkins agents for running builds etc
# default names, versions, repo and paths set on the template
- name: jenkins-agent-ansible
- name: jenkins-agent-arachni
- name: jenkins-agent-argocd
- name: jenkins-agent-conftest
- name: jenkins-agent-erlang
- name: jenkins-agent-golang
- name: jenkins-agent-graalvm
- name: jenkins-agent-gradle
- name: jenkins-agent-helm
- name: jenkins-agent-image-mgmt
- name: jenkins-agent-mongodb
- name: jenkins-agent-mvn
- name: jenkins-agent-npm
- name: jenkins-agent-python
- name: jenkins-agent-ruby
- name: jenkins-agent-rust
## This works with the Jenkins Configuration-as-Code plugin. You can put all sorts of declarative configuration
## into this `body` and Jenkins will load it on start, even when using ephemeral Jenkins.
##
## The example below shows how to automatically seed multibranch pipelines using the Gitea
## plugins and JobDSL.
# configAsCode:
# configMap: jenkins-configuration-as-code
# body: |
# jenkins:
# systemMessage: "Controlled by Configuration as Code"
# jobs:
# - script: |
# multibranchPipelineJob('app-fe') {
# triggers {
# cron('@daily')
# }
# configure {
# it / sources / 'data' / 'jenkins.branch.BranchSource' << {
# source(class: 'org.jenkinsci.plugin.gitea.GiteaSCMSource') {
# id("app-fe")
# credentialsId("app-devops-gitea-pipeline-credentials")
# repoOwner("owners")
# repository("frontend")
# serverUrl('http://gitea:3000')
# traits {
# originPullRequestDiscoveryTrait(class: 'org.jenkinsci.plugin.gitea.OriginPullRequestDiscoveryTrait') {
# strategyId(2)
# }
# branchDiscoveryTrait(class: 'org.jenkinsci.plugin.gitea.BranchDiscoveryTrait') {
# strategyId(1)
# }
# cloneOptionTrait {
# extension {
# noTags(true)
# shallow(false)
# reference("")
# timeout(10)
# }
# }
# }
# }
# }
# }
# orphanedItemStrategy {
# discardOldItems {
# // Set to 0 to autoprune jobs once branch is deleted
# numToKeep(0)
# }
# }
# }
# queue('app-fe')
# - script: |
# multibranchPipelineJob('app-api') {
# triggers {
# cron('@daily')
# }
# configure {
# it / sources / 'data' / 'jenkins.branch.BranchSource' << {
# source(class: 'org.jenkinsci.plugin.gitea.GiteaSCMSource') {
# id("app-api")
# credentialsId("app-devops-gitea-pipeline-credentials")
# repoOwner("owners")
# repository("app-api")
# serverUrl('http://gitea:3000')
# traits {
# originPullRequestDiscoveryTrait(class: 'org.jenkinsci.plugin.gitea.OriginPullRequestDiscoveryTrait') {
# strategyId(2)
# }
# branchDiscoveryTrait(class: 'org.jenkinsci.plugin.gitea.BranchDiscoveryTrait') {
# strategyId(1)
# }
# cloneOptionTrait {
# extension {
# noTags(true)
# shallow(false)
# reference("")
# timeout(10)
# }
# }
# }
# }
# }
# }
# orphanedItemStrategy {
# discardOldItems {
# // Set to 0 to autoprune jobs once branch is deleted
# numToKeep(0)
# }
# }
# }
# queue('app-fe')
# unclassified:
# giteaServers:
# servers:
# - credentialsId: "app-devops-gitea-pipeline-credentials"
# displayName: "Gitea"
# manageHooks: true
# serverUrl: "http://gitea:3000"