Skip to content

Commit

Permalink
cdn-definitions supports releasever_aliases [RHELDST-7900]
Browse files Browse the repository at this point in the history
  • Loading branch information
crungehottman committed Nov 4, 2021
1 parent c649292 commit 13d23b3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/cdn_definitions/data.json
Expand Up @@ -64,6 +64,16 @@
"0.0"
]
},
"releasever_alias": [
{
"dest": "/content/dist/rhel0/0.9",
"src": "/content/dist/rhel0/0"
},
{
"dest": "/content/dist/rhel1/1.11",
"src": "/content/dist/rhel1/1"
}
],
"rhel_open_dist": [
0
],
Expand Down
15 changes: 15 additions & 0 deletions src/cdn_definitions/data.yaml
Expand Up @@ -94,6 +94,21 @@ origin_alias:
dest: /origin/rpms


# Aliases between two RHEL-X repositories, both of which contain the latest RHEL-X release.
releasever_alias:

# Each item defines a "src" (a floating RHEL-X repository that always contains the latest content
# for a major RHEL release) and a "dest" (a RHEL-X.Y repository, containing the published content
# for the latest minor release version of RHEL-X).
#
# For example, /content/dist/rhelX/X should be an alias for /content/dist/rhelX/X.Y, where X is a
# major version of RHEL and X.Y is a minor version of RHEL.
- src: /content/dist/rhel0/0
dest: /content/dist/rhel0/0.9
- src: /content/dist/rhel1/1
dest: /content/dist/rhel1/1.11


# Content set prefixes which should be using symlinks at the $releasever level
# according to normal business logic, but for historical reasons are exempt
# and instead do not use symlinks.
Expand Down
3 changes: 3 additions & 0 deletions src/cdn_definitions/schema.json
Expand Up @@ -274,6 +274,9 @@
"release_stream_mappings": {
"$ref": "#/definitions/release_stream_mapping"
},
"releasever_alias": {
"$ref": "#/definitions/path_alias_list"
},
"rhel_open_dist": {
"$ref": "#/definitions/major_version_list"
},
Expand Down
3 changes: 3 additions & 0 deletions src/cdn_definitions/schema.yaml
Expand Up @@ -222,6 +222,9 @@ properties:
origin_alias:
$ref: "#/definitions/path_alias_list"

releasever_alias:
$ref: "#/definitions/path_alias_list"

symlink_exceptions:
$ref: "#/definitions/symlink_exception_list"

Expand Down

0 comments on commit 13d23b3

Please sign in to comment.