Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(updates.jenkins.io): use new mirrorbits-parent helm chart #4320

Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions clusters/publick8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,11 @@ releases:
# - "../config/updates.jenkins.io.yaml"
# secrets:
# - "../secrets/config/updates.jenkins.io/secrets.yaml"
- name: updates-jenkins-io
namespace: updates-jenkins-io
chart: jenkins-infra/mirrorbits-parent
version: 0.0.4
values:
- "../config/updates.jenkins.io-parent.yaml"
secrets:
- "../secrets/config/updates.jenkins.io-parent/secrets.yaml"
2 changes: 1 addition & 1 deletion config/ldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ service:
- '20.12.27.65/32' # 107 accept inbound LDAPS request from puppet.jenkins.io
- '104.209.128.236/32' # accept inbound LDAPS from trusted.ci.jenkins.io vnet (public IP for the outbound NAT gateway)
- '172.176.126.194/32' # accept inbound LDAPS from private.vpn.jenkins.io
- '104.209.153.13/32' # accept inbound LDAPS from cert.ci.jenkins.io vnet (public IP for the outbound NAT gateway)
- '104.209.153.13/32' # accept inbound LDAPS from cert.ci.jenkins.io vnet (public IP for the outbound NAT gateway)
- '52.252.104.110/32' # Accept inbound LDAPS from ci.jenkins.io
- '34.211.101.61/32' # Accept inbound connections from Linux Foundation test machine
- '44.240.22.235/32' # Accept inbound connections from Linux Foundation prod machine
Expand Down
116 changes: 116 additions & 0 deletions config/updates.jenkins.io-parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
mirrorbits-lite:
enabled: true

ingress:
enabled: true
className: public-nginx
annotations:
"cert-manager.io/cluster-issuer": "letsencrypt-prod"
"nginx.ingress.kubernetes.io/ssl-redirect": "true"
hosts:
- host: azure.updates.jenkins.io
paths:
- path: /
serviceNameSuffix: files
- path: /.*[.](deb|hpi|war|rpm|msi|pkg|sha256|md5sum|zip|gz|pdf|json|svg|sh|jpeg|ico|png|html)$
pathType: ImplementationSpecific
tls:
- secretName: updates-jenkins-io-tls
hosts:
- azure.updates.jenkins.io

resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 500m
memory: 1024Mi

repository:
name: updates-jenkins-io-binary
persistentVolumeClaim:
enabled: true
spec:
accessModes:
- ReadOnlyMany
storageClassName: azurefile-csi-premium
volumeName: updates-jenkins-io-binary
resources:
requests:
storage: 2Gi # See file share size in https://github.com/jenkins-infra/azure/blob/main/updates.jenkins.io.tf
# As the storage account is independently declared and created elsewhere (jenkins-infra/azure/updates.jenkins.io.tf),
# we're adding the PV definition to rattach the PVC to the existing storage account without creating a new one
# and especially without deleting it when the cluster has to be recreated.
persistentVolume:
enabled: true
spec:
capacity:
storage: 2Gi # See file share size in https://github.com/jenkins-infra/azure/blob/main/updates.jenkins.io.tf
storageClassName: azurefile-csi-premium
accessModes:
- ReadOnlyMany
persistentVolumeReclaimPolicy: Retain
csi:
driver: file.csi.azure.com
readOnly: false
volumeHandle: updates-jenkins-io-binary # make sure this volumeid is unique for every identical share in the cluster
volumeAttributes:
resourceGroup: updates-jenkins-io
shareName: updates-jenkins-io
nodeStageSecretRef:
name: updates-jenkins-io-mirrorbits-lite-binary
namespace: updates-jenkins-io
mountOptions:
- dir_mode=0755
- file_mode=0644
- uid=1000
- gid=1000
- mfsymlinks
- nobrl
- serverino
- cache=strict

nodeSelector:
agentpool: x86medium

httpd:
enabled: true

resources:
limits:
cpu: 2000m
memory: 2048Mi
requests:
cpu: 2000m
memory: 2048Mi

repository:
name: updates-jenkins-io-binary
reuseExistingPersistentVolumeClaim: true

nodeSelector:
agentpool: x86medium

rsyncd:
enabled: true

configuration:
components:
- name: jenkins
path: /rsyncd/data/jenkins
comment: "Jenkins Read-Only Mirror"
volume:
persistentVolumeClaim:
claimName: updates-jenkins-io-binary

resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi

nodeSelector:
agentpool: x86medium
lemeurherve marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 4 additions & 4 deletions config/updates.jenkins.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ repository:
volumeName: updates-jenkins-io-binary
resources:
requests:
storage: 2Gi # See file share size in https://github.com/jenkins-infra/azure/blob/main/updates.jenkins.io.tf
storage: 2Gi # See file share size in https://github.com/jenkins-infra/azure/blob/main/updates.jenkins.io.tf
# As the storage account is independently declared and created elsewhere (jenkins-infra/azure/updates.jenkins.io.tf),
# we're adding the PV definition to rattach the PVC to the existing storage account without creating a new one
# and especially without deleting it when the cluster has to be recreated.
persistentVolume:
enabled: true
spec:
capacity:
storage: 2Gi # See file share size in https://github.com/jenkins-infra/azure/blob/main/updates.jenkins.io.tf
storage: 2Gi # See file share size in https://github.com/jenkins-infra/azure/blob/main/updates.jenkins.io.tf
storageClassName: azurefile-csi-premium
accessModes:
- ReadOnlyMany
Expand All @@ -79,8 +79,8 @@ repository:
- cache=strict

replicaCount:
mirrorbits: 1 #2
files: 1 #2
mirrorbits: 1 # 2
files: 1 # 2
rsyncd: 1

rsyncd:
Expand Down
41 changes: 41 additions & 0 deletions updatecli/updatecli.d/charts/mirrorbits-parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Bump mirrorbits-parent Helm Chart Version"

scms:
default:
kind: github
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"

sources:
lastChartVersion:
kind: helmchart
name: get last chart version
spec:
url: https://jenkins-infra.github.io/helm-charts
name: mirrorbits-parent

targets:
updateChartVersion:
name: "Update the chart version for mirrorbits-parent"
kind: file
spec:
file: clusters/publick8s.yaml
matchpattern: 'chart: jenkins-infra\/mirrorbits-parent((\r\n|\r|\n)(\s+))version: .*'
replacepattern: 'chart: jenkins-infra/mirrorbits-parent${1}version: {{ source "lastChartVersion" }}'
scmid: default

actions:
default:
kind: github/pullrequest
scmid: default
title: Bump `mirrorbits-parent` helm chart version to {{ source "lastChartVersion" }}
spec:
labels:
- dependencies
- mirrorbits-parent