Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
5f2f907d
Commit
5f2f907d
authored
Feb 20, 2025
by
Sagar Arora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(ci): change image rentention from 4weeks to 3weeks
Signed-off-by:
Sagar Arora
<
sagar.arora@openairinterface.org
>
parent
6d9c2c35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+2
-2
No files found.
ci-scripts/cls_cluster.py
View file @
5f2f907d
...
...
@@ -315,9 +315,9 @@ class Cluster:
# delete old images by Sagar Arora <sagar.arora@openairinterface.org>:
# 1. retrieve all images and their timestamp
# 2. awk retrieves those whose timestamp is older than
4
weeks
# 2. awk retrieves those whose timestamp is older than
3
weeks
# 3. issue delete command on corresponding istags (the images are dangling and will be cleaned by the registry)
delete_cmd
=
"oc get istag -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{
\"\\
n
\"
}}{{end}}' | awk '$2 <=
\"
'$(date -d '-
4
weeks' -Ins --utc | sed 's/+0000/Z/')'
\"
{ print $1 }' | xargs --no-run-if-empty oc delete istag"
delete_cmd
=
"oc get istag -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{
\"\\
n
\"
}}{{end}}' | awk '$2 <=
\"
'$(date -d '-
3
weeks' -Ins --utc | sed 's/+0000/Z/')'
\"
{ print $1 }' | xargs --no-run-if-empty oc delete istag"
response
=
self
.
cmd
.
run
(
delete_cmd
)
logging
.
debug
(
f"deleted images:
\n
{
response
.
stdout
}
"
)
...
...
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