forked from jenkins-infra/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rename
mirror
to rsyncd-mirror
, allow setting an ingress to…
… expose `rsyncd` service and add missing updatecli manifest (jenkins-infra#608) * chore: rename `mirror` to `rsyncd-mirror` and add missing updatecli manifest * no default whitelisted source IP * allow setting an ingress to expose the rsyncd service
- Loading branch information
1 parent
61e0016
commit fc706df
Showing
17 changed files
with
144 additions
and
44 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: "1.0" | ||
description: A Helm chart which deploys a Jenkins mirror | ||
name: mirror | ||
name: rsyncd-mirror | ||
version: 0.1.23 |
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{- if .Values.ingressRsyncd.enabled -}} | ||
{{- $fullName := include "rsyncd-mirror.fullname" . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ $fullName }} | ||
labels: | ||
{{ include "rsyncd-mirror.labels" . | indent 4 }} | ||
{{- with .Values.ingressRsyncd.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.ingressRsyncd.ingressClassName }} | ||
ingressClassName: {{ .Values.ingressRsyncd.ingressClassName }} | ||
{{- end }} | ||
{{- if .Values.ingressRsyncd.tls }} | ||
tls: | ||
{{- range .Values.ingressRsyncd.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- range .Values.ingressRsyncd.hosts }} | ||
- host: {{ .host | quote }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .path }} | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ $fullName }}-rsyncd | ||
port: | ||
number: {{ int ($.Values.service.rsyncd.port) }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
4 changes: 2 additions & 2 deletions
4
charts/mirror/templates/ingress.yaml → charts/rsyncd-mirror/templates/ingress.yaml
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
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
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
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
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
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
6 changes: 3 additions & 3 deletions
6
...rror/templates/tests/test-connection.yaml → ...rror/templates/tests/test-connection.yaml
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ include "mirror.fullname" . }}-test-connection" | ||
name: "{{ include "rsyncd-mirror.fullname" . }}-test-connection" | ||
labels: | ||
{{ include "mirror.labels" . | indent 4 }} | ||
{{ include "rsyncd-mirror.labels" . | indent 4 }} | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
containers: | ||
- name: wget | ||
image: busybox | ||
command: ['wget'] | ||
args: ['{{ include "mirror.fullname" . }}:{{ .Values.service.port }}'] | ||
args: ['{{ include "rsyncd-mirror.fullname" . }}:{{ .Values.service.port }}'] | ||
restartPolicy: Never |
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Bump `rsyncd-mirror` docker image digest and 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: | ||
rsyncd: | ||
kind: dockerdigest | ||
name: "Get jenkinsciinfra/rsyncd:cron-latest docker image digest" | ||
spec: | ||
image: "jenkinsciinfra/rsyncd" | ||
tag: "cron-latest" | ||
architecture: "amd64" | ||
transformers: | ||
- trimprefix: 'sha256:' | ||
|
||
# no condition to test docker image availability as we're using a digest from docker hub | ||
|
||
targets: | ||
updateChart: | ||
name: Update rsyncd helm chart | ||
kind: helmchart | ||
sourceid: rsyncd | ||
spec: | ||
name: charts/rsyncd-mirror | ||
key: image.rsync.tag | ||
versionincrement: patch | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
title: Bump `rsyncd-mirror` docker image to {{ source "rsyncd" }} | ||
spec: | ||
labels: | ||
- dependencies | ||
- rsyncd |