Commit 61bf88a9 authored by Hossein Pursultani's avatar Hossein Pursultani

Rename subgroup to CRD prefix

parent 9b12227c
Pipeline #59334883 failed with stages
in 3 minutes and 11 seconds
---
title: Rename subgroup to CRD prefix
merge_request: 773
author:
type: changed
{{- if and .Values.global.operator.enabled }}
{{- if .Values.global.operator.enabled }}
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
......
{{- if and .Values.global.operator.enabled }}
{{- if .Values.global.operator.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
......
......@@ -28,8 +28,10 @@ spec:
env:
- name: GITLAB_CLASS
value: {{ .Release.Name }}
{{- if not (eq (default "" .Values.crdPrefix) "") }}
- name: CRD_PREFIX
value: {{ .Release.Name }}
value: {{ .Values.crdPrefix }}
{{- end }}
{{ template "gitlab.imagePullPolicy" . }}
resources:
{{ toYaml .Values.resources | indent 12 }}
......
......@@ -31,3 +31,7 @@ resources:
requests:
cpu: 100m
memory: 64M
# A prefix for group name of GitLab CRD. It can be used for distinguishing
# different CRDs in a cluster, e.g. for development purposes such GitLab CI.
# crdPrefix:
\ No newline at end of file
......@@ -52,5 +52,9 @@ Returns the operator group name. A subgroup with the release name is chosen
*/}}
{{- define "gitlab.operator.groupName" -}}
{{ printf "%s.gitlab.com" .Release.Name }}
{{- if eq (default "" .Values.crdPrefix) "" -}}
gitlab.com
{{- else -}}
{{ printf "%s.gitlab.com" .Values.crdPrefix }}
{{- end -}}
{{- 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