Skip to content

Commit 272c4ab

Browse files
LeoColombRangerRick
authored andcommitted
Render a proper backend definition for ingress
Fixes #197
1 parent 53da201 commit 272c4ab

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

charts/netbox/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: netbox
3-
version: 5.0.0-beta3
3+
version: 5.0.0-beta4
44
appVersion: "v3.6.4"
55
type: application
66
kubeVersion: ^1.25.0-0

charts/netbox/templates/ingress.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ spec:
3030
{{- if kindIs "string" . }}
3131
- path: {{ . }}
3232
pathType: Prefix
33-
backend:
34-
service:
35-
name: {{ include "common.names.fullname" . }}
36-
port:
37-
name: http
33+
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 10 }}
3834
{{- else }}
3935
{{- (list .) | toYaml | nindent 6 }}
4036
{{- end }}

0 commit comments

Comments
 (0)