Skip to content

Commit

Permalink
oc-mirror: allow to parse directly min and max version
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Oct 31, 2024
1 parent 62fdc59 commit e7b6c9d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/mirror-config.yaml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ mirror:
{% else %}
- name: {{ package }}
{% endif %}
{% if package.minVersion is defined %}
minVersion: {{ package.minVersion }}
{% endif %}
{% if package.maxVersion is defined %}
maxVersion: {{ package.maxVersion }}
{% endif %}
{% if package.channels is defined and package.channels|length > 0 %}
channels:
{% for channel in package.channels %}
Expand Down Expand Up @@ -48,6 +54,12 @@ mirror:
{% else %}
- name: {{ package }}
{% endif %}
{% if package.minVersion is defined %}
minVersion: {{ package.minVersion }}
{% endif %}
{% if package.maxVersion is defined %}
maxVersion: {{ package.maxVersion }}
{% endif %}
{% if package.channels is defined and package.channels|length > 0 %}
channels:
{% for channel in package.channels %}
Expand Down Expand Up @@ -75,6 +87,12 @@ mirror:
{% else %}
- name: {{ package }}
{% endif %}
{% if package.minVersion is defined %}
minVersion: {{ package.minVersion }}
{% endif %}
{% if package.maxVersion is defined %}
maxVersion: {{ package.maxVersion }}
{% endif %}
{% if package.channels is defined and package.channels|length > 0 %}
channels:
{% for channel in package.channels %}
Expand Down Expand Up @@ -102,6 +120,12 @@ mirror:
{% else %}
- name: {{ package }}
{% endif %}
{% if package.minVersion is defined %}
minVersion: {{ package.minVersion }}
{% endif %}
{% if package.maxVersion is defined %}
maxVersion: {{ package.maxVersion }}
{% endif %}
{% if package.channels is defined and package.channels|length > 0 %}
channels:
{% for channel in package.channels %}
Expand Down

0 comments on commit e7b6c9d

Please sign in to comment.