Skip to content

Commit

Permalink
Deprecate beta versions of ingress (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarlso authored Jun 15, 2022
1 parent 4913adc commit 4aad2b3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions dotnet/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: .NET Core Helm Chart
name: dotnet
version: 10.0.0
version: 11.0.0
dependencies:
- name: libchart
version: 1.0.0
version: 2.0.0
repository: file://../libchart
4 changes: 2 additions & 2 deletions golang/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: golan Helm Chart
name: golang
version: 14.0.0
version: 15.0.0
dependencies:
- name: libchart
version: 1.0.0
version: 2.0.0
repository: file://../libchart
4 changes: 2 additions & 2 deletions java/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Java Helm Chart
name: java
version: 7.0.0
version: 8.0.0
dependencies:
- name: libchart
version: 1.0.0
version: 2.0.0
repository: file://../libchart
2 changes: 1 addition & 1 deletion libchart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 2.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 5 additions & 7 deletions libchart/templates/_ingress.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{{- define "libchart.ingress.tpl" }}
{{- $name := include "libchart.name" . -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{ else }}
apiVersion: extensions/v1beta1
{{- end }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $name }}
Expand Down Expand Up @@ -33,7 +29,9 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $name }}
servicePort: http
service:
name: {{ $name }}
port: http
pathType: ImplementationSpecific
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions nodejs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Node.js Helm Chart
name: nodejs
version: 14.0.0
version: 15.0.0
dependencies:
- name: libchart
version: 1.0.0
version: 2.0.0
repository: file://../libchart
4 changes: 2 additions & 2 deletions web/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
appVersion: "1.0"
description: Helm chart for deployment of web servers
name: web
version: 11.0.0
version: 12.0.0
dependencies:
- name: libchart
version: 1.0.0
version: 2.0.0
repository: file://../libchart

0 comments on commit 4aad2b3

Please sign in to comment.