mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-03 13:50:11 +00:00
CI: add variables needed for k8s runners
The Kas container needs to use the entrypoint as that is where the user changes from root to a normal user. Also set the KUBERNETES_CPU_REQUEST to the variable CPU_REQUEST as this needs to be tuned per-deployment. Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
image: ghcr.io/siemens/kas/kas:latest-release
|
image: ghcr.io/siemens/kas/kas:latest-release
|
||||||
|
|
||||||
|
# These are needed as the k8s executor doesn't respect the container entrypoint
|
||||||
|
# by default
|
||||||
|
variables:
|
||||||
|
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: 0
|
||||||
|
FF_KUBERNETES_HONOR_ENTRYPOINT: 1
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- prep
|
- prep
|
||||||
- build
|
- build
|
||||||
@@ -30,6 +36,8 @@ stages:
|
|||||||
# Generalised fragment to do a Kas build
|
# Generalised fragment to do a Kas build
|
||||||
.build:
|
.build:
|
||||||
extends: .setup
|
extends: .setup
|
||||||
|
variables:
|
||||||
|
KUBERNETES_CPU_REQUEST: $CPU_REQUEST
|
||||||
script:
|
script:
|
||||||
- KASFILES=$(./ci/jobs-to-kas "$CI_JOB_NAME")
|
- KASFILES=$(./ci/jobs-to-kas "$CI_JOB_NAME")
|
||||||
- kas shell --update --force-checkout $KASFILES -c 'cat conf/*.conf'
|
- kas shell --update --force-checkout $KASFILES -c 'cat conf/*.conf'
|
||||||
|
|||||||
Reference in New Issue
Block a user