Skip to content

Commit

Permalink
Add ability to specify ingress creation
Browse files Browse the repository at this point in the history
# Conflicts:
#	charts/opslevel/values.yaml
  • Loading branch information
rocktavious committed Dec 4, 2024
1 parent 19168ae commit 7ca1b79
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
22 changes: 22 additions & 0 deletions charts/opslevel/templates/opslevel/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- if .Values.opslevel.ingress.create }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.opslevel.ingress.name }}
{{- with .Values.opslevel.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.opslevel.ingress.ingressClassName }}
ingressClassName: {{ .Values.opslevel.ingress.ingressClassName}}
{{- end }}
{{- with .Values.opslevel.ingress.tls }}
tls:
{{ toYaml . | indent 6 }}
{{- end }}
{{- with .Values.opslevel.ingress.rules }}
rules:
{{ toYaml . | indent 6 }}
{{- end }}
{{- end }}
18 changes: 18 additions & 0 deletions charts/opslevel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@ opslevel:
workerLow:
replicas: 2
resources: *resourcesMedium
ingress:
create: false
name: opslevel
annotations: {}
ingressClassName: ""
tls:
- hosts:
- opslevel.example.com
rules:
- host: opslevel.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
<<: *opslevel_service_name
port: http
secret:
name: "opslevel"
create: true
Expand Down

0 comments on commit 7ca1b79

Please sign in to comment.