Skip to content

Commit

Permalink
(cherry-pick) fix storage.redirect.disable migrate template error rel…
Browse files Browse the repository at this point in the history
…ease-2.9.0 (#19336)

(cherry-pick) fix storage.redirect.disable migrate template error

Signed-off-by: yminer <[email protected]>

update boolean to lowercase
  • Loading branch information
MinerYang committed Sep 12, 2023
1 parent 398078f commit 0b9645d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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
6 changes: 3 additions & 3 deletions make/photon/prepare/migrations/version_2_9_0/harbor.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,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 0b9645d

Please sign in to comment.