Skip to content

Add support for common labels to minio deployment

Silvester Wainaina requested to merge add-common-labels-minio into master

What does this MR do?

This MR adds support for common labels to the minio deployment

  • To test, add the labels to global configuration or within the minio deployment
global:
  common:
    labels: 
      environment: production
  • Confirm that the created resources pod, deployment, services, etc have the added labels

    kubectl get pod gitlab-minio-7ffd4b959-vgltv -o yaml

apiVersion: v1
kind: Pod
metadata:
  annotations:
    cni.projectcalico.org/podIP: 10.16.4.20/32
  creationTimestamp: "2021-05-17T06:36:55Z"
  generateName: gitlab-minio-7ffd4b959-
  labels:
    app: minio
    chart: minio-0.4.3
    component: app
    environment: production
    heritage: Helm
    pod-template-hash: 7ffd4b959
    release: gitlab

Related issues

Closes #2630 (closed)

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Merge Request Title and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Tests added
  • Integration tests added to GitLab QA
  • Equivalent MR/issue for omnibus-gitlab opened
Edited by Silvester Wainaina

Merge request reports