Skip to content

Commit

Permalink
[stable/docker-registry] add persistence.deleteEnabled param (helm#10917
Browse files Browse the repository at this point in the history
)

* [docker-registry] add persistence.deleteEnabled param

Signed-off-by: Peter Mikitsh <[email protected]>

* [docker-registry] v1.6.5

Signed-off-by: Peter Mikitsh <[email protected]>

* Update Chart.yaml

Signed-off-by: David J. M. Karlsen <[email protected]>
  • Loading branch information
petermikitsh authored and k8s-ci-robot committed Jan 27, 2019
1 parent f267324 commit 4cd0563
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/docker-registry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Docker Registry
name: docker-registry
version: 1.6.4
version: 1.7.0
appVersion: 2.6.2
home: https://hub.docker.com/_/registry/
icon: https://hub.docker.com/public/images/logos/mini-logo.svg
Expand Down
1 change: 1 addition & 0 deletions stable/docker-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ their default values.
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `persistence.accessMode` | Access mode to use for PVC | `ReadWriteOnce` |
| `persistence.enabled` | Whether to use a PVC for the Docker storage | `false` |
| `persistence.deleteEnabled` | Enable the deletion of image blobs and manifests by digest | `nil` |
| `persistence.size` | Amount of space to claim for PVC | `10Gi` |
| `persistence.storageClass` | Storage Class to use for PVC | `-` |
| `persistence.existingClaim` | Name of an existing PVC to use for config | `nil` |
Expand Down
4 changes: 4 additions & 0 deletions stable/docker-registry/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ spec:
key: swiftPassword
- name: REGISTRY_STORAGE_SWIFT_CONTAINER
value: {{ required ".Values.swift.container is required" .Values.swift.container }}
{{- end }}
{{- if .Values.persistence.deleteEnabled }}
- name: REGISTRY_STORAGE_DELETE_ENABLED
value: "true"
{{- end }}
volumeMounts:
{{- if .Values.secrets.htpasswd }}
Expand Down

0 comments on commit 4cd0563

Please sign in to comment.