Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
ingree adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
joroshiba committed Nov 27, 2023
1 parent 38b4fbd commit 8a660a3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 24 deletions.
6 changes: 3 additions & 3 deletions charts/rollup/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
{{- $serviceName := $ingress.service.name -}}
{{- $ingressPath := $ingress.path -}}
{{- $ingressPathType := $ingress.pathType -}}
{{- $extraPaths := $ingress.extraPaths -}}
apiVersion: networking.k8s.io/v1
{{- $extraPaths := $ingress.extraPaths }}
---
apiVersion: {{ include "rollup.ingress.apiVersion" $ }}
kind: Ingress
metadata:
name: {{ $.Values.config.rollup.name }}-{{ $service }}-ingress
Expand Down Expand Up @@ -61,6 +62,5 @@ spec:
tls:
{{- tpl (toYaml $ingress.tls) $ | nindent 4 }}
{{- end }}
---
{{- end }}
{{- end }}
20 changes: 5 additions & 15 deletions charts/sequencer-faucet/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
{{- $serviceName := tpl .Values.ingress.service.name . -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- $ingressPathType := .Values.ingress.pathType -}}
{{- $extraPaths := tpl .Values.ingress.extraPaths . -}}
apiVersion: networking.k8s.io/v1
{{- $extraPaths := .Values.ingress.extraPaths -}}
apiVersion: {{ include "sequencer.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: sequencer-faucet-ingress
Expand All @@ -24,12 +24,13 @@ metadata:
{{- end }}
{{- end }}
spec:
{{- if and $ingressSupportsIngressClassName .Values.ingress.ingressClassName }}
{{- if and $ingressSupportsIngressClassName .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end -}}
{{- with .Values.ingress.service }}
defaultBackend:
{{- tpl (toYaml .) $ | nindent 4 }}
service:
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
rules:
{{- if .Values.ingress.hosts }}
Expand Down Expand Up @@ -57,16 +58,5 @@ spec:
tls:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- else }}
- host: sequencer-faucet.localdev.me
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: sequencer-faucet-service
port:
name: seq-faucet-svc
{{- end -}}
{{- end }}
9 changes: 4 additions & 5 deletions charts/sequencer-faucet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ ingress:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
path: {}
# pathType is only for k8s >= 1.1=
path: /
pathType: Prefix
hosts: {}
# - chart-example.local
hosts:
- sequencer-faucet.localdev.me
service:
name: sequencer-faucet-service
port:
port:
name: seq-faucet-svc
## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
extraPaths: {}
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ load-image image:
kind load docker-image {{image}} --name astria-dev-cluster

deploy-chart chart:
helm install --debug {{chart}}-chart ./charts/{{chart}}
helm install --debug --dry-run {{chart}}-chart ./charts/{{chart}}

delete-chart chart:
helm uninstall {{chart}}-chart
Expand Down

0 comments on commit 8a660a3

Please sign in to comment.