mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
CI: label VirtualMachineInstance with PR id and pipeline ids (#12716)
Helps with CI debuggability
This commit is contained in:
@@ -14,6 +14,8 @@ metadata:
|
|||||||
kubevirt.io/size: small
|
kubevirt.io/size: small
|
||||||
ci_job_id: "{{ ci_job_id }}"
|
ci_job_id: "{{ ci_job_id }}"
|
||||||
ci_job_name: "{{ lookup('ansible.builtin.env', 'CI_JOB_NAME_SLUG') }}"
|
ci_job_name: "{{ lookup('ansible.builtin.env', 'CI_JOB_NAME_SLUG') }}"
|
||||||
|
ci_pipeline_id: "{{ lookup('ansible.builtin.env', 'CI_PIPELINE_ID') }}"
|
||||||
|
ci_pr_id: "{{ lookup('ansible.builtin.env', 'PR_ID') }}"
|
||||||
# leverage the Kubernetes GC for resources cleanup
|
# leverage the Kubernetes GC for resources cleanup
|
||||||
ownerReferences:
|
ownerReferences:
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
|
|||||||
Reference in New Issue
Block a user