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

hpa in 1.26 k8s is not mapped properly #116

Open
EvgeniGordeev opened this issue May 4, 2023 · 4 comments
Open

hpa in 1.26 k8s is not mapped properly #116

EvgeniGordeev opened this issue May 4, 2023 · 4 comments

Comments

@EvgeniGordeev
Copy link

EvgeniGordeev commented May 4, 2023

Scenario

Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "platform-identity-keycloakx" namespace: "test" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"
ensure CRDs are installed first
helm.go:84: [debug] resource mapping not found for name: "RELEASE_NAME-keycloakx" namespace: "default" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"
  • helm mapkubeapis RELEASE_NAME produced
2023/05/04 11:42:07 Release 'RELEASE_NAME' will be checked for deprecated or removed Kubernetes APIs and will be updated if necessary to supported API versions.
2023/05/04 11:42:07 Get release 'RELEASE_NAME' latest version.
2023/05/04 11:42:09 Check release 'RELEASE_NAME' for deprecated or removed APIs...
2023/05/04 11:42:09 Finished checking release 'RELEASE_NAME' for deprecated or removed APIs.
2023/05/04 11:42:09 Release 'RELEASE_NAME' has no deprecated or removed APIs.
2023/05/04 11:42:09 Map of release 'RELEASE_NAME' deprecated or removed APIs to supported versions, completed successfully.

Problem

Cannot upgrade or uninstall the chart:

uninstall.go:117: [debug] uninstall: Failed to delete release: [unable to build kubernetes objects for delete: resource mapping not found for name: "RELEASE_NAME-keycloakx" namespace: "default" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"

Helm manifest still has deprecated apiVersion:

helm get manifest RELEASE_NAME
...
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
  name: RELEASE_NAME-keycloakx
...
@EvgeniGordeev EvgeniGordeev changed the title k8s 1.26 hpa is not mapped correctly hpa in 1.26 k8s is not mapped correctly May 4, 2023
@EvgeniGordeev EvgeniGordeev changed the title hpa in 1.26 k8s is not mapped correctly hpa in 1.26 k8s is not mapped properly May 4, 2023
EvgeniGordeev pushed a commit to EvgeniGordeev/helm-mapkubeapis that referenced this issue May 4, 2023
@LeMyst
Copy link

LeMyst commented Jun 19, 2023

Probably related to #108

@danopia
Copy link

danopia commented Aug 30, 2023

I believe these all include the fix to add HPA's deprecation:

As a user, clearly this is something many people are hitting, I'd love to see a merge happen

@cpetestewart
Copy link

cpetestewart commented Feb 26, 2024

Has this problem been fixed in a release yet? I just hit this same issue where it does not pick up the obsolete apiVersion for HPA.

EDIT: I confirmed this is not working in the latest version of the plugin. Can we get this in a release ASAP please?

@LeMyst
Copy link

LeMyst commented Feb 27, 2024

Has this problem been fixed in a release yet? I just hit this same issue where it does not pick up the obsolete apiVersion for HPA.

EDIT: I confirmed this is not working in the latest version of the plugin. Can we get this in a release ASAP please?

The best you can do it's to use one of the unmerged MR from danopia post #116 (comment)

or create your own by cherry-picking.

Project seems dead...

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