Explorar el Código

Restrict the middleware stanza contains 'registry' and 'storage' at least on 3.3

Gan Huang hace 8 años
padre
commit
55fa3aafb3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      roles/openshift_hosted/templates/registry_config.j2

+ 3 - 1
roles/openshift_hosted/templates/registry_config.j2

@@ -58,8 +58,10 @@ auth:
   openshift:
     realm: openshift
 middleware:
+{% if openshift.common.version_gte_3_3_or_1_3 | bool %}
   registry:
   - name: openshift
+{% endif -%}
   repository:
   - name: openshift
     options:
@@ -71,7 +73,7 @@ middleware:
       baseurl: {{ openshift.hosted.registry.storage.s3.cloudfront.baseurl }}
       privatekey: {{ openshift.hosted.registry.storage.s3.cloudfront.privatekeyfile }}
       keypairid: {{ openshift.hosted.registry.storage.s3.cloudfront.keypairid }}
-{% else %}
+{% elif openshift.common.version_gte_3_3_or_1_3 | bool %}
   storage:
   - name: openshift
 {% endif -%}