Skip to content

Commit cde5761

Browse files
committed
fix(apps/prod/jenkins-beta): upgrade chart (#1196)
use official chart Signed-off-by: wuhuizuo <[email protected]> Signed-off-by: wuhuizuo <[email protected]>
1 parent 60e8db5 commit cde5761

File tree

7 files changed

+39
-56
lines changed

7 files changed

+39
-56
lines changed

apps/prod/jenkins-beta/release/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ spec:
88
targetNamespace: apps
99
chart:
1010
spec:
11-
chart: ./charts/jenkins
11+
chart: jenkins
12+
version: 5.0.13
1213
sourceRef:
13-
kind: GitRepository
14-
name: flux-system
14+
kind: HelmRepository
15+
name: jenkins
1516
namespace: flux-system
1617
interval: 1h0m0s
1718
timeout: 15m

apps/prod/jenkins-beta/release/values-JCasC.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ controller:
3939
- { name: docs-cn, keyName: qiniu-sk }
4040
- { name: docs-cn, keyName: qiniu-bn }
4141

42-
4342
additionalSecrets: []
4443
# - name: nameOfSecret
4544
# value: secretText
@@ -254,7 +253,7 @@ controller:
254253
gitHubConfiguration:
255254
apiRateLimitChecker: ThrottleOnOver
256255
gitHubPluginConfig:
257-
hookUrl: "http://internal.do.pingcap.net:30080/jenkins/github-webhook/"
256+
hookUrl: "https://internal-do.pingcap.net/jenkins-beta/github-webhook/"
258257
pipeline-cache: |
259258
unclassified:
260259
pipeline-cache:
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
agent:
22
maxRequestsPerHostStr: "200" # need to restart controller after updated it.
33
namespace: jenkins-beta
4-
podRetention: Never
54
containerCap: 200
6-
image: "jenkins/inbound-agent"
7-
tag: 3148.v532a_7e715ee3-10
8-
command: ""
9-
args: ""

apps/prod/jenkins-beta/release/values-controller-plugins.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,26 @@ controller:
1111
- name: JENKINS_UC_DOWNLOAD
1212
value: https://mirrors.tuna.tsinghua.edu.cn/jenkins
1313

14-
# all plugins are installed in the image already
15-
installPlugins: false
14+
installLatestPlugins: true
15+
# List of plugins to install in addition to those listed in controller.installPlugins
16+
additionalPlugins:
17+
# Ref: https://github.com/jenkinsci/plugin-installation-manager-tool#plugin-input-format
18+
# but without outer `plugin` key.
19+
- kubernetes-client-api:6.8.1-224.vd388fca_4db_3b_
20+
- prometheus:2.4.1
21+
- blueocean:1.27.8
22+
- job-dsl:1.87
23+
- build-failure-analyzer::https://github.com/PingCAP-QE/build-failure-analyzer-plugin/releases/download/v2.4.2-jobname/build-failure-analyzer.hpi
24+
- pipeline-utility-steps:2.16.0
25+
- http_request:1.18
26+
- instance-identity:185.v303dc7c645f9
27+
- jenkins-pipeline-cache:0.2.0:https://github.com/j3t/jenkins-pipeline-cache-plugin/releases/download/0.2.0/jenkins-pipeline-cache-0.2.0.hpi
28+
- ghprb:1.42.2
29+
- generic-webhook-trigger:1.88.2
30+
- ssh-agent:346.vda_a_c4f2c8e50
31+
- cloud-events:1.0.0
32+
- json-path-api:2.8.0-5.v07cb_a_1ca_738c
33+
initializeOnce: true
1634

1735
# for plugin build-failure-analyzer
1836
# Exporting to prometheus

apps/prod/jenkins-beta/release/values-controller.yaml

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# please see: https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/VALUES_SUMMARY.md
22
controller:
3-
image: "hub.pingcap.net/jenkins/jenkins-with-plugins"
4-
tag: "2.426.3-lts-jdk11"
3+
image:
4+
registry: "docker.io"
5+
repository: "jenkins/jenkins"
6+
tag: "2.426.3-jdk17"
57
resources:
68
requests:
79
cpu: "4"
@@ -62,32 +64,13 @@ controller:
6264

6365
ingress:
6466
enabled: true
65-
# Override for the default paths that map requests to the backend
66-
paths: []
67-
# - backend:
68-
# serviceName: ssl-redirect
69-
# servicePort: use-annotation
70-
# - backend:
71-
# serviceName: >-
72-
# {{ template "jenkins.fullname" . }}
73-
# # Don't use string here, use only integer value!
74-
# servicePort: 8080
75-
# For Kubernetes v1.14+, use 'networking.k8s.io/v1beta1'
76-
# For Kubernetes v1.19+, use 'networking.k8s.io/v1'
7767
apiVersion: networking.k8s.io/v1
78-
kubernetes.io/ingress.class: nginx
7968
kubernetes.io/tls-acme: "true"
80-
# For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
81-
# See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
8269
ingressClassName: nginx
8370
# Set this path to jenkinsUriPrefix above or use annotations to rewrite path
8471
path: "/jenkins-beta"
8572
# configures the hostname e.g. jenkins.example.com
8673
hostName: internal-do.pingcap.net
87-
tls:
88-
# - secretName: jenkins.cluster.local
89-
# hosts:
90-
# - jenkins.cluster.local
9174

9275
# Expose Prometheus metrics
9376
prometheus:
@@ -96,16 +79,4 @@ controller:
9679
enabled: true
9780
# Additional labels to add to the ServiceMonitor object
9881
serviceMonitorAdditionalLabels: { release: kps }
99-
# Set a custom namespace where to deploy ServiceMonitor resource
100-
# serviceMonitorNamespace: monitoring
101-
scrapeInterval: 60s
102-
# This is the default endpoint used by the prometheus plugin
103-
scrapeEndpoint: /prometheus
104-
# Additional labels to add to the PrometheusRule object
105-
alertingRulesAdditionalLabels: {}
106-
# An array of prometheus alerting rules
107-
# See here: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
108-
# The `groups` root object is added by default, simply add the rule entries
109-
alertingrules: []
110-
# Set a custom namespace where to deploy PrometheusRule resource
111-
prometheusRuleNamespace: ""
82+

apps/prod/jenkins-beta/release/values-persistence.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,4 @@ persistence:
1414
# GKE, AWS & OpenStack)
1515
#
1616
storageClass: ceph-block
17-
annotations: {}
18-
labels: {}
19-
accessMode: "ReadWriteOnce"
2017
size: "100Gi"
21-
volumes:
22-
# - name: nothing
23-
# emptyDir: {}
24-
mounts:
25-
# - mountPath: /var/nothing
26-
# name: nothing
27-
# readOnly: true

infrastructure/_base/sources/helm-repo-others.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ spec:
1717
interval: 24h
1818
type: oci
1919
url: oci://quay.io/strimzi-helm
20+
---
21+
apiVersion: source.toolkit.fluxcd.io/v1beta2
22+
kind: HelmRepository
23+
metadata:
24+
name: jenkins
25+
namespace: flux-system
26+
spec:
27+
interval: 24h
28+
url: https://charts.jenkins.io

0 commit comments

Comments
 (0)