mirror of
https://github.com/twuni/docker-registry.helm.git
synced 2026-02-16 21:39:52 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
803018a09d | ||
|
|
8d4e020c42 | ||
|
|
43ed2639ed | ||
|
|
ab431e8015 | ||
|
|
8662c4fefb | ||
|
|
0f196d6227 | ||
|
|
4e6b389b56 | ||
|
|
8ff170786c | ||
|
|
55527bf77c | ||
|
|
d344f36b94 | ||
|
|
60cac04569 | ||
|
|
8b8e96444e | ||
|
|
458381c746 | ||
|
|
ec1706762e | ||
|
|
e3a6eb45bf |
2
.github/workflows/pr_diff.yaml
vendored
2
.github/workflows/pr_diff.yaml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
echo 'HELM_DIFF<<EOF' >> $GITHUB_ENV
|
||||
echo "$(diff -ur before after)" >> $GITHUB_ENV
|
||||
echo 'EOF' >> $GITHUB_ENV
|
||||
- uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db
|
||||
- uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943
|
||||
with:
|
||||
message: |
|
||||
Running a `helm template` smoketest on commit ${{ github.ref }} results in the following diff against `${{ github.base_ref }}`:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
description: A Helm chart for Docker Registry
|
||||
name: docker-registry
|
||||
version: 2.3.0
|
||||
appVersion: 2.8.1
|
||||
version: 3.0.0
|
||||
appVersion: 3.0.0
|
||||
home: https://hub.docker.com/_/registry/
|
||||
icon: https://helm.twun.io/docker-registry.png
|
||||
maintainers:
|
||||
|
||||
20
README.md
20
README.md
@@ -12,12 +12,27 @@ This chart will do the following:
|
||||
|
||||
* Implement a Docker registry deployment
|
||||
|
||||
## ⚠️ Repo Migration and Deprecation Notice
|
||||
|
||||
The following change only affects attempts to install or update the chart via the https://helm.twun.io repo.
|
||||
|
||||
The https://helm.twun.io repo has been migrated to https://twuni.github.io/docker-registry.helm.
|
||||
|
||||
To update your configuration, remove and re-add the repo with the new URL:
|
||||
|
||||
```console
|
||||
helm repo remove twuni
|
||||
helm repo add twuni https://twuni.github.io/docker-registry.helm
|
||||
```
|
||||
|
||||
The deprecated repo URL, https://helm.twun.io, may become unavailable as early as **October 16, 2025**.
|
||||
|
||||
## Installing the Chart
|
||||
|
||||
First, add the repo:
|
||||
|
||||
```console
|
||||
helm repo add twuni https://helm.twun.io
|
||||
helm repo add twuni https://twuni.github.io/docker-registry.helm
|
||||
```
|
||||
|
||||
To install the chart, use the following:
|
||||
@@ -79,12 +94,15 @@ their default values.
|
||||
| `secrets.swift.password` | Password for Swift configuration | `nil` |
|
||||
| `secrets.haSharedSecret` | Shared secret for Registry | `nil` |
|
||||
| `configData` | Configuration hash for docker | `nil` |
|
||||
| `configPath` | Configuration mount point in docker, `/etc/docker/registry` for registry version 2, `/etc/distribution` for version 3 | `/etc/docker/registry` |
|
||||
| `s3.region` | S3 region | `nil` |
|
||||
| `s3.regionEndpoint` | S3 region endpoint | `nil` |
|
||||
| `s3.bucket` | S3 bucket name | `nil` |
|
||||
| `s3.rootdirectory` | S3 prefix that is applied to allow you to segment data | `nil` |
|
||||
| `s3.encrypt` | Store images in encrypted format | `nil` |
|
||||
| `s3.secure` | Use HTTPS | `nil` |
|
||||
| `s3.forcepathstyle` | Use path-style addressing, needed for some s3 compatible storage (minio) | `nil` |
|
||||
| `s3.skipverify` | Allows connection to s3 storage using TLS with untrusted/self-signed certificate | `nil` |
|
||||
| `swift.authurl` | Swift authurl | `nil` |
|
||||
| `swift.container` | Swift container | `nil` |
|
||||
| `proxy.enabled` | If true, registry will function as a proxy/mirror | `false` |
|
||||
|
||||
@@ -103,6 +103,16 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||
value: {{ .Values.s3.secure | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Values.s3.forcepathstyle }}
|
||||
- name: REGISTRY_STORAGE_S3_FORCEPATHSTYLE
|
||||
value: {{ .Values.s3.forcepathstyle | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Values.s3.skipverify }}
|
||||
- name: REGISTRY_STORAGE_S3_SKIPVERIFY
|
||||
value: {{ .Values.s3.skipverify | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{- else if eq .Values.storage "swift" }}
|
||||
- name: REGISTRY_STORAGE_SWIFT_AUTHURL
|
||||
value: {{ required ".Values.swift.authurl is required" .Values.swift.authurl }}
|
||||
@@ -148,7 +158,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||
|
||||
{{- define "docker-registry.volumeMounts" -}}
|
||||
- name: "{{ template "docker-registry.fullname" . }}-config"
|
||||
mountPath: "/etc/docker/registry"
|
||||
mountPath: {{ .Values.configPath }}
|
||||
|
||||
{{- if .Values.secrets.htpasswd }}
|
||||
- name: auth
|
||||
|
||||
@@ -58,7 +58,7 @@ spec:
|
||||
- /bin/registry
|
||||
- garbage-collect
|
||||
- --delete-untagged={{ .Values.garbageCollect.deleteUntagged }}
|
||||
- /etc/docker/registry/config.yml
|
||||
- {{ .Values.configPath }}/config.yml
|
||||
{{- if .Values.garbageCollect.resources }}
|
||||
resources:
|
||||
{{- toYaml .Values.garbageCollect.resources | nindent 16 }}
|
||||
|
||||
@@ -60,7 +60,7 @@ spec:
|
||||
command:
|
||||
- /bin/registry
|
||||
- serve
|
||||
- /etc/docker/registry/config.yml
|
||||
- {{ .Values.configPath }}/config.yml
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
{{- if .Values.metrics.enabled }}
|
||||
|
||||
@@ -19,7 +19,7 @@ serviceAccount:
|
||||
|
||||
image:
|
||||
repository: registry
|
||||
tag: 2.8.1
|
||||
tag: 3.0.0
|
||||
pullPolicy: IfNotPresent
|
||||
# imagePullSecrets:
|
||||
# - name: docker
|
||||
@@ -104,6 +104,8 @@ secrets:
|
||||
# rootdirectory: /object/prefix
|
||||
# encrypt: false
|
||||
# secure: true
|
||||
# forcepathstyle: true
|
||||
# skipverify: true
|
||||
|
||||
# Options for swift storage type:
|
||||
# swift:
|
||||
@@ -133,6 +135,7 @@ metrics:
|
||||
labels: {}
|
||||
rules: {}
|
||||
|
||||
configPath: /etc/distribution
|
||||
configData:
|
||||
version: 0.1
|
||||
log:
|
||||
@@ -176,6 +179,7 @@ securityContext:
|
||||
fsGroupChangePolicy: Always
|
||||
sysctls: []
|
||||
supplementalGroups: []
|
||||
runAsUser: 1000
|
||||
fsGroup: 1000
|
||||
|
||||
priorityClassName: ""
|
||||
|
||||
Reference in New Issue
Block a user