Files
rancher/scripts/export-config
Furkat Gofurov 4239803e44 Introduce a new Rancher Turtles version arg (#51968)
* Introduce a new `CATTLE_RANCHER_TURTLES_VERSION` and `turtlesVersion` in build.yaml

This PR introduces a new arg/env var called `CATTLE_RANCHER_TURTLES_VERSION`
that will be used in Dockerfile, scripts and GitHub workflows to pass
the system chart version for Rancher Turtles project.

* Run go generate

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>

---------

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
Co-authored-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-09-22 10:19:08 +02:00

18 lines
792 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -n "$DEBUG" ]; then
set -x
fi
file="$(git rev-parse --show-toplevel)/build.yaml"
export CATTLE_RANCHER_WEBHOOK_VERSION=$(grep -m1 'webhookVersion' "$file" | cut -d ' ' -f2)
export CATTLE_REMOTEDIALER_PROXY_VERSION=$(grep -m1 'remoteDialerProxyVersion' "$file" | cut -d ' ' -f2)
export CATTLE_RANCHER_PROVISIONING_CAPI_VERSION=$(grep -m1 'provisioningCAPIVersion' "$file" | cut -d ' ' -f2)
export CATTLE_RANCHER_TURTLES_VERSION=$(grep -m1 'turtlesVersion' "$file" | cut -d ' ' -f2)
export CATTLE_CSP_ADAPTER_MIN_VERSION=$(grep -m1 'cspAdapterMinVersion' "$file" | cut -d ' ' -f2)
export CATTLE_DEFAULT_SHELL_VERSION=$(grep -m1 'defaultShellVersion' "$file" | cut -d ' ' -f2)
export CATTLE_FLEET_VERSION=$(grep -m1 'fleetVersion' "$file" | cut -d ' ' -f2)