Skip to content

Commit

Permalink
Merge pull request #61 from WyriHaximusNet/update-ingresses-to-networ…
Browse files Browse the repository at this point in the history
…king.k8s.io-v1

Update ingresses to networking.k8s.io/v1
  • Loading branch information
WyriHaximus authored Feb 6, 2021
2 parents d8d05f4 + f2fd295 commit ee3fa89
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm-charts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: git fetch --prune --unshallow

- name: Create kind cluster
uses: helm/kind-action@v1.0.0
uses: helm/kind-action@v1.1.0
with:
installLocalPathProvisioner: true # Only build a kind cluster if there are chart changes to test.

Expand Down
3 changes: 2 additions & 1 deletion charts/commento/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ description: Helm chart to install commento on a kubernetes cluster
home: https://commento.io/
icon: https://cdn.commento.io/images/logo.svg
name: commento
version: 0.1.3
version: 0.2.0
kubeVersion: ^1.19
maintainers:
- name: WyriHaximus
email: [email protected]
Expand Down
9 changes: 6 additions & 3 deletions charts/commento/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if eq (eq .Values.ingress.host "comments.YOURDOMAIN.TLD") false }}
{{- $chartName := .Chart.Name -}}
{{- $fullName := include "commons.fullname" . -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand All @@ -21,7 +21,10 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: commento
service:
name: {{ $fullName }}
port:
name: commento
{{- end }}
4 changes: 2 additions & 2 deletions charts/default-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A Helm chart for Kubernetes
home: https://github.com/wyrihaximusnet/docker-default-backend
icon: https://helm.wyrihaximus.net/images/charts/default-backend.png
type: application
version: 0.4.4
kubeVersion: ^1.18
version: 0.5.0
kubeVersion: ^1.19
appVersion: random
maintainers:
- name: WyriHaximus
Expand Down
9 changes: 6 additions & 3 deletions charts/default-backend/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if not (empty .Values.ingress.hosts) -}}
{{- $chartName := .Chart.Name -}}
{{- $fullName := include "commons.fullname" . -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand All @@ -24,8 +24,11 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: default-backend
service:
name: {{ $fullName }}
port:
name: default-backend
{{- end }}
{{ end }}
4 changes: 2 additions & 2 deletions charts/redirect/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Redirect
home: https://github.com/wyrihaximusnet/docker-redirect
icon: https://helm.wyrihaximus.net/images/charts/redirect.png
type: application
version: 0.9.5
kubeVersion: ^1.18
version: 0.10.0
kubeVersion: ^1.19
appVersion: random
maintainers:
- name: WyriHaximus
Expand Down
7 changes: 5 additions & 2 deletions charts/redirect/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ Host rule
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: {{ .FullName }}
servicePort: {{ .SvcPort }}
service:
name: {{ .FullName }}
port:
number: {{ .SvcPort }}
{{- end -}}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/redirect/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $hosts := concat (.Values.redirect.ingressHosts | mustDeepCopy) (.Values.redirect.hosts | mustDeepCopy | keys) -}}
{{- range $host := ($hosts | uniq) }}
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-{{ $host | replace "." "-" }}
Expand Down

0 comments on commit ee3fa89

Please sign in to comment.