Skip to content

Commit

Permalink
Release 3.1.0 (#3)
Browse files Browse the repository at this point in the history
* remove legacy checks for 1.21+

* Bump 3.1.0

* Remove legacy check on apiVersion

---------

Co-authored-by: Jay Stotz <[email protected]>
  • Loading branch information
rwilson-release and jstotz committed Sep 20, 2023
1 parent 556a2c9 commit b3ea0d3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Nginx Ingress
name: release-ingress
version: 3.0.0
version: 3.1.0
icon: https://avatars.githubusercontent.com/u/71455204?s=200&v=4
home: https://releasehub.com
maintainers:
Expand Down
24 changes: 21 additions & 3 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@ apiVersion: v1
entries:
release-ingress:
- apiVersion: v2
created: "2022-08-13T08:39:05.3845873-07:00"
created: "2022-08-13T13:03:50.5833935-07:00"
description: Nginx Ingress
digest: d9244a34730ae81a1defb0cc126182101986c6801a3b898ba7b9661d1faa4cbd
home: https://releasehub.com
icon: https://avatars.githubusercontent.com/u/71455204?s=200&v=4
keywords:
- helm
- ingress
maintainers:
- email: [email protected]
name: ReleaseHub
name: release-ingress
sources:
- https://github.com/releasehub-com/helm-ingress
urls:
- https://raw.githubusercontent.com/releasehub-com/helm-ingress/release-3.1.0/release-ingress-3.1.0.tgz
version: 3.1.0
- apiVersion: v2
created: "2022-08-13T13:03:50.5827437-07:00"
description: Nginx Ingress
digest: 0dfe686e8b68e2ff76a657b28fae11098dcfce4e4c4ffd1328fba934941dfdbd
home: https://releasehub.com
Expand All @@ -20,7 +38,7 @@ entries:
- https://raw.githubusercontent.com/releasehub-com/helm-ingress/main/release-ingress-3.0.0.tgz
version: 3.0.0
- apiVersion: v1
created: "2022-08-13T08:39:05.3842481-07:00"
created: "2022-08-13T13:03:50.5824122-07:00"
description: Nginx Ingress
digest: 4eda4ecf43cf654367a694d35a5aa4cc67ea28ae2b8fb22325a6dc2f843bacff
home: https://releasehub.com
Expand All @@ -37,4 +55,4 @@ entries:
urls:
- https://raw.githubusercontent.com/releasehub-com/helm-ingress/main/release-ingress-2.1.0.tgz
version: 2.1.0
generated: "2022-08-13T08:39:05.3838998-07:00"
generated: "2022-08-13T13:03:50.5820698-07:00"
Binary file added release-ingress-3.1.0.tgz
Binary file not shown.
16 changes: 2 additions & 14 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $serviceName := .Values.service.name -}}
{{- $servicePort := .Values.service.externalPort -}}
apiVersion: {{ lt (atoi .Capabilities.KubeVersion.Minor) 21 | ternary "extensions/v1beta1" "networking.k8s.io/v1" }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "fullname" . }}
Expand All @@ -15,30 +15,18 @@ metadata:
{{- end }}
spec:
rules:
{{- if lt (atoi .Capabilities.KubeVersion.Minor) 21 -}}
{{- range $host := .Values.ingress.hosts }}
- host: {{ $host }}
http:
paths:
- path: /
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end -}}
{{- else -}}
{{- range $host := .Values.ingress.hosts }}
- host: {{ $host }}
http:
paths:
- path: /*
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: {{ $serviceName }}
port:
number: {{ $servicePort }}
{{- end -}}
{{- end -}}
{{- if .Values.ingress.tls }}
tls:
{{ toYaml .Values.ingress.tls | indent 4 }}
Expand Down

0 comments on commit b3ea0d3

Please sign in to comment.