Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Helm: service - add extraLabels for both the main and console services #21540

@AntonOfTheWoods

Description

@AntonOfTheWoods

Is your feature request related to a problem? Please describe.
Some systems, like istio require having labels on a service for certain features.

Describe the solution you'd like

Something like:

...
  labels:
    app: {{ template "minio.name" . }}
    chart: {{ template "minio.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
    monitoring: "true"
    {{- if .Values.service.extraLabels }}
    {{- toYaml .Values.service.extraLabels | nindent 4 }}
    {{- end }}
  {{- if .Values.service.annotations }}
  annotations: {{- toYaml .Values.service.annotations | nindent 4 }}
  {{- end }}

Describe alternatives you've considered
Manually running a kubectl label command outside of helm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions