Lacking documentation on how to use pod_labels on the kubernetes-executor
The documentation on the kubernetes executor says:
pod_labels: A set of labels to be added to each build pod created by the runner. The value of these can include environment variables for expansion.
This can be very useful for tracking costs and other common tasks. But, the documentation doesn't elaborate this and some questions are raised.
- How do I need to include the environment variables to be expanded? ($VARIABLE, ${VARIABLE}, VARIABLE, $VARIABLE1; $VARIABLE2)
- This variable needs to be present in the gitlab-runner environment, pod environment or Gitlab CI/CD variables?
I don't know if I am the only one needing this clarification but maybe it will be useful to others.