Skip to content

Commit

Permalink
Support to enable/disable ingress spec tls hosts setting (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 committed Mar 27, 2023
1 parent b7df4c1 commit 10247dc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/terrakube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.3.1
version: 3.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/ingress-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{ if .Values.ingress.useTls }}
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
tls:
- hosts:
- {{ .Values.ingress.api.domain | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/ingress-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{ if .Values.ingress.useTls }}
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
tls:
- hosts:
- {{ .Values.ingress.registry.domain | quote}}
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/templates/ingress-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{ if .Values.ingress.useTls }}
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
tls:
- hosts:
- {{ .Values.ingress.ui.domain | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/terrakube/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@
"description": "Enable Https Ingress",
"type": "boolean"
},
"includeTlsHosts": {
"description": "Include spec.tls.hosts inside ingress config",
"type": "boolean"
},
"ui": {
"type": "object",
"required": ["enabled", "annotations", "path", "pathType"],
Expand Down
1 change: 1 addition & 0 deletions charts/terrakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ ui:
## Ingress properties
ingress:
useTls: false
includeTlsHosts: true
ui:
enabled: true
domain: "terrakube-ui.minikube.net"
Expand Down

0 comments on commit 10247dc

Please sign in to comment.