I setup a docker registry using the official helm chart on my k8s cluster. I tried configuring notifications for my registry as per the docs, as follows:
apiVersion: v1
data:
config.yml: |-
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
http:
addr: :5000
headers:
X-Content-Type-Options:
- nosniff
notifications:
endpoints:
- name: keel
url: http://keel.example.com/v1/webhooks/registry
headers:
Content-Type: application/json
timeout: 500ms
threshold: 5
backoff: 1s
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
version: 0.1
kind: ConfigMap
After changing the config to include notifications, the registry fails to start as it does not recognize the configuration. I get this error:
configuration error: error parsing /etc/docker/registry/config.yml: yaml: unmarshal errors:
line 16: cannot unmarshal !!str `applica...` into []string
Usage:
registry serve <config> [flags]
Flags:
-h, --help=false: help for serve
Additional help topics: