7 Commits

Author SHA1 Message Date
Devin Canterberry
e6bf1b7833 v1.11.0 Release 2021-06-11 21:40:25 -07:00
Devin Canterberry
c3dd512501 Merge pull request #18 from jrhorner1/main
Add support for registry proxy/mirror
2021-06-11 19:32:22 -07:00
Jesse Horner
51c6e55ddb add support for registry proxy 2021-06-11 12:07:48 -04:00
Devin Canterberry
b3677863c7 🏁 Increment chart version for v1.10.1 release 2021-02-14 19:58:55 -08:00
Devin Canterberry
89760bc72c Merge pull request #8 from nightscape/patch-1
Rename port to match Istio naming conventions
2021-02-14 13:40:49 -08:00
Martin Mauch
cbb527450d Port name is http or https plus port 2021-02-03 23:24:16 +01:00
Martin Mauch
829c10f509 Rename port to match Istio naming conventions
Istio requires the service port to be named like `<protocol>[-<suffix>]`.
If possible, it would be good to rename it here to match this requirement.
2021-01-27 00:24:19 +01:00
6 changed files with 34 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Docker Registry
name: docker-registry
version: 1.10.0
version: 1.11.0
appVersion: 2.7.1
home: https://hub.docker.com/_/registry/
icon: https://hub.docker.com/public/images/logos/mini-logo.svg

View File

@@ -75,6 +75,10 @@ their default values.
| `s3.secure` | Use HTTPS | `nil` |
| `swift.authurl` | Swift authurl | `nil` |
| `swift.container` | Swift container | `nil` |
| `proxy.enabled` | If true, registry will function as a proxy/mirror | `false` |
| `proxy.remoteurl` | Remote registry URL to proxy requests to | `https://registry-1.docker.io` |
| `proxy.username` | Remote registry login username | `nil` |
| `proxy.password` | Remote registry login password | `nil` |
| `nodeSelector` | node labels for pod assignment | `{}` |
| `affinity` | affinity settings | `{}` |
| `tolerations` | pod tolerations | `[]` |

View File

@@ -154,6 +154,20 @@ spec:
- name: REGISTRY_STORAGE_SWIFT_CONTAINER
value: {{ required ".Values.swift.container is required" .Values.swift.container }}
{{- end }}
{{- if .Values.proxy.enabled }}
- name: REGISTRY_PROXY_REMOTEURL
value: {{ required ".Values.proxy.remoteurl is required" .Values.proxy.remoteurl }}
- name: REGISTRY_PROXY_USERNAME
valueFrom:
secretKeyRef:
name: {{ template "docker-registry.fullname" . }}-secret
key: proxyUsername
- name: REGISTRY_PROXY_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "docker-registry.fullname" . }}-secret
key: proxyPassword
{{- end }}
{{- if .Values.persistence.deleteEnabled }}
- name: REGISTRY_STORAGE_DELETE_ENABLED
value: "true"

View File

@@ -35,3 +35,10 @@ data:
swiftPassword: {{ .Values.secrets.swift.password | b64enc | quote }}
{{- end }}
{{- end }}
{{- if .Values.proxy.username }}
proxyUsername: {{ .Values.proxy.username | b64enc | quote }}
{{- end }}
{{- if .Values.proxy.password }}
proxyPassword: {{ .Values.proxy.password | b64enc | quote }}
{{- end }}

View File

@@ -32,7 +32,7 @@ spec:
ports:
- port: {{ .Values.service.port }}
protocol: TCP
name: {{ .Values.service.name }}
name: {{ if .Values.tlsSecretName }}https{{ else }}http{{ end }}-{{ .Values.service.port }}
targetPort: 5000
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{ .Values.service.nodePort }}

View File

@@ -97,6 +97,13 @@ secrets:
# authurl: http://swift.example.com/
# container: my-container
# https://docs.docker.com/registry/recipes/mirror/
proxy:
enabled: false
remoteurl: https://registry-1.docker.io
username: ""
password: ""
configData:
version: 0.1
log: