Use the cache.secret template to check if the secretName is set
This is in a template so that it can be overwritten by the gitlab chart. As a result it needs to be used instead of directly checking the values.
Fixes gitlab#1405 (closed)
Introduced in !111 (merged)