Skip to content

Add labels and annotations to deployment

What does this MR do?

Adds options to allow setting labels and annotations to Deployment

Why was this MR needed?

In our environment, we need to set labels and annotations on Deployment to attach metadata such as team, git repo and others.

What's the best way to test this MR?

  • Use the MR branch
  • Run the command : helm template gitlab-runner .
  • No labels and annotations are added to deployment
  • Run the command : helm template gitlab-runner . -f PATH_TO_YOUR_VALUES_YAML
  • Labels and annotations defined in values are added to deployment

Example:

deploymentAnnotations:
  downscaler/uptime: Mon-Fri 09:00-17:00 Europe/Paris
  reloader.stakater.com/auto: "true"

deploymentLabels:
  owner.team: my_cool_team
  another.label: my_other_cool_label

What are the relevant issue numbers?

closes #444 (closed) #171 (closed)

Merge request reports