josmo / drone-k8s-deployment

Golang drone plugin to update k8s deployments
2 stars 2 forks source link

date_label example usage #2

Closed lnikell closed 6 years ago

lnikell commented 6 years ago

Hi, could you please provide the example usage of data_label. I suppose that you assume to use it as a hack for force upgrade of a container. I'm just thinking maybe better for this case will be to just have an option such as "force: true" which will add label by default without extra configuration.

josmo commented 6 years ago

yeah this just allows you to decide what the annotation should be ie.

date_label: deployment.drone.io/date-deployed

I'm down if you want to add a PR. It is there to force the container to upgrade if you're delpoying latest.