Commit 536d3514 authored by DJ Mountney's avatar DJ Mountney Committed by DJ Mountney

Merge branch '1186-registry-compatibility-schema1' into 'master'

Registry: add compability.schema1 config

See merge request charts/gitlab!724
parent d80df147
Pipeline #52110188 passed with stages
in 19 minutes and 43 seconds
---
title: 'Registry: Add caompatibility for Docker manifest schema1'
merge_request: 724
author:
type: added
......@@ -37,6 +37,13 @@ data:
# This is provided from the initContainer execution, at a known path.
rootcertbundle: /etc/docker/registry/certificate.crt
autoredirect: {{ .Values.authAutoRedirect }}
{{- if .Values.compatibility }}
compatibility:
{{- if .Values.compatibility.schema1 }}
schema1:
enabled: {{ eq true .Values.compatibility.schema1.enabled }}
{{- end }}
{{- end }}
storage:
{{- if .Values.storage }}
{{- else if .Values.global.minio.enabled }}
......
......@@ -121,3 +121,8 @@ maxReplicas: 10
maxUnavailable: 1
storage: {}
minio: {}
# https://github.com/docker/distribution/blob/master/docs/configuration.md#compatibility
compatibility:
schema1:
enabled: false
......@@ -35,6 +35,9 @@ registry:
certificate:
replicas:
storage:
compatibility:
schema1:
enabled: false
ingress:
enabled:
tls:
......@@ -206,7 +209,30 @@ certificate:
key: registry-auth.crt
```
#### replicas
### compatiblity
The `compatibility` field is a map relating directly to the configuration file's
[compatiblity](https://github.com/docker/distribution/blob/master/docs/configuration.md#compatibility)
section.
Default contents:
```
compatibility:
schema1:
enabled: false
```
#### schema1
The `schema1` section controls the compatibility of the service with version 1
of the Docker manifest schema. This setting is provide as a means of supporting
Docker clients earlier than `1.10`, after which schema v2 is used by default.
If you _must_ support older verions of Docker clients, you can do so by setting
`registry.compatbility.schema1.enabled: true`.
### replicas
Field `replicas` is an integer, controlling the number of [registry][] instances to create as a part of the set. This defaults to `1`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment