Moved values
continuous-integration/drone/push Build was killed Details

This commit is contained in:
DutchEllie 2022-03-12 19:26:04 +01:00
parent a7e111cc96
commit 291b553638
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
4 changed files with 25 additions and 9 deletions

View File

@ -30,10 +30,7 @@ steps:
skip_tls_verify: true
values_files:
- .drone/helm/values.yaml
values:
- ingress.tls.host: newsite.staging.dutchellie.nl
- ingress.hosts:
- host: newsite.staging.dutchellie.nl
- .drone/helm/staging-val.yaml
kube_api_server:
from_secret: staging_api_server
kube_token:

View File

@ -10,9 +10,13 @@ spec:
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
- {{ .Values.ingress.tls.host }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}

View File

@ -15,9 +15,11 @@ ingress:
name: newsite-ingress
annotations: {}
className: nginx
tls:
host: example.com
secretName: newsite-tls
tls: []
# tls:
# - hosts:
# - example.com
# secretName: example-tls
hosts:
- host: example.com
paths:

View File

@ -0,0 +1,13 @@
name: newsite-staging
service: newsite-staging
ingress:
name: newsite-staging
tls:
- hosts:
- newsite.staging.dutchellie.nl
secretName: newsite-staging-tls
hosts:
- host: newsite.staging.dutchellie.nl
paths:
- path: /
pathType: Prefix