Skip to content

Commit

Permalink
(cherry-pick)fix storage.redirect.disable migrate template error rele…
Browse files Browse the repository at this point in the history
…ase-2.8.0 (#19337)

fix storage.redirect.disable migrate template error

Signed-off-by: yminer <yminer@vmware.com>
  • Loading branch information
MinerYang committed Sep 12, 2023
1 parent dd959fb commit 7a43ecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions make/photon/prepare/migrations/version_2_8_0/harbor.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ storage_service:
{% elif key == 'redirect' %}
# # set disable to true when you want to disable registry redirect
redirect:
{% if value.disabled is not none %}
disable: {{ value.disabled }}
{% if storage_service.redirect.disabled is defined %}
disable: {{ storage_service.redirect.disabled | lower}}
{% else %}
disable: {{ value.disable }}
disable: {{ storage_service.redirect.disable | lower}}
{% endif %}
{% else %}
# # storage backend, default is filesystem, options include filesystem, azure, gcs, s3, swift and oss
Expand Down

0 comments on commit 7a43ecc

Please sign in to comment.