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

mapkubeapis failing on helm version "v3.4.2" #120

Open
ArielaOrian opened this issue Jun 19, 2023 · 5 comments
Open

mapkubeapis failing on helm version "v3.4.2" #120

ArielaOrian opened this issue Jun 19, 2023 · 5 comments

Comments

@ArielaOrian
Copy link

Hi
I was delighted to find this tool, but for some reason it doesn't work for me.
Can you please advise?
Thanks
Ariela

helm mapkubeapis rel-name --namespace ns-name --dry-run

2023/06/19 15:27:17 NOTE: This is in dry-run mode, the following actions will not be executed.
2023/06/19 15:27:17 Run without --dry-run to take the actions described below:
2023/06/19 15:27:17
2023/06/19 15:27:17 Release 'rel-name' will be checked for deprecated or removed Kubernetes APIs and will be updated if necessary to supported API versions.
2023/06/19 15:27:17 Get release 'rel-name' latest version.
Error: failed to get release 'rel-name' latest version: query: failed to query with labels: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
Error: plugin "mapkubeapis" exited with error

@l2-cops
Copy link

l2-cops commented Sep 1, 2023

I am facing similar issue! Is there any updates?

@badsector3
Copy link

The same for me. I run AWS EKS 1.25 and would like to upgrade to 1.26.
The command I use is as following

helm mapkubeapis 1.26 --namespace default --dry-run

getting Error:

2023/10/30 12:19:07 NOTE: This is in dry-run mode, the following actions will not be executed.
2023/10/30 12:19:07 Run without --dry-run to take the actions described below:
2023/10/30 12:19:07
2023/10/30 12:19:07 Release '1.26' will be checked for deprecated or removed Kubernetes APIs and will be updated if necessary to supported API versions.
2023/10/30 12:19:07 Get release '1.26' latest version.
Error: failed to get release '1.26' latest version: release: not found
Error: plugin "mapkubeapis" exited with error

I tried without --dry-run - the same error

Installed with the following command:
helm plugin install https://github.com/helm/helm-mapkubeapis

OS - macOS 13.4.1
Helm - Version:"v3.13.1"
GoVersion - "go1.21.3"

Any idea? BTW by providing only namespace the plugin should scan all resources within the namespace right?

@badsector3
Copy link

Tried using 1.26.0 as RELEASE and additional flags --kube-context and -kubeconfig - no go :(

@badsector3
Copy link

Based on deprecation-guide I updated map.yaml

- deprecatedAPI: "apiVersion: autoscaling/v2beta2\nkind: HorizontalPodAutoscaler\n"
  newAPI: "apiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler\n"
  deprecatedInVersion: "v1.23"
  removedInVersion: "v1.26"
- deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta1\nkind: FlowSchema\n"
  newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: FlowSchema\n"
  deprecatedInVersion: "v1.26"
  removedInVersion: "v1.26"
- deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta1\nkind: PriorityLevelConfiguration\n"
  newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: PriorityLevelConfiguration\n"
  deprecatedInVersion: "v1.26"
  removedInVersion: "v1.26"
- deprecatedAPI: "apiVersion: storage.k8s.io/v1beta1\nkind: CSIStorageCapacity\n"
  newAPI: "apiVersion: storage.k8s.io/v1\nkind: CSIStorageCapacity\n"
  deprecatedInVersion: "v1.24"
  removedInVersion: "v1.27"
- deprecatedAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta2\nkind: FlowSchema\n"
  newAPI: "apiVersion: flowcontrol.apiserver.k8s.io/v1beta3\nkind: FlowSchema\n"
  deprecatedInVersion: "v1.26"
  removedInVersion: "v1.26"

Still doesn't work. No clue what I miss here.

@babli-coditas
Copy link

Did you find any workaround for this?

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