mirror of
https://gitee.com/rancher/rancher.git
synced 2025-12-06 15:59:37 +08:00
* 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>
18 lines
792 B
Bash
Executable File
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)
|