This is a simple script that scans a directory tree for Chart.yaml
files and verifies if all of their dependencies are up to date.
If invalid or outdated versions are found, then the script will exit with code 1.
The main purpose of this script is to be run as a scheduled job in gitlab-ci. The job will fail if any dependencies are outdated.
The script takes one optional parameter: the path where to look for Chart.yaml
files.
Some charts publish pre-release version into the same repository as their release versions. To prevent these pre-release version from being considered, a regex can be specified as a line-comment, that matches only the relevant versions, for example like this:
dependencies:
- name: k8ssandra-operator
repository: https://helm.k8ssandra.io/stable
version: 1.7.0 # ^\d+\.\d+\.\d+$