Skip to content

Commit 24d6a9a

Browse files
committed
feat(docker-registry-ui): add ui.useControlCacheHeader introduced by v2.3.0
1 parent 49b8626 commit 24d6a9a

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

charts/docker-registry-ui/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: docker-registry-ui
3-
version: 0.3.0
4-
appVersion: "2.2.1"
3+
version: 0.4.0
4+
appVersion: "2.3.0"
55
kubeVersion: ">=1.19.0-0"
66
description: The simplest and most complete UI for your private registry
77
home: https://github.com/Joxit/docker-registry-ui
@@ -17,7 +17,7 @@ annotations:
1717
artifacthub.io/prerelease: "false"
1818
artifacthub.io/images: |
1919
- name: docker-registry-ui
20-
image: joxit/docker-registry-ui:2.2.1
20+
image: joxit/docker-registry-ui:2.3.0
2121
- name: registry
2222
image: registry:2.8.1
2323
artifacthub.io/license: MIT

charts/docker-registry-ui/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ helm upgrade --install docker-registry-ui joxit/docker-registry-ui
4848
| `ui.historyCustomLabels` | `[]` | Expose custom labels in history page, custom labels will be processed like maintainer label. |
4949
| `ui.nginxProxyHeaders` | `[]` | Update the default Nginx configuration and **set custom headers** for your backend docker registry. Only when `ui.proxy` is used. |
5050
| `ui.nginxProxyPassHeaders` | `[]` | Update the default Nginx configuration and **forward custom headers** to your backend docker registry. Only when `ui.proxy` is used. |
51+
| `ui.useControlCacheHeader` | `false` | Add header `Control-Cache: no-store, no-cache` on requests to registry server. |
5152
| `ui.runAsRoot` | `true` | Use root or nginx user inside the container, when this is false the target port must be greater or equal to 1024. |
52-
| `ui.image` | `joxit/docker-registry-ui:2.2.1` | The name and tag of the docker image of the interface |
53+
| `ui.image` | `joxit/docker-registry-ui:2.3.0` | The name and tag of the docker image of the interface |
5354
| `ui.imagePullSecrets` | `-` | Override default image pull secrets |
5455
| `ui.imagePullPolicy` | `-` | Override default pull policy |
5556
| `ui.resources` | `{}` | The resource settings for user interface pod. |

charts/docker-registry-ui/templates/ui-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ spec:
7676
value: {{ .Values.ui.historyCustomLabels | join "," }}
7777
- name: NGINX_LISTEN_PORT
7878
value: {{ .Values.ui.service.targetPort | quote }}
79+
- name: USE_CONTROL_CACHE_HEADER
80+
value: {{ .Values.ui.useControlCacheHeader | quote }}
7981
ports:
8082
- name: http
8183
containerPort: {{ .Values.ui.service.targetPort }}

charts/docker-registry-ui/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ ui:
3939
# Example:
4040
# nginxProxyPassHeaders: [ my-first-header, my-second-header ]
4141
nginxProxyPassHeaders: []
42+
# Add header Control-Cache: no-store, no-cache on requests to registry server.
43+
# This needs to update your registry configuration with : `Access-Control-Allow-Headers: ['Authorization', 'Accept', 'Cache-Control']`
44+
useControlCacheHeader: false
4245
# Use root or nginx user inside the container, when this is false the target port must be greater or equal to 1024.
4346
runAsRoot: true
4447
# The name and tag of the docker image of the interface
45-
image: joxit/docker-registry-ui:2.2.1
48+
image: joxit/docker-registry-ui:2.3.0
4649
# Override default image pull secrets
4750
imagePullSecrets: "-"
4851
# Override default pull policy

0 commit comments

Comments
 (0)