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

fix: "No resource meta found for networking.k8s.io/v1/ingresses" when… #275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Forget-C
Copy link

@Forget-C Forget-C commented Jan 23, 2024

ingress gvr compatibility error.
k8s server version.Minor == 18

.kube|⇒ kubectl --kubeconfig deployment version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"25b4e43193bcda6c7328a6d147b1fb73a33f1598", GitTreeState:"clean", BuildDate:"2023-06-14T09:53:42Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.9", GitCommit:"94f372e501c973a7fa9eb40ec9ebd2fe7ca69848", GitTreeState:"clean", BuildDate:"2020-09-16T13:47:43Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.27) and server (1.18) exceeds the supported minor version skew of +/-1
.kube|⇒ 
.kube|⇒ kubectl --kubeconfig deployment -n cloudide api-resources | grep ingress
ingresses                          ing          extensions/v1beta1                true         Ingress
ingressclasses                                  networking.k8s.io/v1beta1         false        IngressClass
ingresses                          ing          networking.k8s.io/v1beta1         true         Ingress

run command error

popeye|master ⇒ go run main.go --kubeconfig ~/.kube/banana -n test     
 ___     ___ _____   _____                       D          .-'-.     
| _ \___| _ \ __\ \ / / __|                       O     __| K    `\  
|  _/ _ \  _/ _| \ V /| _|                         H   `-,-`--._   `\
|_| \___/_| |___| |_| |___|                       []  .->'  X     `|-'
  Biffs`em and Buffs`em!                            `=/ (__/_       /  
                                                      \_,    `    _)  
                                                         `----;  |     


Boom! No resource meta found for networking.k8s.io/v1/ingresses
exit status 1

see https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.19.md

@Forget-C
Copy link
Author

and i have a question, why not use client.ServerPreferredResources()?

Copy link
Owner

@derailed derailed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Forget-C Thank you for this update and the heads up!!
I am in the process of upgrading Popeye, hoping this will be resolved in the next drop

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

Successfully merging this pull request may close these issues.

None yet

2 participants