Skip to content

Commit 250e7cc

Browse files
author
Matthew Fisher
committed
fix(registry): make deis-cache mandatory
Sometimes the redis cache would take longer than the registry to come up. In that case, confd would then set the host and port to be "", in which case the registry would parse the YAML value as `None`. This change makes the cache mandatory in order for the registry to come up.
1 parent 676da87 commit 250e7cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

registry/templates/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ common: &common
2626
tags_cache_ttl: _env:MIRROR_TAGS_CACHE_TTL:172800 # seconds
2727

2828
cache:
29-
host: {{ or (.deis_cache_host) "" }}
30-
port: {{ or (.deis_cache_port) "" }}
29+
host: {{ .deis_cache_host }}
30+
port: {{ .deis_cache_port }}
3131
password: _env:CACHE_REDIS_PASSWORD
3232
db: 1
3333

0 commit comments

Comments
 (0)