Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BEI-189] Add ingress to tekton-cron #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/tekton-cron-jobs/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: 0.1.2
version: 0.1.3

# 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
28 changes: 28 additions & 0 deletions charts/tekton-cron-jobs/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

{{- if .Values.ingress.enabled -}}
{{- $hostwithdashestls := printf "%s-tls" .Values.ingress.host | replace "." "-" }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "tekton-cron"
annotations:
cert-manager.io/cluster-issuer: letsencrypt
kubernetes.io/ingress.class: "nginx-internal"
kubernetes.io/tls-acme: "true"
spec:
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- backend:
service:
name: el-tekton-cron
port:
number: 8080
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ $hostwithdashestls }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/tekton-cron-jobs/values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
eventListener: {}
ingress:
enabled: false
host: tekton-cron.gen1.trydave.com