mapkubeapis failing on helm version "v3.4.2"
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
I am facing similar issue! Is there any updates?
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?
Tried using 1.26.0 as RELEASE and additional flags --kube-context and -kubeconfig - no go :(
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.
Did you find any workaround for this?