-
Notifications
You must be signed in to change notification settings - Fork 254
Description
I'm using chart:
alfresco-content-services-5.4.0-M2
When setting in the values file
postgresql
enabled: false
--api-versions wgpolicyk8s.io/v1alpha2/PolicyReport --include-crds
failed exit status 1: Error: template: alfresco/templates/_capabilites.tpl:15:37: executing "common.capabilities.ingress.apiVersion" at <include "common.capabilities.kubeVersion" .>: error calling include: template: no template "common.capabilities.kubeVersion" associated with template "gotpl" Use --debug flag to render out invalid YAML`
This capabilty comes from:
alfresco-content-services-5.4.0-M2.tgz\alfresco-content-services\charts\postgresql\charts\common\templates_capabilites.tpl
Line 76 i quote:
{{/*
Return the appropriate apiVersion for ingress.
*/}}
{{- define "common.capabilities.ingress.apiVersion" -}}
{{- if .Values.ingress -}}
{{- if .Values.ingress.apiVersion -}}
{{- .Values.ingress.apiVersion -}}
{{- else if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
{{- print "extensions/v1beta1" -}}
{{- else if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}}
{{- print "networking.k8s.io/v1beta1" -}}
{{- else -}}
{{- print "networking.k8s.io/v1" -}}
{{- end }}
{{- else if semverCompare "<1.14-0" (include "common.capabilities.kubeVersion" .) -}}
{{- print "extensions/v1beta1" -}}
{{- else if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) -}}
{{- print "networking.k8s.io/v1beta1" -}}
{{- else -}}
{{- print "networking.k8s.io/v1" -}}
{{- end -}}
{{- end -}}