Checks
Controller Version
0.11.0
Deployment Method
ArgoCD
Checks
To Reproduce
1. Create a regular autoscalingrunnerset
2. Create an autoscalingrunnerset with container mode "kubernetes"
3. Run a workflow that displays the environment variables (like `env`)
4. In kubernetes mode, variables like `GITHUB_ACTIONS` and `CI` are missing
Describe the bug
In kubernetes mode, variables like GITHUB_ACTIONS and CI are missing, even though these are specified as being [default environment variables])https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables).
Describe the expected behavior
Both GITHUB_ACTIONS and CI environment variables should be present and contain the value true
Additional Context
Runner setup snippets from helm values
containerMode:
type: kubernetes
kubernetesModeWorkVolumeClaim:
storageClassName: default
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
template:
spec:
securityContext:
fsGroup: 123
containers:
- command:
- /home/runner/run.sh
env:
- name: ACTIONS_RUNNER_CONTAINER_HOOKS
value: /home/runner/k8s/index.js
- name: ACTIONS_RUNNER_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER
value: 'true'
image: 'ghcr.io/actions/actions-runner:latest'
name: runner
volumeMounts:
- mountPath: /home/runner/_work
name: work
Controller Logs
There doesn't seem to be an error with the controller, but for completeness, here it is https://gist.github.com/reiniertimmer/547744ef5178b90b27f09b04ade3f576
Runner Pod Logs
https://gist.github.com/reiniertimmer/ca2cdaca95706c1bc945a100d30820bd
Checks
Controller Version
0.11.0
Deployment Method
ArgoCD
Checks
To Reproduce
Describe the bug
In kubernetes mode, variables like
GITHUB_ACTIONSandCIare missing, even though these are specified as being [default environment variables])https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables).Describe the expected behavior
Both
GITHUB_ACTIONSandCIenvironment variables should be present and contain the valuetrueAdditional Context
Controller Logs
There doesn't seem to be an error with the controller, but for completeness, here it is https://gist.github.com/reiniertimmer/547744ef5178b90b27f09b04ade3f576Runner Pod Logs