Getting an error as Unsupported HPA GVK with ArgoCD operator in Red Hat Openshift GitOps operator

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Service on AWS (ROSA)
    • 4
  • Azure Red Hat OpenShift (ARO)
    • 4

Issue

  • User getting an error: Unsupported HPA GVK: autoscaling/v2, Kind=HorizontalPodAutoscaler with ArgoCD operator.

  • Argo CD cannot sync when you enable a new HPA or disable the old one because of the unsupported version.

Resolution

  • Use updated Red Hat GitOps Operator where Argo CD v2.4 shipped with GitOps v1.6.

Root Cause

  • If user using ArgoCD version 2.3.3. then the v2beta2 api does not work.

Diagnostic Steps

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments