From 4902cb0c0763d401ec7736e8be83b8bbcc427547 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Mon, 14 May 2018 15:40:30 +0200 Subject: [PATCH] Make the registry_secret_name optional in osbs.conf template Signed-off-by: Clement Verna --- roles/osbs-client/templates/osbs.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/osbs-client/templates/osbs.conf.j2 b/roles/osbs-client/templates/osbs.conf.j2 index 7db73e5843..1e76fd4839 100644 --- a/roles/osbs-client/templates/osbs.conf.j2 +++ b/roles/osbs-client/templates/osbs.conf.j2 @@ -73,7 +73,9 @@ use_auth = {{ default.use_auth }} builder_use_auth = {{ default.builder_use_auth }} distribution_scope = {{ default.distribution_scope }} registry_api_versions = {{ default.registry_api_versions }} +{% if default.registry_secret_name %} registry_secret = {{ default.registry_secret_name }} +{% endif %} builder_openshift_url = {{ default.builder_openshift_url }} [scratch] @@ -141,6 +143,8 @@ use_auth = {{ default.use_auth }} builder_use_auth = {{ default.builder_use_auth }} distribution_scope = {{ default.distribution_scope }} registry_api_versions = {{ default.registry_api_versions }} +{% if default.registry_secret_name %} registry_secret = {{ default.registry_secret_name }} +{% endif %} builder_openshift_url = {{ default.builder_openshift_url }} unique_tag_only = true