{{- if and (ne .Values.addons.gitlab.objectStorage.iamProfile "") (ne .Values.addons.gitlab.objectStorage.accessKey "")}}{{- fail "Must choose to use an IAM profile OR an AWS accessKey/accessSecret at .Values.addons.gitlab.objectStorage"}}{{- end}}
{{- define "bigbang.defaults.gitlab" -}}
...
...
@@ -156,6 +156,12 @@ minio:
{{- end}}
global:
{{- if and .Values.addons.gitlab.sso.enabled .Values.sso.certificate_authority}}
certificates:
customCAs:
-secret:tls-ca-sso
{{end}}
# added to help with Gitlab sub-chart configuration
image:
pullPolicy:{{.Values.imagePullPolicy}}
...
...
@@ -335,5 +341,30 @@ global:
{{- if ne .Values.addons.gitlab.objectStorage.iamProfile ""}}
use_iam_profile:true
{{- end}}
{{- end -}}
{{- /* This function merges defaults in lists from above into overlays */ -}}
{{- /* The end user will not have to replicate exclusions/repos from above when providing an overlay */ -}}
{{- /* There is a hidden flag `skipOverlayMerge` that can be added to any certificates to ignore the defaults */ -}}