Skip to content

Commit

Permalink
Removing deprecated apiVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed May 12, 2021
1 parent bc74e6f commit e6b527a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions charts/onechart/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{{- $labels := include "helm-chart.labels" . -}}

{{- with .Values.ingress -}}
{{- $robustName := include "robustName" $.Release.Name -}}
{{- if semverCompare ">=1.14-0" $.Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $robustName }}
Expand Down

0 comments on commit e6b527a

Please sign in to comment.