I’m currently testing the release candidates of Drone on K8s and would like to suggest some changes around labels and perhaps annotations.
Use the label
k8s-app=dronefor jobs. This is standard for almost every resource on k8s and is currently missing from pipeline jobs created by Drone. This would allow a user to run
kubectl delete job -l k8s-app=dronefor example.
Add more labels. Labels for build ID, repo, etc. I see we have annotations for these but not labels. Are the annotations used/read by either Drone itself or
drone/controller? If not, then I would move all the annotations to the labels. If they are used, then duplicate some of this data to the labels so they can be used with
kubectl <verb> -l xxx=yyy