diff --git a/chart/templates/gitlab/namespace.yaml b/chart/templates/gitlab/namespace.yaml index 88b4398018078f4073dfe10ba8d8d6b33c7bf793..5dcb3246421b581e065f4b1638d7ddbd6649a405 100644 --- a/chart/templates/gitlab/namespace.yaml +++ b/chart/templates/gitlab/namespace.yaml @@ -1,4 +1,4 @@ -{{- if .Values.addons.gitlab.enabled }} +{{- if or .Values.addons.gitlab.enabled .Values.addons.gitlabRunner.enabled }} apiVersion: v1 kind: Namespace metadata: @@ -23,6 +23,8 @@ data: .dockerconfigjson: {{ template "imagePullSecret" . }} {{- end }} --- +{{- end }} +{{- if .Values.addons.gitlab.enabled }} # create sso secret. The assumption is OIDC {{- if .Values.addons.gitlab.sso.enabled }} apiVersion: v1