Release info shows latest available version of helm charts and deployments as used by CNO components.
The tool reads PlatformProductRelease manifests from a k8s cluster to detect the installed CNO components. Next, available upgrades and patches are searched for helm charts, github releases, ansible role dependencies and pip deployments.
Example gitlab pipeline is provided below.
image: registry.gitlab.com/logius/cloud-native-overheid/tools/release-info:latest
stages:
- installed
- release
# The .installed jobs read PlatformProductRelease manifests from the cluster and dump this info in a <cluster>.json file.
.installed:
stage: installed
script:
- kubectl config rename-context gitlab-deploy ${CI_ENVIRONMENT_NAME}
- /bin/release-info show-installed-products
artifacts:
paths:
- ./versions/
expire_in: 1 hour
cluster1:
extends: .installed
environment: cluster1
cluster2:
extends: .installed
environment: cluster2
# The release-info job reads the <cluster>.json files with information and searches for upgrades and patches.
release-info:
stage: release
script:
- /bin/release-info show-release-info