Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
et-iedo-public
helm
helm-apache-shib
Commits
b3223ef2
Commit
b3223ef2
authored
Nov 05, 2020
by
Adam Lewenberg
Browse files
more work (take 6)
parent
46e8d341
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/_helpers.tpl
View file @
b3223ef2
...
...
@@ -61,7 +61,3 @@ Create the name of the service account to use
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{- define "apache_shib.APP_NAMESPACE" -}}
{{ .Chart.Name }} - {{ .Values.APP_ENV }}
{{- end -}}
templates/ingress.yaml
View file @
b3223ef2
{{
- $APP_NAMESPACE
:
= print .Chart.Name "-" .Values.APP_ENV -
}}
{{
- if .Values.ingress.enabled -
}}
{{
- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -
}}
apiVersion
:
networking.k8s.io/v1beta1
...
...
@@ -6,13 +7,13 @@ apiVersion: extensions/v1beta1
{{
- end
}}
kind
:
Ingress
metadata
:
name
:
{{
- template "apache_shib.
APP_NAMESPACE
"
}}
name
:
{{
$
APP_NAMESPACE
}}
annotations
:
external-dns.alpha.kubernetes.io/hostname
:
"
{{
.Values.SERVERNAME
}}"
networking.gke.io/managed-certificates
:
"
certificate-patchman-{{
.Values.APP_ENV
}}
"
networking.gke.io/managed-certificates
:
{{
$APP_NAMESPACE
}}
kubernetes.io/ingress.allow-http
:
"
false"
spec
:
backend
:
serviceName
:
{{
- template "apache_shib.
APP_NAMESPACE
"
}}
serviceName
:
{{
$
APP_NAMESPACE
}}
servicePort
:
80
{{
- end
}}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment