Commit bca94b96 authored by Hossein Pursultani's avatar Hossein Pursultani

Replace subgroup with GitLab class annotation

parent ff6e9a64
---
title: Replace subgroup with GitLab class annotation
merge_request: 772
author:
type: changed
......@@ -6,6 +6,8 @@ metadata:
controller-tools.k8s.io: "1.0"
controller.gitlab.com: {{ .Values.version | quote }}
revision: "{{ .Release.Revision }}"
annotations:
gitlab.com/class: {{ .Release.Name }}
{{ include "gitlab.standardLabels" $ | indent 4 }}
name: {{ template "fullname" . }}
spec:
......
......@@ -26,7 +26,7 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ coalesce .Values.image.tag (include "gitlab.operator.parseVersion" .Values.version ) }}"
env:
- name: API_SUBGROUP
- name: GITLAB_CLASS
value: {{ .Release.Name }}
{{ template "gitlab.imagePullPolicy" . }}
resources:
......
......@@ -52,5 +52,5 @@ Returns the operator group name. A subgroup with the release name is chosen
*/}}
{{- define "gitlab.operator.groupName" -}}
{{ printf "%s.gitlab.com" .Release.Name }}
{{ printf "gitlab.com" }}
{{- end -}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment