helm-mapkubeapis icon indicating copy to clipboard operation
helm-mapkubeapis copied to clipboard

mapkubeapis failing on helm version "v3.4.2"

Open ArielaOrian opened this issue 2 years ago • 5 comments

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

ArielaOrian avatar Jun 19 '23 15:06 ArielaOrian

I am facing similar issue! Is there any updates?

l2-cops avatar Sep 01 '23 14:09 l2-cops

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 avatar Oct 30 '23 12:10 badsector3

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

badsector3 avatar Oct 30 '23 12:10 badsector3

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.

badsector3 avatar Oct 30 '23 15:10 badsector3

Did you find any workaround for this?

babli-coditas avatar Apr 23 '24 06:04 babli-coditas