Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
959d0fd3
Unverified
Commit
959d0fd3
authored
Jul 14, 2021
by
Waqar Ahmed
Committed by
GitHub
Jul 14, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #90 from truenas/fix-chia-versioning
Update chia versioning update strategy
parents
984c5c2e
c0bffc1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
charts/chia/upgrade_strategy
charts/chia/upgrade_strategy
+3
-2
test/chia/upgrade_strategy
test/chia/upgrade_strategy
+3
-2
No files found.
charts/chia/upgrade_strategy
View file @
959d0fd3
...
...
@@ -7,13 +7,14 @@ from catalog_update.upgrade_strategy import semantic_versioning
def
newer_mapping
(
image_tags
):
key
=
list
(
image_tags
.
keys
())[
0
]
tags
=
{
t
.
strip
(
'v'
).
replace
(
'_'
,
'.'
):
t
for
t
in
image_tags
[
key
]}
version
=
semantic_versioning
(
image_tags
[
key
])
if
not
version
:
return
{}
return
{
'tags'
:
{
key
:
version
},
'app_version'
:
version
,
'tags'
:
{
key
:
tags
[
version
]
},
'app_version'
:
tags
[
version
]
,
}
...
...
test/chia/upgrade_strategy
View file @
959d0fd3
...
...
@@ -7,13 +7,14 @@ from catalog_update.upgrade_strategy import semantic_versioning
def
newer_mapping
(
image_tags
):
key
=
list
(
image_tags
.
keys
())[
0
]
tags
=
{
t
.
strip
(
'v'
).
replace
(
'_'
,
'.'
):
t
for
t
in
image_tags
[
key
]}
version
=
semantic_versioning
(
image_tags
[
key
])
if
not
version
:
return
{}
return
{
'tags'
:
{
key
:
version
},
'app_version'
:
version
,
'tags'
:
{
key
:
tags
[
version
]
},
'app_version'
:
tags
[
version
]
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment