Skip to content

Commit

Permalink
Merge pull request #384 from ahmedmansour5/jenkins-chart-update
Browse files Browse the repository at this point in the history
fixes the Jenkins chart old version dependancies
  • Loading branch information
junior authored May 18, 2023
2 parents 7080962 + 18d2331 commit fac87c0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 24 deletions.
4 changes: 2 additions & 2 deletions deploy/complete/helm-chart/setup/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ dependencies:
repository: https://charts.jetstack.io
# jenkins
- name: jenkins
version: 2.1.0
version: 4.3.23
condition: jenkins.enabled
repository: https://charts.helm.sh/stable
repository: https://charts.jenkins.io
6 changes: 3 additions & 3 deletions deploy/complete/helm-chart/setup/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ how to access the Jenkins application.
kubectl get secret -n {{ .Release.Namespace }} {{ .Release.Name }}-jenkins \
-o jsonpath="{.data.jenkins-admin-password}" | base64 --decode ; echo

- Ensure that Jenkins is up and running
- Ensure that Jenkins is up and running

kubectl get deployment -n {{ .Release.Namespace }} {{ .Release.Name }}-jenkins
kubectl get StatefulSet -n {{ .Release.Namespace }} {{ .Release.Name }}-jenkins

- Access Jenkins with admin/<password>:

- {{ if .Values.jenkins.master.ingress.enabled -}}
- {{ if .Values.jenkins.controller.ingress.enabled -}}
Open http://<external-ip>/jenkins ( See above for how to locate the <external-ip> )
Or alternatively,
{{ end -}}
Expand Down
46 changes: 27 additions & 19 deletions deploy/complete/helm-chart/setup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,31 +123,39 @@ grafana:
- grafana-piechart-panel
- btplc-status-dot-panel

# https://github.com/helm/charts/blob/master/stable/jenkins/README.md
# https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/README.md
jenkins:
enabled: false
master:
#https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/values.yaml
controller:
serviceType: ClusterIP
jenkinsUriPrefix: "/jenkins"
ingress:
# enable ingress only if the ingress-controller `nginx-ingress` is enabled.
enabled: true
paths:
- path: /jenkins
backend:
serviceName: >-
{{ template "jenkins.fullname" . }}
servicePort: 8080
apiVersion: "networking.k8s.io/v1beta1"
apiVersion: networking.k8s.io/v1
metadata:
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$2
labels: {}
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- http:
paths:
- path: /jenkins(/|$)(.*)
pathType: Prefix
backend:
service:
name: mushop-setup-jenkins
port:
number: 8080
installPlugins:
- kubernetes:1.26.1
- workflow-job:2.39
- workflow-aggregator:2.6
- credentials-binding:1.23
- git:4.2.2
- configuration-as-code:1.41
- blueocean:1.23.2
- kubernetes:3900.va_dce992317b_4
- workflow-aggregator:596.v8c21c963d92d
- git:5.0.1
- configuration-as-code:1625.v27444588cc3d
- blueocean:1.27.3
- credentials-binding:604.vb_64480b_c56ca_
- workflow-job:1292.v27d8cc3e2602

0 comments on commit fac87c0

Please sign in to comment.