Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
avouacr committed Feb 11, 2022
2 parents 2f1daa9 + e5165c5 commit 55e518b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/httpbin/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: 1.2
version: "1.3"

# 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
13 changes: 6 additions & 7 deletions charts/httpbin/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "httpbin.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand All @@ -26,7 +22,10 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }}

0 comments on commit 55e518b

Please sign in to comment.