You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading a k8s cluster from version 1.25 to 1.26 where the Sumo Logic helm chart had already been applied, the next time the chart was applied, we encountered the following error:
Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "sumologic-sumologic-otelcol-logs" namespace: "" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"
To Reproduce
Run a k8s clusters v1.25 and install the Sumo Logic helm chart.
Upgrade the k8s cluster in place to v1.26
Upgrade the Sumo Logic helm chart
Workaround
Use the helm mapkubeapis plugin to update the helm release metadata in the cluster before re-applying the Sumo Logic helm chart in the 1.26 k8s cluster. Note that as of 07/13/2023, the plugin's default configuration does not contain the autoscaling/v2beta2 API, so this will need to be created locally as
Applying the Sumo Logic helm chart should succeed. The logic in the helm chart should install the HorizontalPodAutoscaler resources using api version autoscaling/v2 when the autoscaling/v2 API was introduced, i.e. when the k8s cluster is version 1.23, not when the autoscaling/v2beta2 API was removed (v1.26).
The text was updated successfully, but these errors were encountered:
Describe the bug
When upgrading a k8s cluster from version 1.25 to 1.26 where the Sumo Logic helm chart had already been applied, the next time the chart was applied, we encountered the following error:
To Reproduce
Workaround
Use the helm mapkubeapis plugin to update the helm release metadata in the cluster before re-applying the Sumo Logic helm chart in the 1.26 k8s cluster. Note that as of 07/13/2023, the plugin's default configuration does not contain the autoscaling/v2beta2 API, so this will need to be created locally as
and then applied using
Expected behavior
Applying the Sumo Logic helm chart should succeed. The logic in the helm chart should install the HorizontalPodAutoscaler resources using api version autoscaling/v2 when the autoscaling/v2 API was introduced, i.e. when the k8s cluster is version 1.23, not when the autoscaling/v2beta2 API was removed (v1.26).
The text was updated successfully, but these errors were encountered: