The source project of this merge request has been removed.
Add Kubernetes pod label sanitization
1 unresolved thread
1 unresolved thread
Compare changes
Adding sanitation for kubernetes labels to avoid issues with non conformative variables. executorkubernetes
Currently the user needs to be careful when declaring variables in the Kubernetes labels. Such labels may not conform with the restrictions for Labels in Kubernetes which will result in a failing pipeline.
Add the following configuration to a kubernetes executor:
[runners.kubernetes.pod_labels]
forbidden_label = "@Hello world this value is not valid--"
job_name = "${CI_JOB_NAME}"
The job_name
can illustrate one of the possible usages.
Closes #4565 (closed)