Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Nov 16, 2023
1 parent b54eecc commit 6f793bd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion infra/helm/zippy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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.
version: 0.1.8
version: 0.1.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
19 changes: 15 additions & 4 deletions infra/helm/zippy/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.ingress.enabled }}
{{- with .Values.ingress }}
{{- if .enabled }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}}
apiVersion: networking.k8s.io/v1
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" -}}
Expand All @@ -9,9 +10,18 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ include "zippy.fullname" $ }}-ingress
{{- if .ingress.annotations }}
annotations:
{{ toYaml .annotations | indent 4 }}
{{- end }}
{{- if .ingress.extraLabels }}
labels:
{{ toYaml .extraLabels | indent 4 }}
{{- end }}
spec:
ingressClassName: nginx
rules:
- host: {{ required "Missing ingress.hostname" .Values.ingress.hostname }}
- host: {{ required "Missing ingress.hostname" .hostname | quote }}
http:
paths:
- path: /
Expand All @@ -29,6 +39,7 @@ spec:
{{- end }}
tls:
- hosts:
- {{ required "Missing ingress.hostname" .Values.ingress.hostname }}
secretName: {{ .Values.ingress.secretName }}
- {{ required "Missing ingress.hostname" .hostname }}
secretName: {{ .secretName | quote }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions infra/helm/zippy/templates/zippy-rabbitmq-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.rabbitmq.enabled }}
{{- with .Values.rabbitmq.persistence }}
{{- if and .enabled (not .existingClaim) }}
kind: PersistentVolumeClaim
Expand All @@ -20,3 +21,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions infra/helm/zippy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ ingress:
enabled: true
secretName:
hostname:
annotations:
extraLabels:

0 comments on commit 6f793bd

Please sign in to comment.