staging instance, all data can be removed at all time

Skip to content

Add subcommand update-values to update the swh-charts/values-...yaml

This reads the tags from the input (tags expected to be from the swh-apps repository). Then computes the tags that needs to be updated in the targetted /path/to/swh-charts/values-swh-applications.yaml.

Imagine a jenkins job triggering the clone of the repository swh-charts and swh-apps. Then lists in most recent order the tags from swh-apps to pass along that script. It then updates the swh-charts:/values-swh-applications.yaml. And then commit, push and update the MR already opened with the updates.

$ cd swh-apps
$ git tag -l | sort -r | docker run ... build-deps update-values \
  --value-filepath /path/to/swh-charts/values-swh-applications.yaml

[1] Example of diff when applying this to the current committed example values.yaml:

@@ -1,20 +1,20 @@
 swh_graphql_image: softwareheritage/graphql
-swh_graphql_image_version: '20220806.2'
+swh_graphql_image_version: '20221006.2'
 swh_indexer_image: container-registry.softwareheritage.org/swh/infra/swh-apps/indexer
-swh_indexer_image_version: '20221028.1'
+swh_indexer_image_version: '20221130.1'
 swh_loader_bzr_image: softwareheritage/loader_bzr
-swh_loader_bzr_image_version: '20220825.1'
+swh_loader_bzr_image_version: '20220926.1'
 swh_loader_cvs_image: softwareheritage/loader_cvs
-swh_loader_cvs_image_version: '20220712.1'
+swh_loader_cvs_image_version: '20221019.1'
 swh_loader_git_image: container-registry.softwareheritage.org/swh/infra/swh-apps/loader_git
-swh_loader_git_image_version: '20211002.2'
+swh_loader_git_image_version: '20221104.2'
 swh_loader_highpriority_image: container-registry.softwareheritage.org/swh/infra/swh-apps/loader_highpriority
-swh_loader_highpriority_image_version: '20221213.1'
+swh_loader_highpriority_image_version: '20221214.1'
 swh_loader_mercurial_image: softwareheritage/loader_mercurial
-swh_loader_mercurial_image_version: '20220925.1'
+swh_loader_mercurial_image_version: '20220926.1'
 swh_loader_package_image: softwareheritage/loader_package
-swh_loader_package_image_version: '20221025.1'
+swh_loader_package_image_version: '20221026.1'
 swh_loader_svn_image: container-registry.softwareheritage.org/swh/infra/swh-apps/loader_svn
-swh_loader_svn_image_version: '20221112.1'
+swh_loader_svn_image_version: '20221214.1'
 swh_storage_replayer_image: container-registry.softwareheritage.org/swh/infra/swh-apps/storage-replayer
-swh_storage_replayer_image_version: '20221226.1'
+swh_storage_replayer_image_version: '20221227.1'

Ref. sysadm-environment#4724

/cc @teams/sysadmin

Edited by Antoine R. Dumont

Merge request reports