Skip to content

Commit

Permalink
Render a proper backend definition for ingress
Browse files Browse the repository at this point in the history
Fixes #197
  • Loading branch information
LeoColomb authored and RangerRick committed May 6, 2024
1 parent 53da201 commit 272c4ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/netbox/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: netbox
version: 5.0.0-beta3
version: 5.0.0-beta4
appVersion: "v3.6.4"
type: application
kubeVersion: ^1.25.0-0
Expand Down
6 changes: 1 addition & 5 deletions charts/netbox/templates/ingress.yaml
Expand Up @@ -30,11 +30,7 @@ spec:
{{- if kindIs "string" . }}
- path: {{ . }}
pathType: Prefix
backend:
service:
name: {{ include "common.names.fullname" . }}
port:
name: http
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 10 }}
{{- else }}
{{- (list .) | toYaml | nindent 6 }}
{{- end }}
Expand Down

0 comments on commit 272c4ab

Please sign in to comment.