Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingress from namespace networking.k8s.io/v1beta1 deprecated #146

Open
PhilippCh opened this issue Aug 13, 2021 · 3 comments
Open

Ingress from namespace networking.k8s.io/v1beta1 deprecated #146

PhilippCh opened this issue Aug 13, 2021 · 3 comments

Comments

@PhilippCh
Copy link

Upon install/uinstall of the helm package, I receive the following warning:

W0813 10:27:16.265332   10160 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress

Could you update the ingress resource to the newest namespace so it will still be available in v1.22+?

@kbrowder
Copy link

kbrowder commented Sep 14, 2021

Noticed this with a recent opensuse kubic update; the patch to fix is as follows i think

--- a/wireguard/charts/wg-access-server/templates/ingress.yaml
+++ b/wireguard/charts/wg-access-server/templates/ingress.yaml
@@ -1,6 +1,6 @@
 {{- if .Values.ingress.enabled -}}
 {{- $fullName := include "wg-access-server.fullname" . -}}
-apiVersion: networking.k8s.io/v1beta1
+apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
   name: {{ $fullName }}
@@ -27,8 +27,11 @@ spec:
       http:
         paths:
           - path: /
+            pathType: Prefix
             backend:
-              serviceName: {{ $fullName }}-web
-              servicePort: 80
+              service:
+                name: {{ $fullName }}-web
+                port:
+                  number: 80
   {{- end }}
 {{- end }}

@gabriel-duque
Copy link

Any news on this? This seems like a fairly straightforward change.

@yevon
Copy link

yevon commented Apr 26, 2022

I would need this also, helm breaking in kubernetes 1.22+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants